| 14691 | } |
| 14692 | |
| 14693 | uint32_t headerValue(unsigned char c) { |
| 14694 | if ((c & 0xE0) == 0xC0) { |
| 14695 | return c & 0x1F; |
| 14696 | } |
| 14697 | if ((c & 0xF0) == 0xE0) { |
| 14698 | return c & 0x0F; |
| 14699 | } |
| 14700 | if ((c & 0xF8) == 0xF0) { |
| 14701 | return c & 0x07; |
| 14702 | } |
| 14703 | CATCH_INTERNAL_ERROR("Invalid multibyte utf-8 start byte encountered"); |
| 14704 | } |
| 14705 | |
| 14706 | void hexEscapeChar(std::ostream& os, unsigned char c) { |
| 14707 | std::ios_base::fmtflags f(os.flags()); |