OWLNext 7.0
Borland's Object Windows Library for the modern age
|
Derived from TBitSet, TCharSet sets and clears bytes for a group of characters. More...
#include <owl/bitset.h>
Public Member Functions | |
TCharSet () | |
Construct a default character set. | |
TCharSet (const TBitSet< tchar > &src) | |
Copy the bitset into this character set. | |
TCharSet (LPCTSTR str) | |
Construct a character set from a string. | |
TCharSet (const tstring &str) | |
Construct a character set from a string. | |
Public Member Functions inherited from owl::TBitSet< tchar > | |
TBitSet () | |
Constructs a TBitSet object with all bits set to 0. | |
TBitSet (const TBitSet &src) | |
Constructs a TBitSet object as a copy of another TBitSet. | |
bool | Has (tchar item) const |
Return true if a bit is turned on. | |
TBitSet | operator~ () const |
Negate a bit. | |
void | DisableItem (tchar item) |
Turn off a specific bit. | |
void | DisableItem (const TBitSet &bs) |
Turn off all the given bits. | |
void | EnableItem (tchar item) |
Turn on a specific bit. | |
void | EnableItem (const TBitSet &bs) |
Turn on all the given bits. | |
TBitSet & | operator+= (tchar item) |
Enable a specific bit. | |
TBitSet & | operator+= (const TBitSet &bs) |
Enable all the given bits. | |
TBitSet & | operator-= (tchar item) |
Disable a specific bit. | |
TBitSet & | operator-= (const TBitSet &bs) |
Disable all the given bits. | |
TBitSet & | operator|= (const TBitSet &bs) |
Enable all the given bits. | |
TBitSet & | operator&= (const TBitSet &bs) |
Logically AND each individual bits. | |
bool | IsEmpty () const |
Return true if all bits are off. | |
Derived from TBitSet, TCharSet sets and clears bytes for a group of characters.
You can use this class to set or clear bits in a group of characters, such as the capital letters from "A" through "Z" or the lowercase letters from "a" through "z". The class TBitSet performs similar operations for a group of bits.
owl::TCharSet::TCharSet | ( | ) |
Construct a default character set.
All items are set to 0.
Definition at line 210 of file bitset.cpp.
Copy the bitset into this character set.
Definition at line 219 of file bitset.cpp.
owl::TCharSet::TCharSet | ( | LPCTSTR | str | ) |
Construct a character set from a string.
The characters act as the index for the bitset.
Definition at line 229 of file bitset.cpp.
References _T, and owl::TBitSet< tchar >::EnableItem().
owl::TCharSet::TCharSet | ( | const tstring & | s | ) |
Construct a character set from a string.
The characters act as the index for the bitset.
Definition at line 249 of file bitset.cpp.
References _T, and owl::TBitSet< tchar >::EnableItem().