* Returns the byte length of the character beginning at s, using the * specified encoding. * * Caution: when dealing with text that is not certainly valid in the * specified encoding, the result may exceed the actual remaining * string length. Callers that are not prepared to deal with that * should use PQmblenBounded() instead. */
| 1293 | * should use PQmblenBounded() instead. |
| 1294 | */ |
| 1295 | int |
| 1296 | PQmblen(const char *s, int encoding) |
| 1297 | { |
| 1298 | return pg_encoding_mblen(encoding, s); |
| 1299 | } |
| 1300 | |
| 1301 | /* |
| 1302 | * Returns the byte length of the character beginning at s, using the |
no test coverage detected