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

Function PQmblen

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

* Returns the byte length of the character beginning at s, using the * specified encoding. * * Caution: when dealing with text that is not certainly valid in the * specified encoding, the result may exceed the actual remaining * string length. Callers that are not prepared to deal with that * should use PQmblenBounded() instead. */

Source from the content-addressed store, hash-verified

1293 * should use PQmblenBounded() instead.
1294 */
1295int
1296PQmblen(const char *s, int encoding)
1297{
1298 return pg_encoding_mblen(encoding, s);
1299}
1300
1301/*
1302 * Returns the byte length of the character beginning at s, using the

Callers 6

appendStringLiteralFunction · 0.85
pg_wcswidthFunction · 0.85
pg_wcssizeFunction · 0.85
pg_wcsformatFunction · 0.85
strlen_max_widthFunction · 0.85
get_promptFunction · 0.85

Calls 1

pg_encoding_mblenFunction · 0.85

Tested by

no test coverage detected