MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / utf8_islead

Function utf8_islead

extern/editline/src/read.c:301–306  ·  view source on GitHub ↗

utf8_islead(): * Test whether a byte is a leading byte of a UTF-8 sequence. */

Source from the content-addressed store, hash-verified

299 * Test whether a byte is a leading byte of a UTF-8 sequence.
300 */
301private int
302utf8_islead(int c)
303{
304 return c < 0x80 || /* single byte char */
305 (c >= 0xc2 && c <= 0xf4); /* start of multibyte sequence */
306}
307#endif
308
309/* read_char():

Callers 1

read_charFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected