Alexander Fokin bf9e69a933 Restoring authorship annotation for Alexander Fokin <apfokin@gmail.com>. Commit 2 of 2. 3 years ago
..
generated 4ea9ba7790 intermediate changes 3 years ago
ut 1d9c550e7c Restoring authorship annotation for <neksard@yandex-team.ru>. Commit 2 of 2. 3 years ago
README.md 1110808a9d intermediate changes 3 years ago
ci_string.cpp 4ea9ba7790 intermediate changes 3 years ago
ci_string.h bf9e69a933 Restoring authorship annotation for Alexander Fokin <apfokin@gmail.com>. Commit 2 of 2. 3 years ago
ci_string_ut.cpp 1110808a9d intermediate changes 3 years ago
codepage.cpp bf9e69a933 Restoring authorship annotation for Alexander Fokin <apfokin@gmail.com>. Commit 2 of 2. 3 years ago
codepage.h d3a398281c Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 2 of 2. 3 years ago
codepage_ut.cpp d3a398281c Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 2 of 2. 3 years ago
cp_encrec.cpp d3a398281c Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 2 of 2. 3 years ago
doccodes.cpp d3a398281c Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 2 of 2. 3 years ago
doccodes.h d3a398281c Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 2 of 2. 3 years ago
iconv.cpp d3a398281c Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 2 of 2. 3 years ago
iconv.h d3a398281c Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 2 of 2. 3 years ago
iconv_ut.cpp d3a398281c Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 2 of 2. 3 years ago
recyr.hh d3a398281c Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 2 of 2. 3 years ago
recyr_int.hh d3a398281c Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 2 of 2. 3 years ago
wide.cpp 1110808a9d intermediate changes 3 years ago
wide.h bf9e69a933 Restoring authorship annotation for Alexander Fokin <apfokin@gmail.com>. Commit 2 of 2. 3 years ago
wide_ut.cpp bf9e69a933 Restoring authorship annotation for Alexander Fokin <apfokin@gmail.com>. Commit 2 of 2. 3 years ago
ya.make 1d9c550e7c Restoring authorship annotation for <neksard@yandex-team.ru>. Commit 2 of 2. 3 years ago

README.md

Здесь представлены функции и enum'ы для работы с кодировками.

Наиболее полезные конструкции этой библиотеки:

  1. enum ECharset - перечень кодировок, которые умеет определять детектор кодировок.
  2. Функция inline TString Recode(ECharset from, ECharset to, const TString& in) для преобразования кодировок.
  3. Функция inline TUtf16String UTF8ToWide(const char* text, size_t len, const CodePage& cp), пытающаяся построить широкую строку из UTF-8, а если не получается - с помощью кодировки cp.

  4. Класс TCiString - аналог TString, но использующий case-insensitive-компаратор и хеш и поддерживающий разные кодировки.

В комплекте есть ещё много функций для работы со старой однобайтной Yandex-кодировкой. Не рекомендуется к использованию. Для преобразования из UTF-8 в TUtf16String и для работы с Unicode используйте функции из arcadia/util/charset.