src/common/wchar.c
static int
pg_ascii_verifychar(const unsigned char *s, int len)
{
	return 1;
}
/*
 *-------------------------------------------------------------------
 * multibyte sequence validators
 *
 * The verifychar functions accept "s", a pointer to the first byte of a
 * string, and "len", the remaining length of the string.  If there is a
 * validly encoded character beginning at *s, return its length in bytes;
 * else return -1.
 *
 * The verifystr functions also accept "s", a pointer to a string and "len",
 * the length of the string.  They verify the whole string, and return the
 * number of input bytes (<= len) that are valid.  In other words, if the
 * whole string is valid, verifystr returns "len", otherwise it returns the
 * byte offset of the first invalid character.  The verifystr functions must
 * test for and reject zeroes in the input.
 *
 * The verifychar functions can assume that len > 0 and that *s != '\0', but
 * they must test for and reject zeroes in any additional bytes of a
 * multibyte character.  Note that this definition allows the function for a
 * single-byte encoding to be just "return 1".
 *-------------------------------------------------------------------
 */
multibyte sequence validators
The verifychar functions accept "s", a pointer to the first byte of a
string, and "len", the remaining length of the string.  If there is a
validly encoded character beginning at *s, return its length in bytes;
else return -1.

The verifystr functions also accept "s", a pointer to a string and "len",
the length of the string.  They verify the whole string, and return the
number of input bytes (<= len) that are valid.  In other words, if the
whole string is valid, verifystr returns "len", otherwise it returns the
byte offset of the first invalid character.  The verifystr functions must
test for and reject zeroes in the input.

The verifychar functions can assume that len > 0 and that *s != '\0', but
they must test for and reject zeroes in any additional bytes of a
multibyte character.  Note that this definition allows the function for a
single-byte encoding to be just "return 1".
multibyte sequence validators The verifychar functions accept " s " a pointer to the first byte of a string and " len " the remaining length of the string . If there is a validly encoded character beginning at * s return its length in bytes ; else return - 1 . The verifystr functions also accept " s " a pointer to a string and " len " the length of the string . They verify the whole string and return the number of input bytes ( < = len ) that are valid . In other words if the whole string is valid verifystr returns " len " otherwise it returns the byte offset of the first invalid character . The verifystr functions must test for and reject zeroes in the input . The verifychar functions can assume that len > 0 and that * s ! = ' \ 0 ' but they must test for and reject zeroes in any additional bytes of a multibyte character . Note that this definition allows the function for a single - byte encoding to be just " return 1 " .
static int
pg_ascii_verifychar(const unsigned char *s, int len)
{
	return 1;
}
static int pg_ascii_verifychar ( const unsigned char * s , int len ) { return 1 ; }
multibyte sequence validators
 The verifychar functions accept "s", a pointer to the first byte of a
 string, and "len", the remaining length of the string.
multibyte sequence validators The verifychar functions accept " s " a pointer to the first byte of a string and " len " the remaining length of the string .