* Returns the byte length of the character beginning at s, using the * specified encoding; but not more than the distance to end of string. */
| 1303 | * specified encoding; but not more than the distance to end of string. |
| 1304 | */ |
| 1305 | int |
| 1306 | PQmblenBounded(const char *s, int encoding) |
| 1307 | { |
| 1308 | return strnlen(s, pg_encoding_mblen(encoding, s)); |
| 1309 | } |
| 1310 | |
| 1311 | /* |
| 1312 | * Returns the display length of the character beginning at s, using the |
no test coverage detected