OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
owl::TCharSet Class Reference

Derived from TBitSet, TCharSet sets and clears bytes for a group of characters. More...

#include <owl/bitset.h>

Inheritance diagram for owl::TCharSet:
owl::TBitSet< tchar >

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.
 
TBitSetoperator+= (tchar item)
 Enable a specific bit.
 
TBitSetoperator+= (const TBitSet &bs)
 Enable all the given bits.
 
TBitSetoperator-= (tchar item)
 Disable a specific bit.
 
TBitSetoperator-= (const TBitSet &bs)
 Disable all the given bits.
 
TBitSetoperator|= (const TBitSet &bs)
 Enable all the given bits.
 
TBitSetoperator&= (const TBitSet &bs)
 Logically AND each individual bits.
 
bool IsEmpty () const
 Return true if all bits are off.
 

Detailed Description

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.

Definition at line 125 of file bitset.h.

Constructor & Destructor Documentation

◆ TCharSet() [1/4]

owl::TCharSet::TCharSet ( )

Construct a default character set.

All items are set to 0.

Definition at line 210 of file bitset.cpp.

◆ TCharSet() [2/4]

owl::TCharSet::TCharSet ( const TBitSet< tchar > & src)

Copy the bitset into this character set.

Definition at line 219 of file bitset.cpp.

◆ TCharSet() [3/4]

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().

◆ TCharSet() [4/4]

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().


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