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:
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/. */
14
js_InitRegExpClass(JSContext *cx, JSObject *obj);
17
* The following builtin natives are extern'd for pointer comparison in
18
* other parts of the engine.
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|.
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);
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);
39
regexp_exec(JSContext *cx, unsigned argc, Value *vp);
42
regexp_test(JSContext *cx, unsigned argc, Value *vp);