* Exported function to return the total number of bytes in a codepoint * represented in UTF-8, given the value of the first byte. */
| 517 | * represented in UTF-8, given the value of the first byte. |
| 518 | */ |
| 519 | unsigned getNumBytesForUTF8(UTF8 first) { |
| 520 | return trailingBytesForUTF8[first] + 1; |
| 521 | } |
| 522 | |
| 523 | /* --------------------------------------------------------------------- */ |
| 524 |
no outgoing calls
no test coverage detected