utf16_exceptions.cpp 725 B

123456789101112131415161718192021222324252627
  1. //
  2. // $Id$
  3. //
  4. #include<__vic/utf16/exceptions.h>
  5. namespace __vic { namespace utf16 {
  6. //------------------------------------------------------------------------------
  7. const char *truncated_code_unit::what() const noexcept
  8. {
  9. return "Truncated UTF-16 code unit";
  10. }
  11. //------------------------------------------------------------------------------
  12. const char *truncated_code_point::what() const noexcept
  13. {
  14. return "Truncated UTF-16 code point";
  15. }
  16. //------------------------------------------------------------------------------
  17. const char *invalid_sequence::what() const noexcept
  18. {
  19. return "Invalid UTF-16 encoding";
  20. }
  21. //------------------------------------------------------------------------------
  22. }} // namespace