class JsRegExp

Javascript RegExp. More...

Full nameTelEngine::JsRegExp
Definition#include <libs/yscript/yatescript.h>
InheritsTelEngine::JsObject [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Methods


Detailed Description

Javascript RegExp class, implements regular expression matching

 JsRegExp (Mutex* mtx = 0)

JsRegExp

Constructor for a RegExp constructor

Parameters:
mtxPointer to the mutex that serializes this object

 JsRegExp (Mutex* mtx, const char* name, const char* rexp = 0, bool insensitive = false, bool extended = true, bool frozen = false)

JsRegExp

Constructor for a RegExp object

Parameters:
mtxPointer to the mutex that serializes this object
nameFull name of the object
rexpRegular expression text
insensitiveTrue to not differentiate case
extendedTrue to use POSIX Extended Regular Expression syntax
frozenTrue to create an initially frozen object

inline const Regexp&  regexp ()

regexp

[const]

Access the internal Regexp object that does the matching

Returns: Const reference to the internal Regexp object

inline Regexp&  regexp ()

regexp

Access the internal Regexp object that does the matching

Returns: Reference to the internal Regexp object

JsObject*  clone (const char* name)

clone

[protected const virtual]

Clone and rename method

Parameters:
nameName of the cloned object

Returns: New object instance

Reimplemented from JsObject.

bool  runNative (ObjList& stack, const ExpOperation& oper, GenObject* context)

runNative

[protected]

Try to evaluate a single native method

Parameters:
stackEvaluation stack in use, parameters are popped off this stack and results are pushed back on stack
operFunction to evaluate
contextPointer to arbitrary object passed from evaluation methods

Returns: True if evaluation succeeded

Reimplemented from JsObject.


Generated by: paulc on bussard on Mon Feb 10 13:15:47 2014, using kdoc 2.0a54.