Loading...
Searching...
No Matches
Public Member Functions | List of all members
unicode_block Class Reference

Describes the blocks of Unicode characters supported by a font. More...

Public Member Functions

 unicode_block ()
 Construct a unicode_block and set block data to 0.
 
 unicode_block (uint64 block2, uint64 block1)
 Construct a unicode_block object and initialize it with the supplied Unicode block range.
 
bool Includes (const unicode_block &block) const
 Determines if block is a subset of the unicode_block object.
 
Operators
unicode_block operator& (const unicode_block &block) const
 Creates and returns a new unicode_block object that is the intersection of block and the unicode_block object.
 
unicode_block operator| (const unicode_block &block) const
 Creates and returns a new unicode_block object that is the union of block and the unicode_block object.
 
unicode_blockoperator= (const unicode_block &block)
 Copies block data into the left-hand side object.
 
bool operator== (const unicode_block &block) const
 Determines if the block object are exactly equal.
 
bool operator!= (const unicode_block &block) const
 Determines if the block object are not equal.
 

Detailed Description

Describes the blocks of Unicode characters supported by a font.

See also
BFont::Blocks()
Since
BeOS R4

Constructor & Destructor Documentation

◆ unicode_block() [1/2]

unicode_block::unicode_block ( )
inline

Construct a unicode_block and set block data to 0.

You must initialize the block data before before using this object.

Since
BeOS R4

◆ unicode_block() [2/2]

unicode_block::unicode_block ( uint64  block2,
uint64  block1 
)
inline

Construct a unicode_block object and initialize it with the supplied Unicode block range.

Parameters
block2End block.
block1Begin block.
Since
BeOS R4

Member Function Documentation

◆ Includes()

bool unicode_block::Includes ( const unicode_block block) const
inline

Determines if block is a subset of the unicode_block object.

Parameters
blockThe Unicode block to check.
Returns
Whether or not block is a subset of the unicode_block object.
Return values
trueblock is a subset of the current unicode_block.
falseblock is NOT a subset of the current unicode_block.
Since
BeOS R4

◆ operator!=()

bool unicode_block::operator!= ( const unicode_block block) const
inline

Determines if the block object are not equal.

Parameters
blockThe unicode block to compare against.
Returns
true if the block object are NOT equal, false if the block objects are exactly equal.
Since
BeOS R4

◆ operator&()

unicode_block unicode_block::operator& ( const unicode_block block) const
inline

Creates and returns a new unicode_block object that is the intersection of block and the unicode_block object.

Parameters
blockThe Unicode block to intersect with.
Returns
The intersection of block and the unicode_block object.
Since
BeOS R4

◆ operator=()

unicode_block & unicode_block::operator= ( const unicode_block block)
inline

Copies block data into the left-hand side object.

Parameters
blockThe unicode block to copy from.
Returns
A copy of block.
Since
BeOS R4

◆ operator==()

bool unicode_block::operator== ( const unicode_block block) const
inline

Determines if the block object are exactly equal.

Parameters
blockThe unicode block to compare against.
Returns
true if the block object are exactly equal, false otherwise.
Since
BeOS R4

◆ operator|()

unicode_block unicode_block::operator| ( const unicode_block block) const
inline

Creates and returns a new unicode_block object that is the union of block and the unicode_block object.

Parameters
blockThe Unicode block to form a union with.
Returns
The union of block and the unicode_block object.
Since
BeOS R4