~ubuntu-branches/ubuntu/saucy/mozjs17/saucy

« back to all changes in this revision

Viewing changes to js/src/builtin/RegExp.h

  • Committer: Package Import Robot
  • Author(s): Rico Tzschichholz
  • Date: 2013-05-25 12:24:23 UTC
  • Revision ID: package-import@ubuntu.com-20130525122423-zmxucrhtensw90xy
Tags: upstream-17.0.0
ImportĀ upstreamĀ versionĀ 17.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
 
2
 * vim: set ts=8 sw=4 et tw=99 ft=cpp:
 
3
 *
 
4
 * This Source Code Form is subject to the terms of the Mozilla Public
 
5
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 
6
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
7
 
 
8
#ifndef RegExp_h___
 
9
#define RegExp_h___
 
10
 
 
11
#include "jsprvtd.h"
 
12
 
 
13
JSObject *
 
14
js_InitRegExpClass(JSContext *cx, JSObject *obj);
 
15
 
 
16
/*
 
17
 * The following builtin natives are extern'd for pointer comparison in
 
18
 * other parts of the engine.
 
19
 */
 
20
 
 
21
namespace js {
 
22
 
 
23
/*
 
24
 * |res| may be null if the |RegExpStatics| are not to be updated.
 
25
 * |input| may be null if there is no |JSString| corresponding to
 
26
 * |chars| and |length|.
 
27
 */
 
28
bool
 
29
ExecuteRegExp(JSContext *cx, RegExpStatics *res, RegExpObject &reobj,
 
30
              JSLinearString *input, const jschar *chars, size_t length,
 
31
              size_t *lastIndex, RegExpExecType type, Value *rval);
 
32
 
 
33
bool
 
34
ExecuteRegExp(JSContext *cx, RegExpStatics *res, RegExpShared &shared,
 
35
              JSLinearString *input, const jschar *chars, size_t length,
 
36
              size_t *lastIndex, RegExpExecType type, Value *rval);
 
37
 
 
38
extern JSBool
 
39
regexp_exec(JSContext *cx, unsigned argc, Value *vp);
 
40
 
 
41
extern JSBool
 
42
regexp_test(JSContext *cx, unsigned argc, Value *vp);
 
43
 
 
44
} /* namespace js */
 
45
 
 
46
#endif