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

Function pg_encoding_dsplen

src/common/wchar.c:1988–1994  ·  view source on GitHub ↗

* Returns the display length of a multibyte character. */

Source from the content-addressed store, hash-verified

1986 * Returns the display length of a multibyte character.
1987 */
1988int
1989pg_encoding_dsplen(int encoding, const char *mbstr)
1990{
1991 return (PG_VALID_ENCODING(encoding) ?
1992 pg_wchar_table[encoding].dsplen((const unsigned char *) mbstr) :
1993 pg_wchar_table[PG_SQL_ASCII].dsplen((const unsigned char *) mbstr));
1994}
1995
1996/*
1997 * Verify the first multibyte character of the given string.

Callers 2

PQdsplenFunction · 0.85
reportErrorPositionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected