Konwersje łańcuchów Unicode
[Łańcuchy, Obsługa Unicode]


Funkcje

bool common::ConvertUnicodeToChars (string *Out, const wstring &S, unsigned CodePage)
bool common::ConvertUnicodeToChars (string *Out, const wchar_t *S, unsigned NumChars, unsigned CodePage)
bool common::ConvertCharsToUnicode (wstring *Out, const string &S, unsigned CodePage)
bool common::ConvertCharsToUnicode (wstring *Out, const char *S, unsigned NumChars, unsigned CodePage)

Opis szczegółowy

Konwersje między łańcuchem Unicode (UTF-16) a łańcuchem w innym kodowaniu - Single Byte lub Multi Byte.

CodePage to kodowanie znaków typu char. Przykładowe wartości:

Funkcje zwracają false w przypadku niepowodzenia konwersji. Wówczas Out jest pusty.


Dokumentacja funkcji

bool common::ConvertCharsToUnicode ( wstring *  Out,
const char *  S,
unsigned  NumChars,
unsigned  CodePage 
)

bool common::ConvertCharsToUnicode ( wstring *  Out,
const string &  S,
unsigned  CodePage 
)

bool common::ConvertUnicodeToChars ( string *  Out,
const wchar_t *  S,
unsigned  NumChars,
unsigned  CodePage 
)

bool common::ConvertUnicodeToChars ( string *  Out,
const wstring &  S,
unsigned  CodePage 
)


Wygenerowano Sat Mar 29 18:17:00 2008 dla CommonLib programem  doxygen 1.5.5