decomposition_table.h 841 B

12345678910111213141516171819202122232425262728
  1. #pragma once
  2. #include <util/charset/unicode_table.h>
  3. namespace NUnicode {
  4. namespace NPrivate {
  5. typedef NUnicodeTable::TTable<NUnicodeTable::TSubtable<
  6. NUnicodeTable::UNICODE_TABLE_SHIFT, NUnicodeTable::TValues<const wchar32*>>>
  7. TDecompositionTable;
  8. const TDecompositionTable& CannonDecompositionTable();
  9. const TDecompositionTable& CompatDecompositionTable();
  10. template <bool compat>
  11. inline const TDecompositionTable& DecompositionTable();
  12. template <>
  13. inline const TDecompositionTable& DecompositionTable<false>() {
  14. return CannonDecompositionTable();
  15. }
  16. template <>
  17. inline const TDecompositionTable& DecompositionTable<true>() {
  18. return CompatDecompositionTable();
  19. }
  20. }
  21. } // namespace NUnicode