| 98 | } |
| 99 | |
| 100 | static int UTF8Bytes(int c) |
| 101 | { |
| 102 | if( c <= 0x7F ) |
| 103 | return 1; |
| 104 | else if( c <= 0x7FF ) |
| 105 | return 2; |
| 106 | else if( c <= 0xFFFF ) |
| 107 | return 3; |
| 108 | else |
| 109 | return 4; |
| 110 | } |
| 111 | |
| 112 | inline static int UTF16BytesCheck(int ch) |
| 113 | { |
no outgoing calls
no test coverage detected