SNAP Library 2.1, Developer Reference  2013-09-25 10:47:25
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
TUnicode Class Reference

#include <unicode.h>

Collaboration diagram for TUnicode:

List of all members.

Public Types

typedef TUniChDb::TCaseConversion TCaseConversion

Public Member Functions

 TUnicode ()
 TUnicode (const TStr &fnBinUcd)
void Init ()
int DecodeUtf8 (const TIntV &src, TIntV &dest) const
int DecodeUtf8 (const TStr &src, TIntV &dest) const
int EncodeUtf8 (const TIntV &src, TIntV &dest) const
TStr EncodeUtf8Str (const TIntV &src) const
int DecodeUtf16FromBytes (const TIntV &src, TIntV &dest, const TUtf16BomHandling bomHandling=bomAllowed, const TUniByteOrder defaultByteOrder=boMachineEndian) const
int DecodeUtf16FromWords (const TIntV &src, TIntV &dest, const TUtf16BomHandling bomHandling=bomAllowed, const TUniByteOrder defaultByteOrder=boMachineEndian) const
int EncodeUtf16ToWords (const TIntV &src, TIntV &dest, const bool insertBom, const TUniByteOrder destByteOrder=boMachineEndian) const
int EncodeUtf16ToBytes (const TIntV &src, TIntV &dest, const bool insertBom, const TUniByteOrder destByteOrder=boMachineEndian) const
void RegisterCodec (const TStr &nameList, const PCodecBase &codec)
void UnregisterCodec (const TStr &nameList)
void ClrCodecs ()
void InitCodecs ()
PCodecBase GetCodec (const TStr &name) const
void GetAllCodecs (TCodecBaseV &dest) const
bool FindNextWordBoundary (const TIntV &src, int &position) const
void FindWordBoundaries (const TIntV &src, TBoolV &dest) const
bool FindNextSentenceBoundary (const TIntV &src, int &position) const
void FindSentenceBoundaries (const TIntV &src, TBoolV &dest) const
void ClrSentenceBoundaryExceptions ()
void UseEnglishSentenceBoundaryExceptions ()
void Decompose (const TIntV &src, TIntV &dest, bool compatibility) const
void Compose (const TIntV &src, TIntV &dest) const
void DecomposeAndCompose (const TIntV &src, TIntV &dest, bool compatibility) const
int ExtractStarters (const TIntV &src, TIntV &dest) const
int ExtractStarters (TIntV &src) const
void GetLowerCase (const TIntV &src, TIntV &dest) const
void GetUpperCase (const TIntV &src, TIntV &dest) const
void GetTitleCase (const TIntV &src, TIntV &dest) const
void GetSimpleLowerCase (const TIntV &src, TIntV &dest) const
void GetSimpleUpperCase (const TIntV &src, TIntV &dest) const
void GetSimpleTitleCase (const TIntV &src, TIntV &dest) const
void ToSimpleUpperCase (TIntV &src) const
void ToSimpleLowerCase (TIntV &src) const
void ToSimpleTitleCase (TIntV &src) const
void GetCaseFolded (const TIntV &src, TIntV &dest, const bool full=true) const
void ToCaseFolded (TIntV &src) const
TStr GetUtf8CaseFolded (const TStr &s) const
DECLARE_FORWARDED_PROPERTY_METHODS ___UniFwd2 (IsPrivateUse, IsSurrogate) TUniChCategory GetCat(const int cp) const
TUniChSubCategory GetSubCat (const int cp) const
const char * GetCharName (const int cp) const
TStr GetCharNameS (const int cp) const

Static Public Member Functions

static void EncodeUtf8 (const uint &Ch, TChA &Dest)
static TStr EncodeUtf8 (const uint &Ch)

Public Attributes

TUniCodec codec
TUniChDb ucd
T8BitCodec< TEncoding_ISO8859_1iso8859_1
T8BitCodec< TEncoding_ISO8859_2iso8859_2
T8BitCodec< TEncoding_ISO8859_3iso8859_3
T8BitCodec< TEncoding_ISO8859_4iso8859_4
T8BitCodec< TEncoding_YuAsciiyuAscii
T8BitCodec< TEncoding_CP1250cp1250
T8BitCodec< TEncoding_CP852cp852
T8BitCodec< TEncoding_CP437cp437

Static Protected Member Functions

static TStr NormalizeCodecName (const TStr &name)

Protected Attributes

THash< TStr, PCodecBasecodecs

Detailed Description

Definition at line 1771 of file unicode.h.


Member Typedef Documentation


Constructor & Destructor Documentation

TUnicode::TUnicode ( ) [inline]

Definition at line 1777 of file unicode.h.

References Init().

{ Init(); }

Here is the call graph for this function:

TUnicode::TUnicode ( const TStr fnBinUcd) [inline, explicit]

Definition at line 1778 of file unicode.h.

References Init(), TUniChDb::LoadBin(), and ucd.

{ ucd.LoadBin(fnBinUcd); Init(); }

Here is the call graph for this function:


Member Function Documentation

DECLARE_FORWARDED_PROPERTY_METHODS TUnicode::___UniFwd2 ( IsPrivateUse  ,
IsSurrogate   
) const [inline]

Definition at line 2018 of file unicode.h.

References TUniChDb::GetCat(), and ucd.

                                                  { return ucd.GetCat(cp); }

Here is the call graph for this function:

void TUnicode::ClrCodecs ( ) [inline]

Definition at line 1881 of file unicode.h.

References THash< TKey, TDat, THashFunc >::Clr(), and codecs.

Referenced by InitCodecs().

{ codecs.Clr(); }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1924 of file unicode.h.

References TUniChDb::SbEx_Clr(), and ucd.

{ ucd.SbEx_Clr(); }

Here is the call graph for this function:

void TUnicode::Compose ( const TIntV src,
TIntV dest 
) const [inline]

Definition at line 1941 of file unicode.h.

References TUniChDb::Compose(), and ucd.

{ return ucd.Compose(src, dest, true); }

Here is the call graph for this function:

int TUnicode::DecodeUtf16FromBytes ( const TIntV src,
TIntV dest,
const TUtf16BomHandling  bomHandling = bomAllowed,
const TUniByteOrder  defaultByteOrder = boMachineEndian 
) const [inline]

Definition at line 1810 of file unicode.h.

References codec, TUniCodec::DecodeUtf16FromBytes(), and TVec< TVal, TSizeTy >::Len().

                                                                              {
                        return (int) codec.DecodeUtf16FromBytes(src, 0, src.Len(), dest, true, bomHandling, defaultByteOrder); }

Here is the call graph for this function:

int TUnicode::DecodeUtf16FromWords ( const TIntV src,
TIntV dest,
const TUtf16BomHandling  bomHandling = bomAllowed,
const TUniByteOrder  defaultByteOrder = boMachineEndian 
) const [inline]

Definition at line 1823 of file unicode.h.

References codec, TUniCodec::DecodeUtf16FromWords(), and TVec< TVal, TSizeTy >::Len().

                                                                              {
                        return (int) codec.DecodeUtf16FromWords(src, 0, src.Len(), dest, true, bomHandling, defaultByteOrder); }

Here is the call graph for this function:

int TUnicode::DecodeUtf8 ( const TIntV src,
TIntV dest 
) const [inline]

Definition at line 1787 of file unicode.h.

References codec, and TUniCodec::DecodeUtf8().

Referenced by TJsonVal::AddEscapeChAFromStr(), GetUtf8CaseFolded(), and TUStr::TUStr().

{ return (int) codec.DecodeUtf8(src, dest); }

Here is the call graph for this function:

Here is the caller graph for this function:

int TUnicode::DecodeUtf8 ( const TStr src,
TIntV dest 
) const [inline]

Definition at line 1788 of file unicode.h.

References codec, and TUniCodec::DecodeUtf8().

{ return (int) codec.DecodeUtf8(src, dest); }

Here is the call graph for this function:

void TUnicode::Decompose ( const TIntV src,
TIntV dest,
bool  compatibility 
) const [inline]

Definition at line 1934 of file unicode.h.

References TUniChDb::Decompose(), and ucd.

Referenced by TUStr::GetStarterLowerCaseStr(), TUStr::GetStarterStr(), TUStr::ToStarterCase(), and TUStr::TUStr().

{ ucd.Decompose(src, dest, compatibility, true); }

Here is the call graph for this function:

Here is the caller graph for this function:

void TUnicode::DecomposeAndCompose ( const TIntV src,
TIntV dest,
bool  compatibility 
) const [inline]

Definition at line 1946 of file unicode.h.

References TUniChDb::DecomposeAndCompose(), and ucd.

{ return ucd.DecomposeAndCompose(src, dest, compatibility); }

Here is the call graph for this function:

int TUnicode::EncodeUtf16ToBytes ( const TIntV src,
TIntV dest,
const bool  insertBom,
const TUniByteOrder  destByteOrder = boMachineEndian 
) const [inline]

Definition at line 1838 of file unicode.h.

References codec, TUniCodec::EncodeUtf16ToBytes(), and TVec< TVal, TSizeTy >::Len().

                                                                           {
                        return (int) codec.EncodeUtf16ToBytes(src, 0, src.Len(), dest, true, insertBom, destByteOrder); }

Here is the call graph for this function:

int TUnicode::EncodeUtf16ToWords ( const TIntV src,
TIntV dest,
const bool  insertBom,
const TUniByteOrder  destByteOrder = boMachineEndian 
) const [inline]

Definition at line 1834 of file unicode.h.

References codec, TUniCodec::EncodeUtf16ToWords(), and TVec< TVal, TSizeTy >::Len().

                                                                           {
                        return (int) codec.EncodeUtf16ToWords(src, 0, src.Len(), dest, true, insertBom, destByteOrder); }

Here is the call graph for this function:

int TUnicode::EncodeUtf8 ( const TIntV src,
TIntV dest 
) const [inline]

Definition at line 1792 of file unicode.h.

References codec, and TUniCodec::EncodeUtf8().

Referenced by EncodeUtf8(), TXmlLx::GetPlainStrFromXmlStr(), TXmlLx::GetReference(), and TILx::GetSym().

{ return (int) codec.EncodeUtf8(src, dest); }

Here is the call graph for this function:

Here is the caller graph for this function:

void TUnicode::EncodeUtf8 ( const uint Ch,
TChA Dest 
) [static]

Definition at line 1696 of file unicode.cpp.

References TChA::AddCh(), TStr::Fmt(), and TExcept::New().

                                                   {
        if (c > 0x10ffff) {
                throw TExcept::New(TStr::Fmt("Unkown Unicode character %u", c)); }
        if (c < 0x80u)
                dest.AddCh(char(c & 0xffu));
        else if (c < 0x800u) {
                dest.AddCh(char(TUniCodec::_1100_0000 | ((c >> 6) & TUniCodec::_0001_1111)));
                dest.AddCh(char(TUniCodec::_1000_0000 | (c & TUniCodec::_0011_1111))); }
        else if (c < 0x10000u) {
                dest.AddCh(char(TUniCodec::_1110_0000 | ((c >> 12) & TUniCodec::_0000_1111)));
                dest.AddCh(char(TUniCodec::_1000_0000 | ((c >> 6) & TUniCodec::_0011_1111)));
                dest.AddCh(char(TUniCodec::_1000_0000 | (c & TUniCodec::_0011_1111))); }
        else if (c < 0x200000u) {
                dest.AddCh(char(TUniCodec::_1111_0000 | ((c >> 18) & TUniCodec::_0000_0111)));
                dest.AddCh(char(TUniCodec::_1000_0000 | ((c >> 12) & TUniCodec::_0011_1111)));
                dest.AddCh(char(TUniCodec::_1000_0000 | ((c >> 6) & TUniCodec::_0011_1111)));
                dest.AddCh(char(TUniCodec::_1000_0000 | (c & TUniCodec::_0011_1111))); }
        else if (c < 0x4000000u) {
                dest.AddCh(char(TUniCodec::_1111_1000 | ((c >> 24) & TUniCodec::_0000_0011)));
                dest.AddCh(char(TUniCodec::_1000_0000 | ((c >> 18) & TUniCodec::_0011_1111)));
                dest.AddCh(char(TUniCodec::_1000_0000 | ((c >> 12) & TUniCodec::_0011_1111)));
                dest.AddCh(char(TUniCodec::_1000_0000 | ((c >> 6) & TUniCodec::_0011_1111)));
                dest.AddCh(char(TUniCodec::_1000_0000 | (c & TUniCodec::_0011_1111))); }
        else {
                dest.AddCh(char(TUniCodec::_1111_1100 | ((c >> 30) & TUniCodec::_0000_0011)));
                dest.AddCh(char(TUniCodec::_1000_0000 | ((c >> 24) & TUniCodec::_0011_1111)));
                dest.AddCh(char(TUniCodec::_1000_0000 | ((c >> 18) & TUniCodec::_0011_1111)));
                dest.AddCh(char(TUniCodec::_1000_0000 | ((c >> 12) & TUniCodec::_0011_1111)));
                dest.AddCh(char(TUniCodec::_1000_0000 | ((c >> 6) & TUniCodec::_0011_1111)));
                dest.AddCh(char(TUniCodec::_1000_0000 | (c & TUniCodec::_0011_1111))); }
}

Here is the call graph for this function:

TStr TUnicode::EncodeUtf8 ( const uint Ch) [static]

Definition at line 1728 of file unicode.cpp.

References EncodeUtf8().

                                        {
        TChA ChA; EncodeUtf8(Ch, ChA); return ChA;
}

Here is the call graph for this function:

TStr TUnicode::EncodeUtf8Str ( const TIntV src) const [inline]

Definition at line 1796 of file unicode.h.

References codec, and TUniCodec::EncodeUtf8Str().

Referenced by TUStr::EncodeUtf8(), TUStr::GetStarterLowerCaseStr(), TUStr::GetStarterStr(), TUStr::GetStr(), and GetUtf8CaseFolded().

{ return codec.EncodeUtf8Str(src); }

Here is the call graph for this function:

Here is the caller graph for this function:

int TUnicode::ExtractStarters ( const TIntV src,
TIntV dest 
) const [inline]

Definition at line 1951 of file unicode.h.

References TUniChDb::ExtractStarters(), and ucd.

Referenced by TUStr::GetStarterLowerCaseStr(), TUStr::GetStarterStr(), and TUStr::ToStarterCase().

{ return (int) ucd.ExtractStarters(src, dest); }

Here is the call graph for this function:

Here is the caller graph for this function:

int TUnicode::ExtractStarters ( TIntV src) const [inline]

Definition at line 1953 of file unicode.h.

References TUniChDb::ExtractStarters(), and ucd.

{ return (int) ucd.ExtractStarters(src); }

Here is the call graph for this function:

bool TUnicode::FindNextSentenceBoundary ( const TIntV src,
int &  position 
) const [inline]

Definition at line 1916 of file unicode.h.

References TUniChDb::FindNextSentenceBoundary(), TVec< TVal, TSizeTy >::Len(), and ucd.

                                                                             {
                if (position < 0) { position = 0; return true; }
                size_t position_; bool retVal = ucd.FindNextSentenceBoundary(src, 0, src.Len(), position_); position = int(position_); return retVal; }

Here is the call graph for this function:

bool TUnicode::FindNextWordBoundary ( const TIntV src,
int &  position 
) const [inline]

Definition at line 1901 of file unicode.h.

References TUniChDb::FindNextWordBoundary(), TVec< TVal, TSizeTy >::Len(), and ucd.

                                                                         {
                if (position < 0) { position = 0; return true; }
                size_t position_; bool retVal = ucd.FindNextWordBoundary(src, 0, src.Len(), position_); position = int(position_); return retVal; }

Here is the call graph for this function:

void TUnicode::FindSentenceBoundaries ( const TIntV src,
TBoolV dest 
) const [inline]

Definition at line 1922 of file unicode.h.

References TUniChDb::FindSentenceBoundaries(), TVec< TVal, TSizeTy >::Len(), and ucd.

{ ucd.FindSentenceBoundaries(src, 0, src.Len(), dest); }

Here is the call graph for this function:

void TUnicode::FindWordBoundaries ( const TIntV src,
TBoolV dest 
) const [inline]

Definition at line 1907 of file unicode.h.

References TUniChDb::FindWordBoundaries(), TVec< TVal, TSizeTy >::Len(), and ucd.

Referenced by TUStr::GetWordBoundPV().

{ ucd.FindWordBoundaries(src, 0, src.Len(), dest); }

Here is the call graph for this function:

Here is the caller graph for this function:

void TUnicode::GetAllCodecs ( TCodecBaseV dest) const [inline]

Definition at line 1887 of file unicode.h.

References TVec< TVal, TSizeTy >::Add(), TVec< TVal, TSizeTy >::Clr(), codec, codecs, THash< TKey, TDat, THashFunc >::FFirstKeyId(), THash< TKey, TDat, THashFunc >::FNextKeyId(), and TVec< TVal, TSizeTy >::Len().

                                                   {
                dest.Clr();
                for (int i = codecs.FFirstKeyId(); codecs.FNextKeyId(i); ) {
                        PCodecBase codec = codecs[i]; bool found = false;
                        for (int j = 0; j < dest.Len(); j++) if (dest[j]() == codec()) { found = true; break; }
                        if (! found) dest.Add(codec); }}

Here is the call graph for this function:

void TUnicode::GetCaseFolded ( const TIntV src,
TIntV dest,
const bool  full = true 
) const [inline]

Definition at line 1989 of file unicode.h.

References TUniChDb::GetCaseFolded(), and ucd.

Referenced by GetUtf8CaseFolded().

{ return ucd.GetCaseFolded(src, dest, true, full, false); }

Here is the call graph for this function:

Here is the caller graph for this function:

const char* TUnicode::GetCharName ( const int  cp) const [inline]

Definition at line 2024 of file unicode.h.

References TUniChDb::GetCharName(), and ucd.

{ return ucd.GetCharName(cp); }

Here is the call graph for this function:

TStr TUnicode::GetCharNameS ( const int  cp) const [inline]

Definition at line 2025 of file unicode.h.

References TUniChDb::GetCharNameS(), and ucd.

Referenced by TUStr::GetChNm().

{ return ucd.GetCharNameS(cp); }

Here is the call graph for this function:

Here is the caller graph for this function:

PCodecBase TUnicode::GetCodec ( const TStr name) const [inline]

Definition at line 1883 of file unicode.h.

References TPt< TRec >::Clr(), codecs, THash< TKey, TDat, THashFunc >::IsKeyGetDat(), and NormalizeCodecName().

                                                    {
                TStr s = NormalizeCodecName(name);
                PCodecBase p; if (! codecs.IsKeyGetDat(s, p)) p.Clr();
                return p; }

Here is the call graph for this function:

void TUnicode::GetLowerCase ( const TIntV src,
TIntV dest 
) const [inline]

Definition at line 1965 of file unicode.h.

References TUniChDb::GetLowerCase(), and ucd.

{ ucd.GetLowerCase(src, dest, true, false, false); }

Here is the call graph for this function:

void TUnicode::GetSimpleLowerCase ( const TIntV src,
TIntV dest 
) const [inline]

Definition at line 1972 of file unicode.h.

References TUniChDb::GetSimpleLowerCase(), and ucd.

Referenced by TUStr::GetStarterLowerCaseStr().

{ ucd.GetSimpleLowerCase(src, dest, true); }

Here is the call graph for this function:

Here is the caller graph for this function:

void TUnicode::GetSimpleTitleCase ( const TIntV src,
TIntV dest 
) const [inline]

Definition at line 1974 of file unicode.h.

References TUniChDb::GetSimpleTitleCase(), and ucd.

{ ucd.GetSimpleTitleCase(src, dest, true); }

Here is the call graph for this function:

void TUnicode::GetSimpleUpperCase ( const TIntV src,
TIntV dest 
) const [inline]

Definition at line 1973 of file unicode.h.

References TUniChDb::GetSimpleUpperCase(), and ucd.

{ ucd.GetSimpleUpperCase(src, dest, true); }

Here is the call graph for this function:

TUniChSubCategory TUnicode::GetSubCat ( const int  cp) const [inline]

Definition at line 2021 of file unicode.h.

References TUniChDb::GetSubCat(), and ucd.

{ return ucd.GetSubCat(cp); }

Here is the call graph for this function:

void TUnicode::GetTitleCase ( const TIntV src,
TIntV dest 
) const [inline]

Definition at line 1967 of file unicode.h.

References TUniChDb::GetTitleCase(), and ucd.

{ ucd.GetTitleCase(src, dest, true, false, false); }

Here is the call graph for this function:

void TUnicode::GetUpperCase ( const TIntV src,
TIntV dest 
) const [inline]

Definition at line 1966 of file unicode.h.

References TUniChDb::GetUpperCase(), and ucd.

{ ucd.GetUpperCase(src, dest, true, false, false); }

Here is the call graph for this function:

TStr TUnicode::GetUtf8CaseFolded ( const TStr s) const [inline]

Definition at line 1994 of file unicode.h.

References DecodeUtf8(), EncodeUtf8Str(), GetCaseFolded(), TStr::GetLc(), and TStr::Len().

                                                    {
                bool isAscii = true;
                for (int i = 0, n = s.Len(); i < n; i++) if (uchar(s[i]) >= 128) { isAscii = false; break; }
                if (isAscii) return s.GetLc();
                TIntV src; DecodeUtf8(s, src);
                TIntV dest; GetCaseFolded(src, dest);
                return EncodeUtf8Str(dest); }

Here is the call graph for this function:

void TUnicode::Init ( ) [inline]

Definition at line 1779 of file unicode.h.

References InitCodecs().

Referenced by TUnicode().

{ InitCodecs(); }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1683 of file unicode.cpp.

References ClrCodecs(), and RegisterCodec().

Referenced by Init().

{
        ClrCodecs();
        RegisterCodec("ISO-8859-1 ISO_8859-1 ISO_8859-1:1987 ISO-IR-100 CP819 IBM819 LATIN1 L1 csISOLatin1 ISO8859-1 ISO8859_1 CP28591", TCodecBase::New<TCodec_ISO8859_1>());
        RegisterCodec("ISO-8859-2 ISO_8859-2 ISO_8859-2:1987 ISO-IR-101 LATIN2 L2 csISOLatin2 ISO8859-2 ISO8859_2 CP28592", TCodecBase::New<TCodec_ISO8859_2>());
        RegisterCodec("ISO-8859-3 ISO_8859-3 ISO_8859-3:1988 ISO-IR-109 LATIN3 L3 csISOLatin3 ISO8859-3 ISO8859_3 CP28593", TCodecBase::New<TCodec_ISO8859_3>());
        RegisterCodec("ISO-8859-4 ISO_8859-4 ISO_8859-4:1988 ISO-IR-110 LATIN4 L4 csISOLatin4 ISO8859-4 ISO8859_4 CP28594", TCodecBase::New<TCodec_ISO8859_4>());
        RegisterCodec("YUASCII YU-ASCII YU_ASCII", TCodecBase::New<TCodec_YuAscii>());
        RegisterCodec("CP1250 Windows-1250 MS-EE", TCodecBase::New<TCodec_CP1250>());
        RegisterCodec("CP852 cp852_DOSLatin2 DOSLatin2", TCodecBase::New<TCodec_CP852>());
        RegisterCodec("CP437 cp437_DOSLatinUS DOSLatinUS", TCodecBase::New<TCodec_CP437>());
}

Here is the call graph for this function:

Here is the caller graph for this function:

static TStr TUnicode::NormalizeCodecName ( const TStr name) [inline, static, protected]

Definition at line 1870 of file unicode.h.

References TStr::ChangeStrAll(), and TStr::GetLc().

Referenced by GetCodec(), RegisterCodec(), and UnregisterCodec().

                                                                {
                TStr s = name.GetLc(); s.ChangeStrAll("_", ""); s.ChangeStrAll("-", ""); return s; }

Here is the call graph for this function:

Here is the caller graph for this function:

void TUnicode::RegisterCodec ( const TStr nameList,
const PCodecBase codec 
) [inline]

Definition at line 1873 of file unicode.h.

References THash< TKey, TDat, THashFunc >::AddDat(), codecs, TVec< TVal, TSizeTy >::Len(), NormalizeCodecName(), and TStr::SplitOnWs().

Referenced by InitCodecs().

                                                                          {
                TStrV names; nameList.SplitOnWs(names);
                for (int i = 0; i < names.Len(); i++)
                        codecs.AddDat(NormalizeCodecName(names[i]), codec); }

Here is the call graph for this function:

Here is the caller graph for this function:

void TUnicode::ToCaseFolded ( TIntV src) const [inline]

Definition at line 1992 of file unicode.h.

References TUniChDb::ToCaseFolded(), and ucd.

{ return ucd.ToCaseFolded(src, false); }

Here is the call graph for this function:

void TUnicode::ToSimpleLowerCase ( TIntV src) const [inline]

Definition at line 1978 of file unicode.h.

References TUniChDb::ToSimpleLowerCase(), and ucd.

Referenced by TUStr::ToLowerCase().

Here is the call graph for this function:

Here is the caller graph for this function:

void TUnicode::ToSimpleTitleCase ( TIntV src) const [inline]

Definition at line 1979 of file unicode.h.

References TUniChDb::ToSimpleTitleCase(), and ucd.

Here is the call graph for this function:

void TUnicode::ToSimpleUpperCase ( TIntV src) const [inline]

Definition at line 1977 of file unicode.h.

References TUniChDb::ToSimpleUpperCase(), and ucd.

Referenced by TUStr::ToUpperCase().

Here is the call graph for this function:

Here is the caller graph for this function:

void TUnicode::UnregisterCodec ( const TStr nameList) [inline]

Definition at line 1877 of file unicode.h.

References codecs, THash< TKey, TDat, THashFunc >::DelKey(), TVec< TVal, TSizeTy >::Len(), NormalizeCodecName(), and TStr::SplitOnWs().

                                                   {
                TStrV names; nameList.SplitOnWs(names);
                for (int i = 0; i < names.Len(); i++)
                        codecs.DelKey(NormalizeCodecName(names[i])); }

Here is the call graph for this function:

Definition at line 1925 of file unicode.h.

References TUniChDb::SbEx_SetStdEnglish(), and ucd.

Here is the call graph for this function:


Member Data Documentation

Definition at line 1869 of file unicode.h.

Referenced by ClrCodecs(), GetAllCodecs(), GetCodec(), RegisterCodec(), and UnregisterCodec().


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