|
SNAP Library 2.0, User Reference
2013-05-13 16:33:57
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <unicode.h>
| anonymous enum |
Definition at line 988 of file unicode.h.
{ // combining classes (for 'combClass'); from UnicodeData.txt
ccStarter = 0, // 0: Spacing, split, enclosing, reordrant, and Tibetan subjoined
ccOverlaysAndInterior = 1,
ccNuktas = 7,
ccHiraganaKatakanaVoicingMarks = 8,
ccViramas = 9,
ccFixedPositionStart = 10, // Start of fixed position classes
ccFixedPositionEnd = 199, // End of fixed position classes
ccBelowLeftAttached = 200,
ccBelowAttached = 202,
ccBelowRightAttached = 204,
ccLeftAttached = 208, // Left attached (reordrant around single base character)
ccRightAttached = 210,
ccAboveLeftAttached = 212,
ccAboveAttached = 214,
ccAboveRightAttached = 216,
ccBelowLeft = 218,
ccBelow = 220,
ccBelowRight = 222,
ccLeft = 224, // Left (reordrant around single base character)
ccRight = 226,
ccAboveLeft = 228,
ccAbove = 230,
ccAboveRight = 232,
ccDoubleBelow = 233,
ccDoubleAbove = 234,
ccBelowIotaSubscript = 240, // Below (iota subscript)
ccInvalid = 255 // not defined by Unicode
};
| TUniChInfo::TUniChInfo | ( | TSIn & | SIn | ) | [inline, explicit] |
| TUniChInfo::TUniChInfo | ( | ) | [inline] |
Definition at line 1062 of file unicode.h.
: chCat(char(ucOther)), chSubCat(char(ucOtherNotAssigned & 0xff)), combClass(ccInvalid), script(-1),simpleUpperCaseMapping(-1), simpleLowerCaseMapping(-1), simpleTitleCaseMapping(-1), decompOffset(-1), nameOffset(-1), flags(0), properties(0), propertiesX(0), lineBreak(LineBreak_Unknown) { InitAfterLoad(); }
| void TUniChInfo::ClrDcpFlags | ( | ) | [inline] |
Definition at line 1069 of file unicode.h.
{ flags = flags & ~ucfDcpMask; }
| void TUniChInfo::ClrWbAndSbFlags | ( | ) | [inline] |
| TUniChCategory TUniChInfo::GetCat | ( | ) | const [inline] |
Definition at line 1145 of file unicode.h.
{ return (TUniChCategory) cat; }
| static ushort TUniChInfo::GetLineBreakCode | ( | char | c1, |
| char | c2 | ||
| ) | [inline, static] |
| int TUniChInfo::GetSbFlags | ( | ) | const [inline] |
| TStr TUniChInfo::GetSbFlagsStr | ( | ) | const [inline] |
Definition at line 1130 of file unicode.h.
{ return GetSbFlagsStr(GetSbFlags()); }
| static TStr TUniChInfo::GetSbFlagsStr | ( | const int | flags | ) | [inline, static] |
Definition at line 1131 of file unicode.h.
{ return TStr("") + (flags & ucfSbSep ? "S" : "") +
(flags & ucfSbFormat ? "F" : "") + (flags & ucfSbSp ? "_" : "") + (flags & ucfSbLower ? "L" : "") +
(flags & ucfSbUpper ? "U" : "") + (flags & ucfSbOLetter ? "O" : "") + (flags & ucfSbNumeric ? "N" : "") +
(flags & ucfSbATerm ? "A" : "") + (flags & ucfSbSTerm ? "T" : "") + (flags & ucfSbClose ? "C" : ""); }
| TUniChSubCategory TUniChInfo::GetSubCat | ( | ) | const [inline] |
Definition at line 1146 of file unicode.h.
{ return (TUniChSubCategory) subCat; }
| int TUniChInfo::GetWbFlags | ( | ) | const [inline] |
| TStr TUniChInfo::GetWbFlagsStr | ( | ) | const [inline] |
Definition at line 1120 of file unicode.h.
{ return GetWbFlagsStr(GetWbFlags()); }
| static TStr TUniChInfo::GetWbFlagsStr | ( | const int | flags | ) | [inline, static] |
Definition at line 1121 of file unicode.h.
{ return TStr("") + (flags & ucfWbALetter ? "A" : "") +
(flags & ucfWbFormat ? "F" : "") + (flags & ucfWbKatakana ? "K" : "") + (flags & ucfWbMidLetter ? "M" : "") +
(flags & ucfWbMidNum ? "m" : "") + (flags & ucfWbNumeric ? "N" : "") + (flags & ucfWbExtendNumLet ? "E" : ""); }
| void TUniChInfo::InitAfterLoad | ( | ) | [inline] |
| bool TUniChInfo::IsAlphabetic | ( | ) | const [inline] |
Definition at line 1071 of file unicode.h.
{ return IsDcpFlag(ucfDcpAlphabetic); }
| bool TUniChInfo::IsAsciiHexDigit | ( | ) | const [inline] |
Definition at line 1086 of file unicode.h.
{ return IsProperty(ucfPrAsciiHexDigit); }
| bool TUniChInfo::IsBidiControl | ( | ) | const [inline] |
Definition at line 1087 of file unicode.h.
{ return IsProperty(ucfPrBidiControl); }
| bool TUniChInfo::IsCased | ( | ) | const [inline] |
Definition at line 1142 of file unicode.h.
{ return IsUppercase() || IsLowercase() || (subCat == ucLetterTitlecase); }
| bool TUniChInfo::IsCompatibilityDecomposition | ( | ) | const [inline] |
Definition at line 1112 of file unicode.h.
{ return (flags & ucfCompatibilityDecomposition) == ucfCompatibilityDecomposition; }
| bool TUniChInfo::IsCompositionExclusion | ( | ) | const [inline] |
Definition at line 1111 of file unicode.h.
{ return (flags & ucfCompositionExclusion) == ucfCompositionExclusion; }
| bool TUniChInfo::IsCurrency | ( | ) | const [inline] |
| bool TUniChInfo::IsDash | ( | ) | const [inline] |
Definition at line 1088 of file unicode.h.
{ return IsProperty(ucfPrDash); }
| bool TUniChInfo::IsDcpFlag | ( | const TUniChFlags | flag | ) | const [inline] |
Definition at line 1068 of file unicode.h.
{ Assert((flag & ucfDcpMask) == flag); return (flags & flag) == flag; }
| bool TUniChInfo::IsDefaultIgnorable | ( | ) | const [inline] |
Definition at line 1075 of file unicode.h.
{ return IsDcpFlag(ucfDcpDefaultIgnorableCodePoint); }
| bool TUniChInfo::IsDeprecated | ( | ) | const [inline] |
Definition at line 1089 of file unicode.h.
{ return IsProperty(ucfPrDeprecated); }
| bool TUniChInfo::IsDiacritic | ( | ) | const [inline] |
Definition at line 1090 of file unicode.h.
{ return IsProperty(ucfPrDiacritic); }
| bool TUniChInfo::IsExtender | ( | ) | const [inline] |
Definition at line 1091 of file unicode.h.
{ return IsProperty(ucfPrExtender); }
| bool TUniChInfo::IsGbExtend | ( | ) | const [inline] |
Definition at line 1139 of file unicode.h.
{ return IsGraphemeExtend(); }
| bool TUniChInfo::IsGraphemeBase | ( | ) | const [inline] |
Definition at line 1076 of file unicode.h.
{ return IsDcpFlag(ucfDcpGraphemeBase); }
| bool TUniChInfo::IsGraphemeExtend | ( | ) | const [inline] |
Definition at line 1077 of file unicode.h.
{ return IsDcpFlag(ucfDcpGraphemeExtend); }
| bool TUniChInfo::IsGraphemeLink | ( | ) | const [inline] |
Definition at line 1092 of file unicode.h.
{ return IsProperty(ucfPrGraphemeLink); }
| bool TUniChInfo::IsHexDigit | ( | ) | const [inline] |
Definition at line 1093 of file unicode.h.
{ return IsProperty(ucfPrHexDigit); }
| bool TUniChInfo::IsHyphen | ( | ) | const [inline] |
Definition at line 1094 of file unicode.h.
{ return IsProperty(ucfPrHyphen); }
| bool TUniChInfo::IsIdContinue | ( | ) | const [inline] |
Definition at line 1079 of file unicode.h.
{ return IsDcpFlag(ucfDcpIdContinue); }
| bool TUniChInfo::IsIdeographic | ( | ) | const [inline] |
Definition at line 1095 of file unicode.h.
{ return IsProperty(ucfPrIdeographic); }
| bool TUniChInfo::IsIdStart | ( | ) | const [inline] |
Definition at line 1078 of file unicode.h.
{ return IsDcpFlag(ucfDcpIdStart); }
| bool TUniChInfo::IsJoinControl | ( | ) | const [inline] |
Definition at line 1096 of file unicode.h.
{ return IsProperty(ucfPrJoinControl); }
| bool TUniChInfo::IsLogicalOrderException | ( | ) | const [inline] |
Definition at line 1097 of file unicode.h.
{ return IsProperty(ucfPrLogicalOrderException); }
| bool TUniChInfo::IsLowercase | ( | ) | const [inline] |
Definition at line 1073 of file unicode.h.
{ return IsDcpFlag(ucfDcpLowercase); }
| bool TUniChInfo::IsMath | ( | ) | const [inline] |
Definition at line 1074 of file unicode.h.
{ return IsDcpFlag(ucfDcpMath); }
| bool TUniChInfo::IsNoncharacter | ( | ) | const [inline] |
Definition at line 1098 of file unicode.h.
{ return IsProperty(ucfPrNoncharacterCodePoint); }
| bool TUniChInfo::IsPrivateUse | ( | ) | const [inline] |
| bool TUniChInfo::IsProperty | ( | const TUniChProperties | flag | ) | const [inline] |
Definition at line 1084 of file unicode.h.
{ return (properties & flag) == flag; }
| bool TUniChInfo::IsPropertyX | ( | const TUniChPropertiesX | flag | ) | const [inline] |
Definition at line 1107 of file unicode.h.
{ return (propertiesX & flag) == flag; }
| bool TUniChInfo::IsQuotationMark | ( | ) | const [inline] |
Definition at line 1099 of file unicode.h.
{ return IsProperty(ucfPrQuotationMark); }
| bool TUniChInfo::IsSbFlag | ( | const TUniChFlags | flag | ) | const [inline] |
| bool TUniChInfo::IsSbFormat | ( | ) | const [inline] |
Definition at line 1129 of file unicode.h.
{ return IsSbFlag(ucfSbFormat); }
| bool TUniChInfo::IsSbSep | ( | ) | const [inline] |
| bool TUniChInfo::IsSoftDotted | ( | ) | const [inline] |
Definition at line 1100 of file unicode.h.
{ return IsProperty(ucfPrSoftDotted); }
| bool TUniChInfo::IsSTerminal | ( | ) | const [inline] |
Definition at line 1101 of file unicode.h.
{ return IsProperty(ucfPrSTerm); }
| bool TUniChInfo::IsSurrogate | ( | ) | const [inline] |
| bool TUniChInfo::IsTerminalPunctuation | ( | ) | const [inline] |
Definition at line 1102 of file unicode.h.
{ return IsProperty(ucfPrTerminalPunctuation); }
| bool TUniChInfo::IsUppercase | ( | ) | const [inline] |
Definition at line 1072 of file unicode.h.
{ return IsDcpFlag(ucfDcpUppercase); }
| static bool TUniChInfo::IsValidSubCat | ( | const char | chCat, |
| const char | chSubCat | ||
| ) | [inline, static] |
| bool TUniChInfo::IsVariationSelector | ( | ) | const [inline] |
Definition at line 1103 of file unicode.h.
{ return IsProperty(ucfPrVariationSelector); }
| bool TUniChInfo::IsWbFlag | ( | const TUniChFlags | flag | ) | const [inline] |
| bool TUniChInfo::IsWbFormat | ( | ) | const [inline] |
Definition at line 1119 of file unicode.h.
{ return IsWbFlag(ucfWbFormat); }
| bool TUniChInfo::IsWhiteSpace | ( | ) | const [inline] |
Definition at line 1104 of file unicode.h.
{ return IsProperty(ucfPrWhiteSpace); }
| bool TUniChInfo::IsXidContinue | ( | ) | const [inline] |
Definition at line 1081 of file unicode.h.
{ return IsDcpFlag(ucfDcpXidContinue); }
| bool TUniChInfo::IsXidStart | ( | ) | const [inline] |
Definition at line 1080 of file unicode.h.
{ return IsDcpFlag(ucfDcpXidStart); }
| void TUniChInfo::Load | ( | TSIn & | SIn | ) | [inline] |
Definition at line 1056 of file unicode.h.
{
SIn.Load(chCat); SIn.Load(chSubCat); SIn.Load(combClass); LoadSChar(SIn, script);
SIn.Load(simpleUpperCaseMapping); SIn.Load(simpleLowerCaseMapping); SIn.Load(simpleTitleCaseMapping);
SIn.Load(decompOffset); SIn.Load(nameOffset);
SIn.Load(flags); SIn.Load(properties); SIn.Load(propertiesX); LoadUShort(SIn, lineBreak); InitAfterLoad(); }
| static void TUniChInfo::LoadSChar | ( | TSIn & | SIn, |
| signed char & | u | ||
| ) | [inline, static] |
| static void TUniChInfo::LoadUShort | ( | TSIn & | SIn, |
| ushort & | u | ||
| ) | [inline, static] |
| void TUniChInfo::Save | ( | TSOut & | SOut | ) | const [inline] |
Definition at line 1051 of file unicode.h.
{
SOut.Save(chCat); SOut.Save(chSubCat); SOut.Save(combClass); SaveSChar(SOut, script);
SOut.Save(simpleUpperCaseMapping); SOut.Save(simpleLowerCaseMapping); SOut.Save(simpleTitleCaseMapping);
SOut.Save(decompOffset); SOut.Save(nameOffset);
SOut.Save(flags); SOut.Save(properties); SOut.Save(propertiesX); SaveUShort(SOut, lineBreak); }
| static void TUniChInfo::SaveSChar | ( | TSOut & | SOut, |
| signed char | u | ||
| ) | [inline, static] |
| static void TUniChInfo::SaveUShort | ( | TSOut & | SOut, |
| ushort | u | ||
| ) | [inline, static] |
| void TUniChInfo::SetCatAndSubCat | ( | const TUniChSubCategory | catAndSubCat | ) | [inline] |
| void TUniChInfo::SetDcpFlag | ( | const TUniChFlags | flag | ) | [inline] |
Definition at line 1070 of file unicode.h.
{ Assert((flag & ucfDcpMask) == flag); flags |= flag; }
| void TUniChInfo::SetProperty | ( | const TUniChProperties | flag | ) | [inline] |
Definition at line 1085 of file unicode.h.
{ properties |= flag; }
| void TUniChInfo::SetPropertyX | ( | const TUniChPropertiesX | flag | ) | [inline] |
Definition at line 1108 of file unicode.h.
{ propertiesX |= flag; }
| void TUniChInfo::SetSbFlag | ( | const TUniChFlags | flag | ) | [inline] |
| void TUniChInfo::SetWbFlag | ( | const TUniChFlags | flag | ) | [inline] |
| char TUniChInfo::chCat |
| char TUniChInfo::chSubCat |
const ushort TUniChInfo::LineBreak_ComplexContext = TUniChInfo::GetLineBreakCode('S', 'A') [static] |
const ushort TUniChInfo::LineBreak_InfixNumeric = TUniChInfo::GetLineBreakCode('I', 'S') [static] |
const ushort TUniChInfo::LineBreak_Numeric = TUniChInfo::GetLineBreakCode('N', 'U') [static] |
const ushort TUniChInfo::LineBreak_Quotation = TUniChInfo::GetLineBreakCode('Q', 'U') [static] |
const ushort TUniChInfo::LineBreak_Unknown = TUniChInfo::GetLineBreakCode('X', 'X') [static] |
| signed char TUniChInfo::script |