src/common/wchar.c
int
pg_encoding_mblen_bounded(int encoding, const char *mbstr)
{
	return strnlen(mbstr, pg_encoding_mblen(encoding, mbstr));
}
/*
 * Returns the byte length of a multibyte character; but not more than
 * the distance to end of string.
 */
Returns the byte length of a multibyte character; but not more than
the distance to end of string.
Returns the byte length of a multibyte character ; but not more than the distance to end of string .
int
pg_encoding_mblen_bounded(int encoding, const char *mbstr)
{
	return strnlen(mbstr, pg_encoding_mblen(encoding, mbstr));
}
int pg_encoding_mblen_bounded ( int encoding , const char * mbstr ) { return strnlen ( mbstr , pg_encoding_mblen ( encoding , mbstr ) ) ; }
Returns the byte length of a multibyte character; but not more than
 the distance to end of string.
Returns the byte length of a multibyte character ; but not more than the distance to end of string .