Ceylan::RegExp Class Reference

#include <CeylanRegularExpression.h>

Collaboration diagram for Ceylan::RegExp:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 RegExp (const std::string &toAnalyze)
 Constructs a regular expression with the string which will be analyzed.
virtual ~RegExp () throw ()
 Basic virtual destructor.
virtual bool matches (const std::string &pattern) const
 Tells whether the string matches the expression pattern pattern.
virtual bool isXMLName () const
 Tells whether the string is a valid XML name.

Private Attributes

std::string _toAnalyze
 The string that will be analyzed.


Detailed Description

Definition at line 64 of file CeylanRegularExpression.h.


Constructor & Destructor Documentation

RegExp::RegExp ( const std::string &  toAnalyze  )  [explicit]

Constructs a regular expression with the string which will be analyzed.

Exceptions:
FeatureNotAvailableException if the regular expression support feature is not available.

Definition at line 58 of file CeylanRegularExpression.cc.

RegExp::~RegExp (  )  throw () [virtual]

Basic virtual destructor.

Definition at line 77 of file CeylanRegularExpression.cc.


Member Function Documentation

bool RegExp::isXMLName (  )  const [virtual]

Tells whether the string is a valid XML name.

Exceptions:
FeatureNotAvailableException if the regular expression support feature is not available.
Todo:
move to XML module.

Definition at line 84 of file CeylanRegularExpression.cc.

References matches().

bool RegExp::matches ( const std::string &  pattern  )  const [virtual]

Tells whether the string matches the expression pattern pattern.

Exceptions:
FeatureNotAvailableException if the regular expression support feature is not available.

Definition at line 93 of file CeylanRegularExpression.cc.

References _toAnalyze.

Referenced by Ceylan::System::StandardFileSystemManager::isAValidDirectoryPath(), Ceylan::Network::isAValidHostName(), Ceylan::Network::IPAddressvFour::IsValidIPv4(), and isXMLName().


Member Data Documentation

std::string Ceylan::RegExp::_toAnalyze [private]

The string that will be analyzed.

Definition at line 116 of file CeylanRegularExpression.h.

Referenced by matches().


The documentation for this class was generated from the following files:

Generated on Thu Jun 4 20:40:07 2009 for Ceylan by  doxygen 1.5.8