Checks whether a string contains any 16-bit wide characters.
||A string of one or more characters, enclosed in quotation marks.
is a boolean function used to check whether a string contains any 16-bit wide character values. It returns one of the following values:
||All characters have ASCII values 255 or less (8-bit characters). A null string ("") also returns 0.
||One or more characters have an ASCII value greater than 255 (wide characters).
checks the character values to determine if they are in the ASCII range (0-255), and thus could be represented by 8 bits, or in the wide character range (256-65535) and thus use all 16 bits of the Unicode character.
In the following example, the first two commands test strings that contain all narrow (8-bit) character values and return 0. The third command tests a string containing a wide character value (the second character), and therefore, returns 1:
This example returns 0,0,1
Content Date/Time: 2019-04-10 14:45:57