String: IsASCIIStringMBS

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

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.


💬 Ask a question or report a problem