utf8_thresholds.cpp 479 B

123456789101112131415161718
  1. //
  2. // $Id$
  3. //
  4. #include<__vic/utf8/defs.h>
  5. #include<cassert>
  6. namespace __vic { namespace utf8 {
  7. //----------------------------------------------------------------------------
  8. // Minimal amount of bytes needed to encode the code point
  9. extern const unicode_t length_thresholds[5] =
  10. // bytes: 2 3 4 5 6
  11. { 0x80, 0x800, 0x10000, 0x200000, 0x4000000 };
  12. //----------------------------------------------------------------------------
  13. }} // namespace