Wt::WRegExpValidator Class Reference

A WRegExpValidator is used to validate user input against a regular expression. More...

#include <WRegExpValidator>

Inherits Wt::WValidator.

Inheritance diagram for Wt::WRegExpValidator:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 WRegExpValidator (const boost::wregex &rx)
 Create a new regular expression validator that accepts input that matches the given regular expression.
 WRegExpValidator (const WString &expr)
 Create a new regular expression validator that accepts input that matches the given perl regular expression.
 ~WRegExpValidator ()
 Delete the regexp validator.
const boost::wregex & regExp () const
 Return the regular expression for matching.
virtual State validate (WString &input, int &pos) const
 Validate the to match the regular expression.

Detailed Description

A WRegExpValidator is used to validate user input against a regular expression.

This validator checks whether user input is matched by the given regular expression.


Constructor & Destructor Documentation

Wt::WRegExpValidator::WRegExpValidator ( const boost::wregex &  rx  ) 

Create a new regular expression validator that accepts input that matches the given regular expression.

Deprecated. Consider using WRegExpValidator(const std::string) which is available on all platforms (including WIN32).

Wt::WRegExpValidator::WRegExpValidator ( const WString expr  ) 

Create a new regular expression validator that accepts input that matches the given perl regular expression.

TODO: provide a nice subset of the options provided by boost::regex.


The documentation for this class was generated from the following files:
Generated on Sun Jul 1 19:37:18 2007 for Wt by doxygen 1.4.7