* Returns the byte length of a multibyte character; but not more than * the distance to end of string. */
| 1977 | * the distance to end of string. |
| 1978 | */ |
| 1979 | int |
| 1980 | pg_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. |
no test coverage detected