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

Function PQdsplen

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

* Returns the display length of the character beginning at s, using the * specified encoding. */

Source from the content-addressed store, hash-verified

1313 * specified encoding.
1314 */
1315int
1316PQdsplen(const char *s, int encoding)
1317{
1318 return pg_encoding_dsplen(encoding, s);
1319}
1320
1321/*
1322 * Get encoding id from environment variable PGCLIENTENCODING.

Callers 5

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_dsplenFunction · 0.85

Tested by

no test coverage detected