Sourceforge.net - The VCF's Project Host
   The VCF Website Home   |   Online Discussion Forums   |   Sourceforge.net Project Page   

VCF::Regex::UTF_16LE Class Reference

Regex engine for UTF-16LE text. More...

#include <RegExKit.h>

Inheritance diagram for VCF::Regex::UTF_16LE:

VCF::Regex::Host VCF::Enumerator< Match > List of all members.

Public Member Functions

 UTF_16LE (const String &expression, const unsigned char *const first, const unsigned char *const last, const RegExKit::Syntax &syntax=RegExKit::sDefault)
 Standard constructor.
 UTF_16LE (const String &expression, const String &source, const RegExKit::Syntax &syntax=RegExKit::sDefault)
 Alternate constructor using a String to denote the search range.
void setRangeAsString (const String &newExpression)
 Sets the search range pointers to the beginning and end of a VCF::String object.

Protected Member Functions

virtual int init ()
virtual unsigned int characterWidth (const unsigned char *const location) const
virtual Match createMatch (const OnigRegion *region, const ptrdiff_t pos) const
virtual String::size_type countCharacters (const unsigned char *const start, const unsigned char *const end) const
bool Regex::UTF_16LE::isSurrogate (VCFChar octet) const

Detailed Description

Regex engine for UTF-16LE text.

After creating this object, always call compile() immediately.

See also:
Host


Constructor & Destructor Documentation

VCF::Regex::UTF_16LE::UTF_16LE const String expression,
const unsigned char *const   first,
const unsigned char *const   last,
const RegExKit::Syntax syntax = RegExKit::sDefault
 

Standard constructor.

It is the user's responsibility to ensure that the data in the search range remains valid for the lifetime of the UTF_16LE object.

Parameters:
String Regular expression.
unsigned char* Beginning of search range.
unsigned char* End of search range.
OnigSyntaxType The regex syntax used to interpret the expression.

VCF::Regex::UTF_16LE::UTF_16LE const String expression,
const String source,
const RegExKit::Syntax syntax = RegExKit::sDefault
 

Alternate constructor using a String to denote the search range.

It is the user's responsibility to ensure that the String object remains valid for the lifetime of the UTF_16LE object.

Parameters:
String Regular expression.
String Text to be searched.
OnigSyntaxType The regex syntax used to interpret the expression.


Member Function Documentation

virtual unsigned int VCF::Regex::UTF_16LE::characterWidth const unsigned char *const   location  )  const [protected, virtual]
 

Implements VCF::Regex::Host.

virtual String::size_type VCF::Regex::UTF_16LE::countCharacters const unsigned char *const   start,
const unsigned char *const   end
const [protected, virtual]
 

Implements VCF::Regex::Host.

virtual Match VCF::Regex::UTF_16LE::createMatch const OnigRegion *  region,
const ptrdiff_t  pos
const [protected, virtual]
 

Implements VCF::Regex::Host.

virtual int VCF::Regex::UTF_16LE::init  )  [protected, virtual]
 

Implements VCF::Regex::Host.

bool VCF::Regex::UTF_16LE::Regex::UTF_16LE::isSurrogate VCFChar  octet  )  const [protected]
 

void VCF::Regex::UTF_16LE::setRangeAsString const String newExpression  )  [virtual]
 

Sets the search range pointers to the beginning and end of a VCF::String object.

This is implemented by classes derived from Host as the result depends on the character width and representation.

Parameters:
String Data to be searched

Implements VCF::Regex::Host.


The documentation for this class was generated from the following file:
   Comments or Suggestions?    License Information