Platforms to show: All Mac Windows Linux Cross-Platform

IsASCIIStringMBS(s as string) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
global method String MBS Util Plugin 7.7 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Checks if this string is an ASCII string.

False if one of the characters of the string has a numeric value of 128 or higher. (-> string is not a 7 bit ASCII string)
True if all bytes are in the valid ASCII range.

See also:

IsASCIIStringMBS(s as string, mode as Integer) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
global method String MBS Util Plugin 3.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Checks if this string is an ASCII string.

Does not work for 16bit unicode strings.
But it works fine with UTF8.

Mode values:
0False if one of the characters of the string has a numeric value of 128 or higher. (-> string is not a 7 bit ASCII string)
1False if one of the characters of the string has a numeric value >128 or <32. (-> string may not be printable in ASCII, which may require some kind of Base64 encoding to transfer it.)
2False if one of the characters of the string has a numeric value below 32. (-> string may contain line breaks or other control characters)
Added Linux support in v5.1.

See also:

The items on this page are in the following plugins: MBS Util Plugin.


The biggest plugin in space...