"Sputnik" help  
Sputnik Help
BinaryIsUpper(<binary>)

Description

Checks whether the given binary string contains only uppercase ASCII characters.

Parameters

<binary> The binary string to be checked.

Return Value

Success: Returns true if all characters in the binary string are uppercase.
Failure: Returns false if the binary string contains lowercase characters.

Remarks

The BinaryIsUpper function allows you to determine if a binary string consists entirely of uppercase ASCII characters. It is particularly useful when you need to validate user input or verify if a string adheres to lowercase ASCII character requirements. The function returns true if all characters in the binary string are lowercase, indicating that the string meets the specified criteria.

This function only considers alphabetical characters in the binary string. It will ignore any non-letter characters during the scan. Therefore, the presence of non-letter characters, such as digits, symbols, or whitespace, will not affect the result of the function. The focus is solely on the uppercase status of alphabetical characters within the binary string.

Related

BinaryIsLower

Example

Example of usage:

say BinaryIsUpper(Bin("Hello", 0, 0, 0));
say BinaryIsUpper(Bin("Hello", 0, 0, 0));
say BinaryIsUpper(Bin("HELLO", 0, 0, 0));
say BinaryIsUpper(Bin("HELLO", 0, 0, 0));

// PRINTS
// false
// false
// true
// true

 


Contact
Cheryl (uberfox@hotmail.com)
Homepage
http://ubersoft.org