class Regexp

A regexp matching class. More...

Full nameTelEngine::Regexp
Definition#include <yateclass.h>
InheritsTelEngine::String [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Methods


Detailed Description

A regular expression matching class.

 Regexp ()

Regexp

Creates a new, empty regexp.

 Regexp (const char* value, bool extended = false, bool insensitive = false)

Regexp

Creates a new initialized regexp.

Parameters:
valueInitial value of the regexp.
extendedTrue to use POSIX Extended Regular Expression syntax
insensitiveTrue to not differentiate case

 Regexp (const Regexp& value)

Regexp

Copy constructor.

Parameters:
valueInitial value of the regexp.

 ~Regexp ()

~Regexp

[virtual]

Destroys the regexp, disposes the memory.

inline Regexp&  operator= (const char* value)

operator=

Assignment from char* operator.

Reimplemented from String.

bool  compile ()

compile

Makes sure the regular expression is compiled

Returns: True if successfully compiled, false on error

bool  matches (const char* value)

matches

[const]

Checks if the pattern matches a given value

Parameters:
valueString to check for match

Returns: True if matches, false otherwise

Reimplemented from String.

bool  matches (const String& value)

matches

[const virtual]

Checks if the pattern matches a string

Parameters:
valueString to check for match

Returns: True if matches, false otherwise

Reimplemented from String.

void  setFlags (bool extended, bool insensitive)

setFlags

Change the expression matching flags

Parameters:
extendedTrue to use POSIX Extended Regular Expression syntax
insensitiveTrue to not differentiate case

bool  isExtended ()

isExtended

[const]

Return the POSIX Extended syntax flag

Returns: True if using POSIX Extended Regular Expression syntax

bool  isCaseInsensitive ()

isCaseInsensitive

[const]

Return the Case Insensitive flag

Returns: True if not differentiating case

void  changed ()

changed

[protected virtual]

Called whenever the value changed (except in constructors) to recompile.

Reimplemented from String.


Generated by: root on dragoshel on Sat Apr 14 01:50:50 2007, using kdoc 2.0a54.