MCPcopy Create free account
hub / github.com/apache/cloudberry / PQmblenBounded

Function PQmblenBounded

src/interfaces/libpq/fe-misc.c:1305–1309  ·  view source on GitHub ↗

* Returns the byte length of the character beginning at s, using the * specified encoding; but not more than the distance to end of string. */

Source from the content-addressed store, hash-verified

1303 * specified encoding; but not more than the distance to end of string.
1304 */
1305int
1306PQmblenBounded(const char *s, int encoding)
1307{
1308 return strnlen(s, pg_encoding_mblen(encoding, s));
1309}
1310
1311/*
1312 * Returns the display length of the character beginning at s, using the

Callers 10

patternToSQLRegexFunction · 0.85
do_fieldFunction · 0.85
reportErrorPositionFunction · 0.85
skip_white_spaceFunction · 0.85
command_no_beginFunction · 0.85
is_select_commandFunction · 0.85
strtokxFunction · 0.85
strip_quotesFunction · 0.85
quote_if_neededFunction · 0.85
splitTableColumnsSpecFunction · 0.85

Calls 2

strnlenFunction · 0.85
pg_encoding_mblenFunction · 0.85

Tested by

no test coverage detected