* Encoding validation: delete any unvalidatable characters from the string * * This seems redundant with existing functionality elsewhere? */
| 389 | * This seems redundant with existing functionality elsewhere? |
| 390 | */ |
| 391 | unsigned char * |
| 392 | mbvalidate(unsigned char *pwcs, int encoding) |
| 393 | { |
| 394 | if (encoding == PG_UTF8) |
| 395 | mb_utf_validate(pwcs); |
| 396 | else |
| 397 | { |
| 398 | /* |
| 399 | * other encodings needing validation should add their own routines |
| 400 | * here |
| 401 | */ |
| 402 | } |
| 403 | |
| 404 | return pwcs; |
| 405 | } |
no test coverage detected