top | up | prev | next

unicode Namespace

Classes

class Age
struct AgeIdHash
class AgeTable
class Alias
class AliasType
struct AliasTypeIdHash
class AliasTypeTable
class BidiClass
struct BidiClassIdHash
class BidiClassTable
class BidiPairedBracketType
struct BidiPairedBracketTypeIdHash
class BidiPairedBracketTypeTable
class BinaryProperty
struct BinaryPropertyIdHash
class BinaryPropertyTable
class Block
struct BlockIdHash
class BlockTable
class CharacterInfo
class CharacterInfoPage
class CharacterTable
class ExtendedCharacterInfo
class ExtendedCharacterInfoHeader
class ExtendedCharacterInfoPage
class GeneralCategory
struct GeneralCategoryIdHash
class GeneralCategoryTable
class NumericType
struct NumericTypeIdHash
class NumericTypeTable
class Script
struct ScriptIdHash
class ScriptTable
class UnicodeException
class Utf8ToUtf32Engine

Functions

const std::vector<Alias>& Aliases(char32_t c) inline
std::string CmajorRoot()
std::string CmajorUcdFilePath()
std::string CmajorVersionStr()
CharacterInfo& CreateCharacterInfo(char32_t codePoint) inline
ExtendedCharacterInfo& CreateExtendedCharacterInfo(char32_t codePoint) inline
const std::u32string& FullFolding(char32_t c) inline
const std::u32string& FullLower(char32_t c) inline
const std::u32string& FullTitle(char32_t c) inline
const std::u32string& FullUpper(char32_t c) inline
const Age& GetAge(AgeId id) inline
const Age& GetAge(const std::string& version) inline
const AliasType& GetAliasType(AliasTypeId id) inline
const AliasType& GetAliasType(const std::string& typeName) inline
const BidiClass& GetBidiClass(BidiClassId id) inline
const BidiClass& GetBidiClassByLongName(const std::string& longtName) inline
const BidiClass& GetBidiClassByShortName(const std::string& shortName) inline
char32_t GetBidiMirroringGlyph(char32_t c) inline
char32_t GetBidiPairedBracket(char32_t c) inline
const BidiPairedBracketType& GetBidiPairedBracketType(BidiPairedBracketTypeId id) inline
BidiPairedBracketTypeId GetBidiPairedBracketType(char32_t c) inline
const BidiPairedBracketType& GetBidiPairedBracketTypeByLongName(const std::string& longName) inline
const BidiPairedBracketType& GetBidiPairedBracketTypeByShortName(const std::string& shortName) inline
const BinaryProperty& GetBinaryProperty(BinaryPropertyId id) inline
const BinaryProperty& GetBinaryPropertyByLongName(const std::string& longName) inline
const BinaryProperty& GetBinaryPropertyByShortName(const std::string& shortName) inline
const Block& GetBlock(BlockId blockId) inline
const Block& GetBlockByLongName(const std::string& longName) inline
const Block& GetBlockByShortName(const std::string& shortName) inline
const CharacterInfo& GetCharacterInfo(char32_t codePoint) inline
const std::string& GetCharacterName(char32_t c) inline
const ExtendedCharacterInfo& GetExtendedCharacterInfo(char32_t codePoint) inline
const GeneralCategory& GetGeneralCategory(GeneralCategoryId id) inline
GeneralCategoryId GetGeneralCategory(char32_t c) inline
const GeneralCategory& GetGeneralCategoryByLongName(const std::string& longName) inline
const GeneralCategory& GetGeneralCategoryByShortName(const std::string& shortName) inline
const NumericType& GetNumericType(NumericTypeId id) inline
NumericTypeId GetNumericType(char32_t c) inline
const NumericType& GetNumericTypeByLongName(const std::string& longName) inline
const NumericType& GetNumericTypeByShortName(const std::string& shortName) inline
const std::string& GetNumericValue(char32_t c) inline
const Script& GetScript(ScriptId id) inline
const Script& GetScriptByLongName(const std::string& longName) inline
const Script& GetScriptByShortName(const std::string& shortName) inline
const std::string& GetUnicode1Name(char32_t c) inline
bool HasGeneralCategory(char32_t c, GeneralCategoryId generalCategory) inline
bool IsAlphabetic(char32_t c) inline
bool IsAsciiDigit(char32_t c)
bool IsAsciiHexDigit(char32_t c) inline
bool IsBase(char32_t c) inline
bool IsBidiControl(char32_t c) inline
bool IsBidiMirrored(char32_t c) inline
bool IsCasedLetter(char32_t c) inline
bool IsClosePunctuation(char32_t c) inline
bool IsCombining(char32_t c) inline
bool IsConnectorPunctuation(char32_t c) inline
bool IsControl(char32_t c) inline
bool IsCurrencySymbol(char32_t c) inline
bool IsDashPunctuation(char32_t c) inline
bool IsDecimalNumber(char32_t c) inline
bool IsEnclosingMark(char32_t c) inline
bool IsFinalPunctuation(char32_t c) inline
bool IsFormat(char32_t c) inline
bool IsGraphemeBase(char32_t c) inline
bool IsGraphemeExtender(char32_t c) inline
bool IsGraphic(char32_t c) inline
bool IsIdCont(char32_t c) inline
bool IsIdStart(char32_t c) inline
bool IsInitialPunctuation(char32_t c) inline
bool IsLetter(char32_t c) inline
bool IsLetterNumber(char32_t c) inline
bool IsLineSeparator(char32_t c) inline
bool IsLowerLetter(char32_t c) inline
bool IsLowercase(char32_t c) inline
bool IsMark(char32_t c) inline
bool IsMathSymbol(char32_t c) inline
bool IsModifierLetter(char32_t c) inline
bool IsModifierSymbol(char32_t c) inline
bool IsNonspacingMark(char32_t c) inline
bool IsNumber(char32_t c) inline
bool IsOpenPunctuation(char32_t c) inline
bool IsOther(char32_t c) inline
bool IsOtherLetter(char32_t c) inline
bool IsOtherLower(char32_t c) inline
bool IsOtherNumber(char32_t c) inline
bool IsOtherPunctuation(char32_t c) inline
bool IsOtherSymbol(char32_t c) inline
bool IsOtherUpper(char32_t c) inline
bool IsParagraphSeparator(char32_t c) inline
bool IsPrivateUse(char32_t c) inline
bool IsPunctuation(char32_t c) inline
bool IsSeparator(char32_t c) inline
bool IsSpaceSeparator(char32_t c) inline
bool IsSpacingMark(char32_t c) inline
bool IsSurrogate(char32_t c) inline
bool IsSymbol(char32_t c) inline
bool IsTitleLetter(char32_t c) inline
bool IsUnassigned(char32_t c) inline
bool IsUpperLetter(char32_t c) inline
bool IsUppercase(char32_t c) inline
bool IsWhiteSpace(char32_t c) inline
std::string MakeCanonicalPropertyName(const std::string& s)
void ThrowInvalidUtf8Sequence()
char32_t ToFolding(char32_t c) inline
char32_t ToLower(char32_t c) inline
std::u32string ToLower(const std::u32string& s)
char32_t ToTitle(char32_t c) inline
char32_t ToUpper(char32_t c) inline
std::u32string ToUpper(const std::u32string& s)
std::u16string ToUtf16(const std::string& utf8Str)
std::u16string ToUtf16(const std::u32string& utf32Str)
std::u32string ToUtf32(const std::string& utf8Str)
std::u32string ToUtf32(const std::u16string& utf16Str)
std::string ToUtf8(const std::u16string& utf16Str)
std::string ToUtf8(const std::u32string& utf32Str)
void UnicodeDone()
void UnicodeInit()
GeneralCategoryId operator&(GeneralCategoryId left, GeneralCategoryId right) inline
GeneralCategoryId operator|(GeneralCategoryId left, GeneralCategoryId right) inline

Enumerations

enum class AgeId
enum class AliasTypeId
enum class BidiClassId
enum class BidiPairedBracketTypeId
enum class BinaryPropertyId
enum class BlockId
enum class GeneralCategoryId
enum class NumericTypeId
enum class ScriptId

Variables

size_t characterInfoPageSize
size_t characterInfoSize
const uint8_t cmajor_ucd_version_1
const uint8_t cmajor_ucd_version_2
const uint8_t cmajor_ucd_version_3
const uint8_t current_cmajor_ucd_version
std::mutex mtx
int numInfosInPage

Function Details

Aliases Function

const std::vector<Alias >& soulng::unicode::Aliases(char32_t c) inline

Definition at line 1418 of Unicode.hpp :
1419 {
1420     return GetExtendedCharacterInfo(c).Aliases();
1421 }


Calls: soulng::unicode::ExtendedCharacterInfo::Aliases


CmajorRoot Function

std::string soulng::unicode::CmajorRoot()

Definition at line 2051 of Unicode.cpp


CmajorUcdFilePath Function

std::string soulng::unicode::CmajorUcdFilePath()

Definition at line 2066 of Unicode.cpp :
2067 {
2068     return (boost::filesystem::path(CmajorRoot()) / boost::filesystem::path("unicode") / boost::filesystem::path("cmajor_ucd.bin")).generic_string();
2069 }


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


CmajorVersionStr Function

std::string soulng::unicode::CmajorVersionStr()

Definition at line 14 of Unicode.cpp :
  15 {
  16     return "3.10.0";
  17 }



CreateCharacterInfo Function

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

Definition at line 1064 of Unicode.hpp :
1064 { return CharacterTable::Instance().CreateCharacterInfo(codePoint); }

Calls: soulng::unicode::CharacterTable::CreateCharacterInfo , soulng::unicode::CharacterTable::Instance


CreateExtendedCharacterInfo Function

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

Definition at line 1066 of Unicode.hpp :
1066 { return CharacterTable::Instance().CreateExtendedCharacterInfo(codePoint); }

Calls: soulng::unicode::CharacterTable::CreateExtendedCharacterInfo , soulng::unicode::CharacterTable::Instance


FullFolding Function

const std::u32string& soulng::unicode::FullFolding(char32_t c) inline

Definition at line 1311 of Unicode.hpp :
1312 {
1313     return GetExtendedCharacterInfo(c).FullFolding();
1314 }


Calls: soulng::unicode::ExtendedCharacterInfo::FullFolding


FullLower Function

const std::u32string& soulng::unicode::FullLower(char32_t c) inline

Definition at line 1301 of Unicode.hpp :
1302 {
1303     return GetExtendedCharacterInfo(c).FullLower();
1304 }


Calls: soulng::unicode::ExtendedCharacterInfo::FullLower


FullTitle Function

const std::u32string& soulng::unicode::FullTitle(char32_t c) inline

Definition at line 1306 of Unicode.hpp :
1307 {
1308     return GetExtendedCharacterInfo(c).FullTitle();
1309 }


Calls: soulng::unicode::ExtendedCharacterInfo::FullTitle


FullUpper Function

const std::u32string& soulng::unicode::FullUpper(char32_t c) inline

Definition at line 1296 of Unicode.hpp :
1297 {
1298     return GetExtendedCharacterInfo(c).FullUpper();
1299 }


Calls: soulng::unicode::ExtendedCharacterInfo::FullUpper


GetAge Function

const Age & soulng::unicode::GetAge(AgeId id) inline

Definition at line 407 of Unicode.hpp :
 408 {
 409     return AgeTable::Instance().GetAge(id);
 410 }


Calls: soulng::unicode::AgeTable::GetAge , soulng::unicode::AgeTable::Instance


GetAge Function

const Age & soulng::unicode::GetAge(const std::string& version) inline

Definition at line 412 of Unicode.hpp :
 413 {
 414     return AgeTable::Instance().GetAge(version);
 415 }


Calls: soulng::unicode::AgeTable::GetAge , soulng::unicode::AgeTable::Instance


GetAliasType Function

const AliasType & soulng::unicode::GetAliasType(AliasTypeId id) inline

Definition at line 836 of Unicode.hpp :
 837 {
 838     return AliasTypeTable::Instance().GetAliasType(id);
 839 }


Calls: soulng::unicode::AliasTypeTable::GetAliasType , soulng::unicode::AliasTypeTable::Instance


GetAliasType Function

const AliasType & soulng::unicode::GetAliasType(const std::string& typeName) inline

Definition at line 841 of Unicode.hpp :
 842 {
 843     return AliasTypeTable::Instance().GetAliasType(typeName);
 844 }


Calls: soulng::unicode::AliasTypeTable::GetAliasType , soulng::unicode::AliasTypeTable::Instance


GetBidiClass Function

const BidiClass & soulng::unicode::GetBidiClass(BidiClassId id) inline

Definition at line 718 of Unicode.hpp :
 719 {
 720     return BidiClassTable::Instance().GetBidiClass(id);
 721 }


Calls: soulng::unicode::BidiClassTable::GetBidiClass , soulng::unicode::BidiClassTable::Instance


GetBidiClassByLongName Function

const BidiClass & soulng::unicode::GetBidiClassByLongName(const std::string& longtName) inline

Definition at line 728 of Unicode.hpp :
 729 {
 730     return BidiClassTable::Instance().GetBidiClassByLongName(longtName);
 731 }


Calls: soulng::unicode::BidiClassTable::GetBidiClassByLongName , soulng::unicode::BidiClassTable::Instance


GetBidiClassByShortName Function

const BidiClass & soulng::unicode::GetBidiClassByShortName(const std::string& shortName) inline

Definition at line 723 of Unicode.hpp :
 724 {
 725     return BidiClassTable::Instance().GetBidiClassByShortName(shortName);
 726 }


Calls: soulng::unicode::BidiClassTable::GetBidiClassByShortName , soulng::unicode::BidiClassTable::Instance


GetBidiMirroringGlyph Function

char32_t soulng::unicode::GetBidiMirroringGlyph(char32_t c) inline

Definition at line 1403 of Unicode.hpp :
1404 {
1405     return GetExtendedCharacterInfo(c).GetBidiMirroringGlyph();
1406 }


Calls: soulng::unicode::ExtendedCharacterInfo::GetBidiMirroringGlyph


GetBidiPairedBracket Function

char32_t soulng::unicode::GetBidiPairedBracket(char32_t c) inline

Definition at line 1413 of Unicode.hpp :
1414 {
1415     return GetExtendedCharacterInfo(c).GetBidiPairedBracket();
1416 }


Calls: soulng::unicode::ExtendedCharacterInfo::GetBidiPairedBracket


GetBidiPairedBracketType Function

const BidiPairedBracketType & soulng::unicode::GetBidiPairedBracketType(BidiPairedBracketTypeId id) inline

Definition at line 779 of Unicode.hpp :
 780 {
 781     return BidiPairedBracketTypeTable::Instance().GetBidiPairedBracketType(id);
 782 }


Calls: soulng::unicode::BidiPairedBracketTypeTable::GetBidiPairedBracketType , soulng::unicode::BidiPairedBracketTypeTable::Instance


GetBidiPairedBracketType Function

BidiPairedBracketTypeId soulng::unicode::GetBidiPairedBracketType(char32_t c) inline

Definition at line 1408 of Unicode.hpp :
1409 {
1410     return GetExtendedCharacterInfo(c).GetBidiPairedBracketType();
1411 }


Calls: soulng::unicode::ExtendedCharacterInfo::GetBidiPairedBracketType


GetBidiPairedBracketTypeByLongName Function

const BidiPairedBracketType & soulng::unicode::GetBidiPairedBracketTypeByLongName(const std::string& longName) inline

Definition at line 789 of Unicode.hpp :
 790 {
 791     return BidiPairedBracketTypeTable::Instance().GetBidiPairedBracketTypeByLongName(longName);
 792 }


Calls: soulng::unicode::BidiPairedBracketTypeTable::GetBidiPairedBracketTypeByLongName , soulng::unicode::BidiPairedBracketTypeTable::Instance


GetBidiPairedBracketTypeByShortName Function

const BidiPairedBracketType & soulng::unicode::GetBidiPairedBracketTypeByShortName(const std::string& shortName) inline

Definition at line 784 of Unicode.hpp :
 785 {
 786     return BidiPairedBracketTypeTable::Instance().GetBidiPairedBracketTypeByShortName(shortName);
 787 }


Calls: soulng::unicode::BidiPairedBracketTypeTable::GetBidiPairedBracketTypeByShortName , soulng::unicode::BidiPairedBracketTypeTable::Instance


GetBinaryProperty Function

const BinaryProperty & soulng::unicode::GetBinaryProperty(BinaryPropertyId id) inline

Definition at line 159 of Unicode.hpp :
 160 {
 161     return BinaryPropertyTable::Instance().GetBinaryProperty(id);
 162 }


Calls: soulng::unicode::BinaryPropertyTable::GetBinaryProperty , soulng::unicode::BinaryPropertyTable::Instance


GetBinaryPropertyByLongName Function

const BinaryProperty & soulng::unicode::GetBinaryPropertyByLongName(const std::string& longName) inline

Definition at line 169 of Unicode.hpp :
 170 {
 171     return BinaryPropertyTable::Instance().GetBinaryPropertyByLongName(longName);
 172 }


Calls: soulng::unicode::BinaryPropertyTable::GetBinaryPropertyByLongName , soulng::unicode::BinaryPropertyTable::Instance


GetBinaryPropertyByShortName Function

const BinaryProperty & soulng::unicode::GetBinaryPropertyByShortName(const std::string& shortName) inline

Definition at line 164 of Unicode.hpp :
 165 {
 166     return BinaryPropertyTable::Instance().GetBinaryPropertyByShortName(shortName);
 167 }


Calls: soulng::unicode::BinaryPropertyTable::GetBinaryPropertyByShortName , soulng::unicode::BinaryPropertyTable::Instance


GetBlock Function

const Block & soulng::unicode::GetBlock(BlockId blockId) inline

Definition at line 252 of Unicode.hpp :
 253 {
 254     return BlockTable::Instance().GetBlock(blockId);
 255 }


Calls: soulng::unicode::BlockTable::GetBlock , soulng::unicode::BlockTable::Instance


GetBlockByLongName Function

const Block & soulng::unicode::GetBlockByLongName(const std::string& longName) inline

Definition at line 262 of Unicode.hpp :
 263 {
 264     return BlockTable::Instance().GetBlockByLongName(longName);
 265 }


Calls: soulng::unicode::BlockTable::GetBlockByLongName , soulng::unicode::BlockTable::Instance


GetBlockByShortName Function

const Block & soulng::unicode::GetBlockByShortName(const std::string& shortName) inline

Definition at line 257 of Unicode.hpp :
 258 {
 259     return BlockTable::Instance().GetBlockByShortName(shortName);
 260 }


Calls: soulng::unicode::BlockTable::GetBlockByShortName , soulng::unicode::BlockTable::Instance


GetCharacterInfo Function

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

Definition at line 1063 of Unicode.hpp :
1063 { return CharacterTable::Instance().GetCharacterInfo(codePoint); }

Calls: soulng::unicode::CharacterTable::GetCharacterInfo , soulng::unicode::CharacterTable::Instance


GetCharacterName Function

const std::string& soulng::unicode::GetCharacterName(char32_t c) inline

Definition at line 1373 of Unicode.hpp :
1374 {
1375     return GetExtendedCharacterInfo(c).CharacterName();
1376 }


Calls: soulng::unicode::ExtendedCharacterInfo::CharacterName


GetExtendedCharacterInfo Function

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

Definition at line 1065 of Unicode.hpp :
1065 { return CharacterTable::Instance().GetExtendedCharacterInfo(codePoint); }

Calls: soulng::unicode::CharacterTable::GetExtendedCharacterInfo , soulng::unicode::CharacterTable::Instance


GetGeneralCategory Function

const GeneralCategory & soulng::unicode::GetGeneralCategory(GeneralCategoryId id) inline

Definition at line 339 of Unicode.hpp :
 340 {
 341     return GeneralCategoryTable::Instance().GetGeneralCategory(id);
 342 }


Calls: soulng::unicode::GeneralCategoryTable::GetGeneralCategory , soulng::unicode::GeneralCategoryTable::Instance


GetGeneralCategory Function

GeneralCategoryId soulng::unicode::GetGeneralCategory(char32_t c) inline

Definition at line 1068 of Unicode.hpp :
1068 { return GetCharacterInfo(c).GetGeneralCategory(); }

Calls: soulng::unicode::CharacterInfo::GetGeneralCategory


GetGeneralCategoryByLongName Function

const GeneralCategory & soulng::unicode::GetGeneralCategoryByLongName(const std::string& longName) inline

Definition at line 349 of Unicode.hpp :
 350 {
 351     return GeneralCategoryTable::Instance().GetGeneralCategoryByLongName(longName);
 352 }


Calls: soulng::unicode::GeneralCategoryTable::GetGeneralCategoryByLongName , soulng::unicode::GeneralCategoryTable::Instance


GetGeneralCategoryByShortName Function

const GeneralCategory & soulng::unicode::GetGeneralCategoryByShortName(const std::string& shortName) inline

Definition at line 344 of Unicode.hpp :
 345 {
 346     return GeneralCategoryTable::Instance().GetGeneralCategoryByShortName(shortName);
 347 }


Calls: soulng::unicode::GeneralCategoryTable::GetGeneralCategoryByShortName , soulng::unicode::GeneralCategoryTable::Instance


GetNumericType Function

const NumericType & soulng::unicode::GetNumericType(NumericTypeId id) inline

Definition at line 657 of Unicode.hpp :
 658 {
 659     return NumericTypeTable::Instance().GetNumericType(id);
 660 }


Calls: soulng::unicode::NumericTypeTable::GetNumericType , soulng::unicode::NumericTypeTable::Instance


GetNumericType Function

NumericTypeId soulng::unicode::GetNumericType(char32_t c) inline

Definition at line 1383 of Unicode.hpp :
1384 {
1385     return GetExtendedCharacterInfo(c).GetNumericType();
1386 }


Calls: soulng::unicode::ExtendedCharacterInfo::GetNumericType


GetNumericTypeByLongName Function

const NumericType & soulng::unicode::GetNumericTypeByLongName(const std::string& longName) inline

Definition at line 667 of Unicode.hpp :
 668 {
 669     return NumericTypeTable::Instance().GetNumericTypeByLongName(longName);
 670 }


Calls: soulng::unicode::NumericTypeTable::GetNumericTypeByLongName , soulng::unicode::NumericTypeTable::Instance


GetNumericTypeByShortName Function

const NumericType & soulng::unicode::GetNumericTypeByShortName(const std::string& shortName) inline

Definition at line 662 of Unicode.hpp :
 663 {
 664     return NumericTypeTable::Instance().GetNumericTypeByShortName(shortName);
 665 }


Calls: soulng::unicode::NumericTypeTable::GetNumericTypeByShortName , soulng::unicode::NumericTypeTable::Instance


GetNumericValue Function

const std::string& soulng::unicode::GetNumericValue(char32_t c) inline

Definition at line 1388 of Unicode.hpp :
1389 {
1390     return GetExtendedCharacterInfo(c).GetNumericValue();
1391 }


Calls: soulng::unicode::ExtendedCharacterInfo::GetNumericValue


GetScript Function

const Script & soulng::unicode::GetScript(ScriptId id) inline

Definition at line 488 of Unicode.hpp :
 489 {
 490     return ScriptTable::Instance().GetScript(id);
 491 }


Calls: soulng::unicode::ScriptTable::GetScript , soulng::unicode::ScriptTable::Instance


GetScriptByLongName Function

const Script & soulng::unicode::GetScriptByLongName(const std::string& longName) inline

Definition at line 498 of Unicode.hpp :
 499 {
 500     return ScriptTable::Instance().GetScriptByLongName(longName);
 501 }


Calls: soulng::unicode::ScriptTable::GetScriptByLongName , soulng::unicode::ScriptTable::Instance


GetScriptByShortName Function

const Script & soulng::unicode::GetScriptByShortName(const std::string& shortName) inline

Definition at line 493 of Unicode.hpp :
 494 {
 495     return ScriptTable::Instance().GetScriptByShortName(shortName);
 496 }


Calls: soulng::unicode::ScriptTable::GetScriptByShortName , soulng::unicode::ScriptTable::Instance


GetUnicode1Name Function

const std::string& soulng::unicode::GetUnicode1Name(char32_t c) inline

Definition at line 1378 of Unicode.hpp :
1379 {
1380     return GetExtendedCharacterInfo(c).Unicode1Name();
1381 }


Calls: soulng::unicode::ExtendedCharacterInfo::Unicode1Name


HasGeneralCategory Function

bool soulng::unicode::HasGeneralCategory(char32_t c, GeneralCategoryId generalCategory) inline

Definition at line 1069 of Unicode.hpp :
1069 { return GetCharacterInfo(c).HasGeneralCategory(generalCategory);  }

Calls: soulng::unicode::CharacterInfo::HasGeneralCategory


IsAlphabetic Function

bool soulng::unicode::IsAlphabetic(char32_t c) inline

Definition at line 1321 of Unicode.hpp :
1322 {
1323     return GetCharacterInfo(c).GetBinaryProperty(BinaryPropertyId::alphabetic);
1324 }


Calls: soulng::unicode::CharacterInfo::GetBinaryProperty


IsAsciiDigit Function

bool soulng::unicode::IsAsciiDigit(char32_t c)

Definition at line 2275 of Unicode.cpp :
2276 {
2277     if (c < 256)
2278     {
2279         return std::isdigit((unsigned char)c);
2280     }
2281     return false;
2282 }


Declaration at line 1331 of Unicode.hpp


IsAsciiHexDigit Function

bool soulng::unicode::IsAsciiHexDigit(char32_t c) inline

Definition at line 1326 of Unicode.hpp :
1327 {
1328     return GetCharacterInfo(c).GetBinaryProperty(BinaryPropertyId::asciiHexDigit);
1329 }


Calls: soulng::unicode::CharacterInfo::GetBinaryProperty


IsBase Function

bool soulng::unicode::IsBase(char32_t c) inline

Definition at line 1266 of Unicode.hpp :
1267 {
1268     return HasGeneralCategory(cGeneralCategoryId::B);
1269 }



IsBidiControl Function

bool soulng::unicode::IsBidiControl(char32_t c) inline

Definition at line 1398 of Unicode.hpp :
1399 {
1400     return GetCharacterInfo(c).GetBinaryProperty(BinaryPropertyId::bidiControl);
1401 }


Calls: soulng::unicode::CharacterInfo::GetBinaryProperty


IsBidiMirrored Function

bool soulng::unicode::IsBidiMirrored(char32_t c) inline

Definition at line 1393 of Unicode.hpp :
1394 {
1395     return GetCharacterInfo(c).GetBinaryProperty(BinaryPropertyId::bidiMirrored);
1396 }


Calls: soulng::unicode::CharacterInfo::GetBinaryProperty


IsCasedLetter Function

bool soulng::unicode::IsCasedLetter(char32_t c) inline

Definition at line 1096 of Unicode.hpp :
1097 {
1098     return HasGeneralCategory(cGeneralCategoryId::LC);
1099 }



IsClosePunctuation Function

bool soulng::unicode::IsClosePunctuation(char32_t c) inline

Definition at line 1161 of Unicode.hpp :
1162 {
1163     return GetGeneralCategory(c) == GeneralCategoryId::Pe;
1164 }



IsCombining Function

bool soulng::unicode::IsCombining(char32_t c) inline

Definition at line 1271 of Unicode.hpp :
1272 {
1273     return IsMark(c);
1274 }



IsConnectorPunctuation Function

bool soulng::unicode::IsConnectorPunctuation(char32_t c) inline

Definition at line 1146 of Unicode.hpp :
1147 {
1148     return GetGeneralCategory(c) == GeneralCategoryId::Pc;
1149 }



IsControl Function

bool soulng::unicode::IsControl(char32_t c) inline

Definition at line 1231 of Unicode.hpp :
1232 {
1233     return GetGeneralCategory(c) == GeneralCategoryId::Cc;
1234 }



IsCurrencySymbol Function

bool soulng::unicode::IsCurrencySymbol(char32_t c) inline

Definition at line 1191 of Unicode.hpp :
1192 {
1193     return GetGeneralCategory(c) == GeneralCategoryId::Sc;
1194 }



IsDashPunctuation Function

bool soulng::unicode::IsDashPunctuation(char32_t c) inline

Definition at line 1151 of Unicode.hpp :
1152 {
1153     return GetGeneralCategory(c) == GeneralCategoryId::Pd;
1154 }



IsDecimalNumber Function

bool soulng::unicode::IsDecimalNumber(char32_t c) inline

Definition at line 1126 of Unicode.hpp :
1127 {
1128     return GetGeneralCategory(c) == GeneralCategoryId::Nd;
1129 }



IsEnclosingMark Function

bool soulng::unicode::IsEnclosingMark(char32_t c) inline

Definition at line 1116 of Unicode.hpp :
1117 {
1118     return GetGeneralCategory(c) == GeneralCategoryId::Me;
1119 }



IsFinalPunctuation Function

bool soulng::unicode::IsFinalPunctuation(char32_t c) inline

Definition at line 1171 of Unicode.hpp :
1172 {
1173     return GetGeneralCategory(c) == GeneralCategoryId::Pf;
1174 }



IsFormat Function

bool soulng::unicode::IsFormat(char32_t c) inline

Definition at line 1236 of Unicode.hpp :
1237 {
1238     return GetGeneralCategory(c) == GeneralCategoryId::Cf;
1239 }



IsGraphemeBase Function

bool soulng::unicode::IsGraphemeBase(char32_t c) inline

Definition at line 1353 of Unicode.hpp :
1354 {
1355     return GetCharacterInfo(c).GetBinaryProperty(BinaryPropertyId::graphemeBase);
1356 }


Calls: soulng::unicode::CharacterInfo::GetBinaryProperty


IsGraphemeExtender Function

bool soulng::unicode::IsGraphemeExtender(char32_t c) inline

Definition at line 1358 of Unicode.hpp :
1359 {
1360     return GetCharacterInfo(c).GetBinaryProperty(BinaryPropertyId::graphemeExtend);
1361 }


Calls: soulng::unicode::CharacterInfo::GetBinaryProperty


IsGraphic Function

bool soulng::unicode::IsGraphic(char32_t c) inline

Definition at line 1261 of Unicode.hpp :
1262 {
1263     return HasGeneralCategory(cGeneralCategoryId::G);
1264 }



IsIdCont Function

bool soulng::unicode::IsIdCont(char32_t c) inline

Definition at line 1348 of Unicode.hpp :
1349 {
1350     return GetCharacterInfo(c).GetBinaryProperty(BinaryPropertyId::idContinue);
1351 }


Calls: soulng::unicode::CharacterInfo::GetBinaryProperty


IsIdStart Function

bool soulng::unicode::IsIdStart(char32_t c) inline

Definition at line 1343 of Unicode.hpp :
1344 {
1345     return GetCharacterInfo(c).GetBinaryProperty(BinaryPropertyId::idStart);
1346 }


Calls: soulng::unicode::CharacterInfo::GetBinaryProperty


IsInitialPunctuation Function

bool soulng::unicode::IsInitialPunctuation(char32_t c) inline

Definition at line 1166 of Unicode.hpp :
1167 {
1168     return GetGeneralCategory(c) == GeneralCategoryId::Pi;
1169 }



IsLetter Function

bool soulng::unicode::IsLetter(char32_t c) inline

Definition at line 1101 of Unicode.hpp :
1102 {
1103     return HasGeneralCategory(cGeneralCategoryId::L);
1104 }



IsLetterNumber Function

bool soulng::unicode::IsLetterNumber(char32_t c) inline

Definition at line 1131 of Unicode.hpp :
1132 {
1133     return GetGeneralCategory(c) == GeneralCategoryId::Nl;
1134 }



IsLineSeparator Function

bool soulng::unicode::IsLineSeparator(char32_t c) inline

Definition at line 1216 of Unicode.hpp :
1217 {
1218     return GetGeneralCategory(c) == GeneralCategoryId::Zl;
1219 }



IsLowerLetter Function

bool soulng::unicode::IsLowerLetter(char32_t c) inline

Definition at line 1076 of Unicode.hpp :
1077 {
1078     return GetGeneralCategory(c) == GeneralCategoryId::Ll;
1079 }



IsLowercase Function

bool soulng::unicode::IsLowercase(char32_t c) inline

Definition at line 1338 of Unicode.hpp :
1339 {
1340     return GetCharacterInfo(c).GetBinaryProperty(BinaryPropertyId::lowercase);
1341 }


Calls: soulng::unicode::CharacterInfo::GetBinaryProperty


IsMark Function

bool soulng::unicode::IsMark(char32_t c) inline

Definition at line 1121 of Unicode.hpp :
1122 {
1123     return HasGeneralCategory(cGeneralCategoryId::M);
1124 }



IsMathSymbol Function

bool soulng::unicode::IsMathSymbol(char32_t c) inline

Definition at line 1186 of Unicode.hpp :
1187 {
1188     return GetGeneralCategory(c) == GeneralCategoryId::Sm;
1189 }



IsModifierLetter Function

bool soulng::unicode::IsModifierLetter(char32_t c) inline

Definition at line 1086 of Unicode.hpp :
1087 {
1088     return GetGeneralCategory(c) == GeneralCategoryId::Lm;
1089 }



IsModifierSymbol Function

bool soulng::unicode::IsModifierSymbol(char32_t c) inline

Definition at line 1196 of Unicode.hpp :
1197 {
1198     return GetGeneralCategory(c) == GeneralCategoryId::Sk;
1199 }



IsNonspacingMark Function

bool soulng::unicode::IsNonspacingMark(char32_t c) inline

Definition at line 1106 of Unicode.hpp :
1107 {
1108     return GetGeneralCategory(c) == GeneralCategoryId::Mn;
1109 }



IsNumber Function

bool soulng::unicode::IsNumber(char32_t c) inline

Definition at line 1141 of Unicode.hpp :
1142 {
1143     return HasGeneralCategory(cGeneralCategoryId::N);
1144 }



IsOpenPunctuation Function

bool soulng::unicode::IsOpenPunctuation(char32_t c) inline

Definition at line 1156 of Unicode.hpp :
1157 {
1158     return GetGeneralCategory(c) == GeneralCategoryId::Ps;
1159 }



IsOther Function

bool soulng::unicode::IsOther(char32_t c) inline

Definition at line 1256 of Unicode.hpp :
1257 {
1258     return HasGeneralCategory(cGeneralCategoryId::C);
1259 }



IsOtherLetter Function

bool soulng::unicode::IsOtherLetter(char32_t c) inline

Definition at line 1091 of Unicode.hpp :
1092 {
1093     return GetGeneralCategory(c) == GeneralCategoryId::Lo;
1094 }



IsOtherLower Function

bool soulng::unicode::IsOtherLower(char32_t c) inline

Definition at line 1363 of Unicode.hpp :
1364 {
1365     return GetCharacterInfo(c).GetBinaryProperty(BinaryPropertyId::otherLowercase);
1366 }


Calls: soulng::unicode::CharacterInfo::GetBinaryProperty


IsOtherNumber Function

bool soulng::unicode::IsOtherNumber(char32_t c) inline

Definition at line 1136 of Unicode.hpp :
1137 {
1138     return GetGeneralCategory(c) == GeneralCategoryId::No;
1139 }



IsOtherPunctuation Function

bool soulng::unicode::IsOtherPunctuation(char32_t c) inline

Definition at line 1176 of Unicode.hpp :
1177 {
1178     return GetGeneralCategory(c) == GeneralCategoryId::Po;
1179 }



IsOtherSymbol Function

bool soulng::unicode::IsOtherSymbol(char32_t c) inline

Definition at line 1201 of Unicode.hpp :
1202 {
1203     return GetGeneralCategory(c) == GeneralCategoryId::So;
1204 }



IsOtherUpper Function

bool soulng::unicode::IsOtherUpper(char32_t c) inline

Definition at line 1368 of Unicode.hpp :
1369 {
1370     return GetCharacterInfo(c).GetBinaryProperty(BinaryPropertyId::otherUppercase);
1371 }


Calls: soulng::unicode::CharacterInfo::GetBinaryProperty


IsParagraphSeparator Function

bool soulng::unicode::IsParagraphSeparator(char32_t c) inline

Definition at line 1221 of Unicode.hpp :
1222 {
1223     return GetGeneralCategory(c) == GeneralCategoryId::Zp;
1224 }



IsPrivateUse Function

bool soulng::unicode::IsPrivateUse(char32_t c) inline

Definition at line 1246 of Unicode.hpp :
1247 {
1248     return GetGeneralCategory(c) == GeneralCategoryId::Co;
1249 }



IsPunctuation Function

bool soulng::unicode::IsPunctuation(char32_t c) inline

Definition at line 1181 of Unicode.hpp :
1182 {
1183     return HasGeneralCategory(cGeneralCategoryId::P);
1184 }



IsSeparator Function

bool soulng::unicode::IsSeparator(char32_t c) inline

Definition at line 1226 of Unicode.hpp :
1227 {
1228     return HasGeneralCategory(cGeneralCategoryId::Z);
1229 }



IsSpaceSeparator Function

bool soulng::unicode::IsSpaceSeparator(char32_t c) inline

Definition at line 1211 of Unicode.hpp :
1212 {
1213     return GetGeneralCategory(c) == GeneralCategoryId::Zs;
1214 }



IsSpacingMark Function

bool soulng::unicode::IsSpacingMark(char32_t c) inline

Definition at line 1111 of Unicode.hpp :
1112 {
1113     return GetGeneralCategory(c) == GeneralCategoryId::Mc;
1114 }



IsSurrogate Function

bool soulng::unicode::IsSurrogate(char32_t c) inline

Definition at line 1241 of Unicode.hpp :
1242 {
1243     return GetGeneralCategory(c) == GeneralCategoryId::Cs;
1244 }



IsSymbol Function

bool soulng::unicode::IsSymbol(char32_t c) inline

Definition at line 1206 of Unicode.hpp :
1207 {
1208     return HasGeneralCategory(cGeneralCategoryId::S);
1209 }



IsTitleLetter Function

bool soulng::unicode::IsTitleLetter(char32_t c) inline

Definition at line 1081 of Unicode.hpp :
1082 {
1083     return GetGeneralCategory(c) == GeneralCategoryId::Lt;
1084 }



IsUnassigned Function

bool soulng::unicode::IsUnassigned(char32_t c) inline

Definition at line 1251 of Unicode.hpp :
1252 {
1253     return GetGeneralCategory(c) == GeneralCategoryId::Cn;
1254 }



IsUpperLetter Function

bool soulng::unicode::IsUpperLetter(char32_t c) inline

Definition at line 1071 of Unicode.hpp :
1072 {
1073     return GetGeneralCategory(c) == GeneralCategoryId::Lu;
1074 }



IsUppercase Function

bool soulng::unicode::IsUppercase(char32_t c) inline

Definition at line 1333 of Unicode.hpp :
1334 {
1335     return GetCharacterInfo(c).GetBinaryProperty(BinaryPropertyId::uppercase);
1336 }


Calls: soulng::unicode::CharacterInfo::GetBinaryProperty


IsWhiteSpace Function

bool soulng::unicode::IsWhiteSpace(char32_t c) inline

Definition at line 1316 of Unicode.hpp :
1317 {
1318     return GetCharacterInfo(c).GetBinaryProperty(BinaryPropertyId::whiteSpace);
1319 }


Calls: soulng::unicode::CharacterInfo::GetBinaryProperty


MakeCanonicalPropertyName Function

std::string soulng::unicode::MakeCanonicalPropertyName(const std::string& s)

Definition at line 569 of Unicode.cpp
Declaration at line 52 of Unicode.hpp

Called by: soulng::unicode::AliasTypeTable::GetAliasType , soulng::unicode::BidiClassTable::GetBidiClassByLongName , soulng::unicode::BidiClassTable::GetBidiClassByShortName , soulng::unicode::BidiPairedBracketTypeTable::GetBidiPairedBracketTypeByLongName , soulng::unicode::BidiPairedBracketTypeTable::GetBidiPairedBracketTypeByShortName , soulng::unicode::BinaryPropertyTable::GetBinaryPropertyByLongName , soulng::unicode::BinaryPropertyTable::GetBinaryPropertyByShortName , soulng::unicode::BinaryPropertyTable::IsBinaryProperty , soulng::unicode::BlockTable::GetBlockByLongName , soulng::unicode::BlockTable::GetBlockByShortName , soulng::unicode::GeneralCategoryTable::GetGeneralCategoryByLongName , soulng::unicode::GeneralCategoryTable::GetGeneralCategoryByShortName , soulng::unicode::NumericTypeTable::GetNumericTypeByLongName , soulng::unicode::NumericTypeTable::GetNumericTypeByShortName , soulng::unicode::ScriptTable::GetScriptByLongName , soulng::unicode::ScriptTable::GetScriptByShortName


ThrowInvalidUtf8Sequence Function

void soulng::unicode::ThrowInvalidUtf8Sequence()

Definition at line 28 of Unicode.cpp :
  29 {
  30     throw UnicodeException("invalid UTF-8 sequence");
  31 }


Called by: soulng::unicode::Utf8ToUtf32Engine::Put


ToFolding Function

char32_t soulng::unicode::ToFolding(char32_t c) inline

Definition at line 1291 of Unicode.hpp :
1292 {
1293     return GetCharacterInfo(c).Folding();
1294 }


Calls: soulng::unicode::CharacterInfo::Folding


ToLower Function

char32_t soulng::unicode::ToLower(char32_t c) inline

Definition at line 1281 of Unicode.hpp :
1282 {
1283     return GetCharacterInfo(c).Lower();
1284 }


Calls: soulng::unicode::CharacterInfo::Lower


ToLower Function

std::u32string soulng::unicode::ToLower(const std::u32string& s)

Definition at line 559 of Unicode.cpp :
 560 {
 561     std::u32string lower;
 562     for (char32_t c : s)
 563     {
 564         lower.append(1ToLower(c));
 565     }
 566     return lower;
 567 }


Declaration at line 50 of Unicode.hpp


ToTitle Function

char32_t soulng::unicode::ToTitle(char32_t c) inline

Definition at line 1286 of Unicode.hpp :
1287 {
1288     return GetCharacterInfo(c).Title();
1289 }


Calls: soulng::unicode::CharacterInfo::Title


ToUpper Function

char32_t soulng::unicode::ToUpper(char32_t c) inline

Definition at line 1276 of Unicode.hpp :
1277 {
1278     return GetCharacterInfo(c).Upper();
1279 }


Calls: soulng::unicode::CharacterInfo::Upper


ToUpper Function

std::u32string soulng::unicode::ToUpper(const std::u32string& s)

Definition at line 549 of Unicode.cpp :
 550 {
 551     std::u32string upper;
 552     for (char32_t c : s)
 553     {
 554         upper.append(1ToUpper(c));
 555     }
 556     return upper;
 557 }


Declaration at line 49 of Unicode.hpp


ToUtf16 Function

std::u16string soulng::unicode::ToUtf16(const std::string& utf8Str)

Definition at line 449 of Unicode.cpp :
 450 {
 451     return ToUtf16(ToUtf32(utf8Str));
 452 }


Declaration at line 45 of Unicode.hpp

Called by: soulng::util::BinaryReader::ReadUtf16String


ToUtf16 Function

std::u16string soulng::unicode::ToUtf16(const std::u32string& utf32Str)

Definition at line 408 of Unicode.cpp
Declaration at line 44 of Unicode.hpp

Called by: soulng::util::JsonString::JsonCharStr


ToUtf32 Function

std::u32string soulng::unicode::ToUtf32(const std::string& utf8Str)

Definition at line 210 of Unicode.cpp
Declaration at line 42 of Unicode.hpp

Called by: soulng::util::BinaryReader::ReadUtf32String


ToUtf32 Function

std::u32string soulng::unicode::ToUtf32(const std::u16string& utf16Str)

Definition at line 365 of Unicode.cpp
Declaration at line 43 of Unicode.hpp


ToUtf8 Function

std::string soulng::unicode::ToUtf8(const std::u16string& utf16Str)

Definition at line 544 of Unicode.cpp :
 545 {
 546     return ToUtf8(ToUtf32(utf16Str));
 547 }


Declaration at line 47 of Unicode.hpp

Called by: soulng::util::BinaryWriter::Write , soulng::util::JsonString::ToString


ToUtf8 Function

std::string soulng::unicode::ToUtf8(const std::u32string& utf32Str)

Definition at line 454 of Unicode.cpp
Declaration at line 46 of Unicode.hpp

Called by: soulng::util::BinaryWriter::Write , soulng::util::JsonObject::GetStringField


UnicodeDone Function

void soulng::unicode::UnicodeDone()

Definition at line 2298 of Unicode.cpp
Declaration at line 1424 of Unicode.hpp

Calls: soulng::unicode::AgeTable::Done , soulng::unicode::AliasTypeTable::Done , soulng::unicode::BidiClassTable::Done , soulng::unicode::BidiPairedBracketTypeTable::Done , soulng::unicode::BinaryPropertyTable::Done , soulng::unicode::BlockTable::Done , soulng::unicode::CharacterTable::Done , soulng::unicode::GeneralCategoryTable::Done , soulng::unicode::NumericTypeTable::Done , soulng::unicode::ScriptTable::Done


UnicodeInit Function

void soulng::unicode::UnicodeInit()

Definition at line 2284 of Unicode.cpp
Declaration at line 1423 of Unicode.hpp

Calls: soulng::unicode::AgeTable::Init , soulng::unicode::AliasTypeTable::Init , soulng::unicode::BidiClassTable::Init , soulng::unicode::BidiPairedBracketTypeTable::Init , soulng::unicode::BinaryPropertyTable::Init , soulng::unicode::BlockTable::Init , soulng::unicode::CharacterTable::Init , soulng::unicode::GeneralCategoryTable::Init , soulng::unicode::NumericTypeTable::Init , soulng::unicode::ScriptTable::Init


operator& Function

GeneralCategoryId soulng::unicode::operator&(GeneralCategoryId left, GeneralCategoryId right) inline

Definition at line 289 of Unicode.hpp :
 290 {
 291     return GeneralCategoryId(uint32_t(left) & uint32_t(right));
 292 }



operator| Function

GeneralCategoryId soulng::unicode::operator|(GeneralCategoryId left, GeneralCategoryId right) inline

Definition at line 294 of Unicode.hpp :
 295 {
 296     return GeneralCategoryId(uint32_t(left) | uint32_t(right));
 297 }



top | up | prev | next