textwolf  0.2
Classes | Public Member Functions | Static Public Member Functions | List of all members
textwolf::charset::IsoLatinCodePage Class Reference

IsoLatin code page. More...

#include <codepages.hpp>

Inheritance diagram for textwolf::charset::IsoLatinCodePage:
textwolf::throws_exception textwolf::charset::IsoLatin

Public Member Functions

 IsoLatinCodePage (const IsoLatinCodePage &o)
 Copy constructor. More...
 
 IsoLatinCodePage (unsigned int idx)
 Constructor. More...
 
UChar ucharcode (char ch) const
 Get the unicode character representation of the character ch in this codepage. More...
 
char invcode (UChar ch) const
 Get the character representation of a unicode character in this codepage. More...
 

Static Public Member Functions

static bool is_equal (const IsoLatinCodePage &a, const IsoLatinCodePage &b)
 Evaluate if two code pages are equal. More...
 

Additional Inherited Members

- Public Types inherited from textwolf::throws_exception
enum  Cause {
  Unknown, DimOutOfRange, StateNumbersNotAscending, InvalidParamState,
  InvalidParamChar, DuplicateStateTransition, InvalidState, IllegalParam,
  IllegalAttributeName, OutOfMem, ArrayBoundsReadWrite, NotAllowedOperation,
  FileReadError, IllegalXmlHeader, InvalidTagOffset, CorruptTagStack,
  CodePageIndexNotSupported
}
 Enumeration of error cases. More...
 

Detailed Description

IsoLatin code page.

Constructor & Destructor Documentation

textwolf::charset::IsoLatinCodePage::IsoLatinCodePage ( const IsoLatinCodePage o)
inline

Copy constructor.

textwolf::charset::IsoLatinCodePage::IsoLatinCodePage ( unsigned int  idx)
inline

Constructor.

Parameters
[in]idxIsoLatin code page index, 1 for "IsoLatin-1"

Member Function Documentation

char textwolf::charset::IsoLatinCodePage::invcode ( UChar  ch) const
inline

Get the character representation of a unicode character in this codepage.

Parameters
[in]chunicode character
Returns
the representation of the passed unicode character in this codepage
static bool textwolf::charset::IsoLatinCodePage::is_equal ( const IsoLatinCodePage a,
const IsoLatinCodePage b 
)
inlinestatic

Evaluate if two code pages are equal.

UChar textwolf::charset::IsoLatinCodePage::ucharcode ( char  ch) const
inline

Get the unicode character representation of the character ch in this codepage.

Parameters
[in]chcharacter in this codepage
Returns
the unicode representation of the passed character

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