Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
UInitMaps Class Reference

List of all members.

Public Member Functions

 UInitMaps ()

Detailed Description

Definition at line 44 of file ImportCharSet.cpp.


Constructor & Destructor Documentation

Definition at line 51 of file ImportCharSet.cpp.

{
       int    i;

       for (i = 0; i < 256; i++)
              ImportCharSet::m_upperCaseMap[i] = i;
       for (i = 'a'; i <= 'z'; i++)
              ImportCharSet::m_upperCaseMap[i] = i - 'a' + 'A';

       for (i = 0; i < 256; i++)
              ImportCharSet::m_Ascii[i] = 0;

       for (i = ImportCharSet::cUpperAChar; i <= ImportCharSet::cUpperZChar; i++)
              ImportCharSet::m_Ascii[i] |= (ImportCharSet::cAlphaNumChar | ImportCharSet::cAlphaChar);
       for (i = ImportCharSet::cLowerAChar; i <= ImportCharSet::cLowerZChar; i++)
              ImportCharSet::m_Ascii[i] |= (ImportCharSet::cAlphaNumChar | ImportCharSet::cAlphaChar);
       for (i = ImportCharSet::cZeroChar; i <= ImportCharSet::cNineChar; i++)
              ImportCharSet::m_Ascii[i] |= (ImportCharSet::cAlphaNumChar | ImportCharSet::cDigitChar);

       ImportCharSet::m_Ascii[ImportCharSet::cTabChar] |= ImportCharSet::cWhiteSpaceChar;
       ImportCharSet::m_Ascii[ImportCharSet::cCRChar] |= ImportCharSet::cWhiteSpaceChar;
       ImportCharSet::m_Ascii[ImportCharSet::cLinefeedChar] |= ImportCharSet::cWhiteSpaceChar;
       ImportCharSet::m_Ascii[ImportCharSet::cSpaceChar] |= ImportCharSet::cWhiteSpaceChar;

       ImportCharSet::m_Ascii['('] |= ImportCharSet::c822SpecialChar;
       ImportCharSet::m_Ascii[')'] |= ImportCharSet::c822SpecialChar;
       ImportCharSet::m_Ascii['<'] |= ImportCharSet::c822SpecialChar;
       ImportCharSet::m_Ascii['>'] |= ImportCharSet::c822SpecialChar;
       ImportCharSet::m_Ascii['@'] |= ImportCharSet::c822SpecialChar;
       ImportCharSet::m_Ascii[','] |= ImportCharSet::c822SpecialChar;
       ImportCharSet::m_Ascii[';'] |= ImportCharSet::c822SpecialChar;
       ImportCharSet::m_Ascii[':'] |= ImportCharSet::c822SpecialChar;
       ImportCharSet::m_Ascii['\\'] |= ImportCharSet::c822SpecialChar;
       ImportCharSet::m_Ascii['"'] |= ImportCharSet::c822SpecialChar;
       ImportCharSet::m_Ascii['.'] |= ImportCharSet::c822SpecialChar;
       ImportCharSet::m_Ascii['['] |= ImportCharSet::c822SpecialChar;
       ImportCharSet::m_Ascii[']'] |= ImportCharSet::c822SpecialChar;


}

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