class Regexp

A regexp matching class. More...

Full nameTelEngine::Regexp
Definition#include <telengine.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)

Regexp

Creates a new initialized regexp.

Parameters:
valueInitial value of the regexp.

 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

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  changed ()

changed

[protected virtual]

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

Reimplemented from String.


Generated by: root on dragoshel on Tue Jan 18 03:31:52 2005, using kdoc 2.0a53.