* Exported function to return whether a UTF-8 sequence is legal or not. * This is not used here; it's just exported. */
| 324 | * This is not used here; it's just exported. |
| 325 | */ |
| 326 | Boolean isLegalUTF8Sequence(const UTF8 *source, const UTF8 *sourceEnd) { |
| 327 | int length = trailingBytesForUTF8[*source]+1; |
| 328 | if (source+length > sourceEnd) { |
| 329 | return false; |
| 330 | } |
| 331 | return isLegalUTF8(source, length); |
| 332 | } |
| 333 | |
| 334 | /* --------------------------------------------------------------------- */ |
| 335 |
nothing calls this directly
no test coverage detected