src/common/wchar.c
int
pg_encoding_verifymbstr(int encoding, const char *mbstr, int len)
{
	return (PG_VALID_ENCODING(encoding) ?
			pg_wchar_table[encoding].mbverifystr((const unsigned char *) mbstr, len) :
			pg_wchar_table[PG_SQL_ASCII].mbverifystr((const unsigned char *) mbstr, len));
}
/*
 * Verify that a string is valid for the given encoding.
 * Returns the number of input bytes (<= len) that form a valid string.
 * (See comments above for full details of the mbverifystr API.)
 */
Verify that a string is valid for the given encoding.
Returns the number of input bytes (<= len) that form a valid string.
(See comments above for full details of the mbverifystr API.)
Verify that a string is valid for the given encoding . Returns the number of input bytes ( < = len ) that form a valid string . ( See comments above for full details of the mbverifystr API . )
int
pg_encoding_verifymbstr(int encoding, const char *mbstr, int len)
{
	return (PG_VALID_ENCODING(encoding) ?
			pg_wchar_table[encoding].mbverifystr((const unsigned char *) mbstr, len) :
			pg_wchar_table[PG_SQL_ASCII].mbverifystr((const unsigned char *) mbstr, len));
}
int pg_encoding_verifymbstr ( int encoding , const char * mbstr , int len ) { return ( PG_VALID_ENCODING ( encoding ) ? pg_wchar_table [ encoding ] . mbverifystr ( ( const unsigned char * ) mbstr , len ) : pg_wchar_table [ PG_SQL_ASCII ] . mbverifystr ( ( const unsigned char * ) mbstr , len ) ) ; }
Verify that a string is valid for the given encoding.
Verify that a string is valid for the given encoding .