MCPcopy Create free account
hub / github.com/ablab/spades / getNumBytesForUTF8

Function getNumBytesForUTF8

ext/src/llvm/ConvertUTF.cpp:519–521  ·  view source on GitHub ↗

* Exported function to return the total number of bytes in a codepoint * represented in UTF-8, given the value of the first byte. */

Source from the content-addressed store, hash-verified

517 * represented in UTF-8, given the value of the first byte.
518 */
519unsigned getNumBytesForUTF8(UTF8 first) {
520 return trailingBytesForUTF8[first] + 1;
521}
522
523/* --------------------------------------------------------------------- */
524

Callers 2

columnWidthUTF8Function · 0.85
convertUTF8SequenceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected