| 1207 | } |
| 1208 | |
| 1209 | utf8_constexpr14_impl size_t utf8codepointsize(utf8_int32_t chr) { |
| 1210 | if (0 == ((utf8_int32_t)0xffffff80 & chr)) { |
| 1211 | return 1; |
| 1212 | } else if (0 == ((utf8_int32_t)0xfffff800 & chr)) { |
| 1213 | return 2; |
| 1214 | } else if (0 == ((utf8_int32_t)0xffff0000 & chr)) { |
| 1215 | return 3; |
| 1216 | } else { // if (0 == ((int)0xffe00000 & chr)) { |
| 1217 | return 4; |
| 1218 | } |
| 1219 | } |
| 1220 | |
| 1221 | utf8_int8_t *utf8catcodepoint(utf8_int8_t *str, utf8_int32_t chr, size_t n) { |
| 1222 | if (0 == ((utf8_int32_t)0xffffff80 & chr)) { |
no outgoing calls
no test coverage detected