* Returns the display length of a multibyte character. */
| 1986 | * Returns the display length of a multibyte character. |
| 1987 | */ |
| 1988 | int |
| 1989 | pg_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. |
no outgoing calls
no test coverage detected