| 400 c = '\b'; |
400 c = '\b'; |
| 401 } else if (c == 'u') { |
401 } else if (c == 'u') { |
| 402 if (i+4 < str.length - 1) { |
402 if (i+4 < str.length - 1) { |
| 403 cxstring codepoint_str = { str.ptr + i + 1, 4}; |
403 cxstring codepoint_str = { str.ptr + i + 1, 4}; |
| 404 uint32_t codepoint; |
404 uint32_t codepoint; |
| 405 if(!cx_strtou32_lc_(codepoint_str, &codepoint, 16, "")) { |
405 if(!cx_strtou32_lc(codepoint_str, &codepoint, 16, "")) { |
| 406 char utf8buf[4]; |
406 char utf8buf[4]; |
| 407 int utf8len = codepoint_to_utf8(codepoint, utf8buf); |
407 int utf8len = codepoint_to_utf8(codepoint, utf8buf); |
| 408 if(utf8len > 0) { |
408 if(utf8len > 0) { |
| 409 // add all bytes from utf8buf expect the last char |
409 // add all bytes from utf8buf expect the last char |
| 410 // to the result |
410 // to the result |