Function script::dom::bindings::import::module::jsapi::JS::ExecuteRegExp

source ยท
pub unsafe extern "C" fn ExecuteRegExp(
    cx: *mut JSContext,
    obj: Handle<*mut JSObject>,
    reobj: Handle<*mut JSObject>,
    chars: *const u16,
    length: usize,
    indexp: *mut usize,
    test: bool,
    rval: MutableHandle<Value>,
) -> bool
Expand description

Execute a regexp on a given input, starting from |indexp|. Returns false on OOM or over-recursion.

On no match, |rval| is set to Null. On a match, |indexp| and the RegExp statics are updated. Then, if |test| is true, |rval| is set to true. Otherwise, |rval| is set to a match result object.