fe::ICharacterClassBuilder Class Reference
[Ferry Extensions library]

Character class builder. More...

List of all members.

Public Member Functions

bool addChar (utf32_char_type chr)
virtual bool UC_DLL_CALL addChars (utf32_char_type bChr, utf32_char_type eChr)=0
virtual bool UC_DLL_CALL contains (utf32_char_type chr) const =0
virtual ICharacterClass
*UC_DLL_CALL 
createCharacterClass ()=0
bool delChar (utf32_char_type chr)
virtual bool UC_DLL_CALL delChars (utf32_char_type bChr, utf32_char_type eChr)=0


Detailed Description

Character class builder.

A mutable set of Unicode characters.

Note:
This class is declared with UC_DLL_INTERFACE_DECLARE
See also:
fe::ICharacterDecoratorFactory

fe::ICharacterClass


Member Function Documentation

virtual bool UC_DLL_CALL fe::ICharacterClassBuilder::addChars ( utf32_char_type  bChr,
utf32_char_type  eChr 
) [pure virtual]

Adds (bChr, eChr] range of characters to this character class builder. Implementation should return true on success.

Parameters:
bChr the first character in the range to add;
eChr the character one past the final character in the range to add.

virtual bool UC_DLL_CALL fe::ICharacterClassBuilder::delChars ( utf32_char_type  bChr,
utf32_char_type  eChr 
) [pure virtual]

Deletes (bChr, eChr] range of characters from this character class builder. Implementation should return true on success.

Parameters:
bChr the first character in the range to delete;
eChr the character one past the final character in the range to delete.

bool fe::ICharacterClassBuilder::addChar ( utf32_char_type  chr  )  [inline]

Adds a single character to this character class builder. Implementation should return true on success.

Parameters:
chr a character to add.

bool fe::ICharacterClassBuilder::delChar ( utf32_char_type  chr  )  [inline]

Deletes a single character from this character class builder. Implementation should return true on success.

Parameters:
chr a character to delete.

virtual bool UC_DLL_CALL fe::ICharacterClassBuilder::contains ( utf32_char_type  chr  )  const [pure virtual]

Returns true if the given character belongs to this character class builder.

Parameters:
chr a character to test.

virtual ICharacterClass* UC_DLL_CALL fe::ICharacterClassBuilder::createCharacterClass (  )  [pure virtual]

Returns pointer to a heap allocated immutable copy of this character class builder or 0 if error occurred.

fe::ICharacterClass::contains() called on the object addressed with the returned pointer should return the same result as contains() called on this character class builder for any given character.


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

Generated on Tue Nov 18 21:08:23 2008 for Ferry by doxygen 1.5.7.1
http://sourceforge.net