top | up | prev | next

CharacterTable Class

Definition at line 1034 of Unicode.hpp

Constructors

CharacterTable()
CharacterTable(const CharacterTable&) delete

Member Functions

CharacterInfo& CreateCharacterInfo(char32_t codePoint)
ExtendedCharacterInfo& CreateExtendedCharacterInfo(char32_t codePoint)
void Done() static
const CharacterInfo& GetCharacterInfo(char32_t codePoint)
const ExtendedCharacterInfo& GetExtendedCharacterInfo(char32_t codePoint)
void Init() static
CharacterTable& Instance() static
void ReadExtendedHeader(BinaryReader& reader)
void ReadHeader(BinaryReader& reader)
void Write()
void WriteHeader(BinaryWriter& writer)
CharacterTable& operator=(const CharacterTable&) delete

Member Variables

ExtendedCharacterInfoHeader extendedHeader
uint32_t extendedHeaderEnd
bool extendedHeaderRead
uint32_t extendedHeaderStart
std::vector<std::unique_ptr<ExtendedCharacterInfoPage>> extendedPages
bool headerRead
const size_t headerSize
std::unique_ptr<CharacterTable> instance static
std::vector<std::unique_ptr<CharacterInfoPage>> pages

Constructor Details

CharacterTable Constructor

soulng::unicode::CharacterTable::CharacterTable()

Definition at line 2071 of Unicode.cpp :
2071 : headerRead(false)extendedHeaderStart(0)extendedHeaderEnd(0)extendedHeaderRead(false)
2072 {
2073 }


Declaration at line 1049 of Unicode.hpp


CharacterTable Constructor

soulng::unicode::CharacterTable::CharacterTable(const CharacterTable &) delete

Definition at line 1037 of Unicode.hpp


Member Function Details

CreateCharacterInfo Member Function

CharacterInfo & soulng::unicode::CharacterTable::CreateCharacterInfo(char32_t codePoint)

Definition at line 2189 of Unicode.cpp
Declaration at line 1043 of Unicode.hpp

Calls: soulng::unicode::CharacterInfoPage::GetCharacterInfo


CreateExtendedCharacterInfo Member Function

ExtendedCharacterInfo & soulng::unicode::CharacterTable::CreateExtendedCharacterInfo(char32_t codePoint)

Definition at line 2259 of Unicode.cpp
Declaration at line 1045 of Unicode.hpp

Calls: soulng::unicode::ExtendedCharacterInfoPage::GetExtendedCharacterInfo


Done Member Function

void soulng::unicode::CharacterTable::Done() static

Definition at line 2038 of Unicode.cpp :
2039 {
2040     instance.reset();
2041 }


Declaration at line 1040 of Unicode.hpp


GetCharacterInfo Member Function

const CharacterInfo & soulng::unicode::CharacterTable::GetCharacterInfo(char32_t codePoint)

Definition at line 2146 of Unicode.cpp
Declaration at line 1042 of Unicode.hpp

Calls: soulng::unicode::CharacterInfoPage::GetCharacterInfo , soulng::unicode::CharacterInfoPage::Read , soulng::unicode::CharacterTable::ReadHeader


GetExtendedCharacterInfo Member Function

const ExtendedCharacterInfo & soulng::unicode::CharacterTable::GetExtendedCharacterInfo(char32_t codePoint)

Definition at line 2205 of Unicode.cpp
Declaration at line 1044 of Unicode.hpp

Calls: soulng::unicode::CharacterTable::ReadExtendedHeader , soulng::unicode::CharacterTable::ReadHeader , soulng::unicode::ExtendedCharacterInfoHeader::GetPageStart , soulng::unicode::ExtendedCharacterInfoPage::GetExtendedCharacterInfo , soulng::unicode::ExtendedCharacterInfoPage::Read


Init Member Function

void soulng::unicode::CharacterTable::Init() static

Definition at line 2033 of Unicode.cpp :
2034 {
2035     instance.reset(new CharacterTable());
2036 }


Declaration at line 1039 of Unicode.hpp


Instance Member Function

CharacterTable & soulng::unicode::CharacterTable::Instance() static

Definition at line 1041 of Unicode.hpp :
1041 { return *instance; }


ReadExtendedHeader Member Function

void soulng::unicode::CharacterTable::ReadExtendedHeader(BinaryReader& reader)

Definition at line 2138 of Unicode.cpp :
2139 {
2140     extendedHeaderRead = true;
2141     extendedHeader.Read(reader);
2142 }


Calls: soulng::unicode::ExtendedCharacterInfoHeader::Read

Called by: soulng::unicode::CharacterTable::GetExtendedCharacterInfo


ReadHeader Member Function

void soulng::unicode::CharacterTable::ReadHeader(BinaryReader& reader)

Definition at line 2114 of Unicode.cpp

Called by: soulng::unicode::CharacterTable::GetCharacterInfo , soulng::unicode::CharacterTable::GetExtendedCharacterInfo


Write Member Function

void soulng::unicode::CharacterTable::Write()

Definition at line 2075 of Unicode.cpp
Declaration at line 1046 of Unicode.hpp

Calls: soulng::unicode::CharacterInfoPage::Write , soulng::unicode::CharacterTable::WriteHeader , soulng::unicode::ExtendedCharacterInfoHeader::AllocatePages , soulng::unicode::ExtendedCharacterInfoHeader::SetPageStart , soulng::unicode::ExtendedCharacterInfoHeader::Write , soulng::unicode::ExtendedCharacterInfoPage::Write


WriteHeader Member Function

void soulng::unicode::CharacterTable::WriteHeader(BinaryWriter& writer)

Definition at line 2104 of Unicode.cpp :
2105 {
2106     for (int i = 0; i < 8; ++i)
2107     {
2108         writer.Write(headerMagic[i]);
2109     }
2110     writer.Write(uint32_t(extendedHeaderStart));
2111     writer.Write(uint32_t(extendedHeaderEnd));
2112 }


Called by: soulng::unicode::CharacterTable::Write


operator= Member Function

CharacterTable & soulng::unicode::CharacterTable::operator=(const CharacterTable &) delete

Definition at line 1038 of Unicode.hpp


top | up | prev | next