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

Function pg_encoding_mblen_bounded

src/common/wchar.c:1979–1983  ·  view source on GitHub ↗

* Returns the byte length of a multibyte character; but not more than * the distance to end of string. */

Source from the content-addressed store, hash-verified

1977 * the distance to end of string.
1978 */
1979int
1980pg_encoding_mblen_bounded(int encoding, const char *mbstr)
1981{
1982 return strnlen(mbstr, pg_encoding_mblen(encoding, mbstr));
1983}
1984
1985/*
1986 * Returns the display length of a multibyte character.

Callers 1

json_lex_stringFunction · 0.85

Calls 2

strnlenFunction · 0.85
pg_encoding_mblenFunction · 0.85

Tested by

no test coverage detected