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

Description

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

Parameters

<binary> The binary string to be checked.

Return Value

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

Remarks

The BinaryIsLower function allows you to determine if a binary string consists entirely of lowercase 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 lowercase status of alphabetical characters within the binary string.

Related

BinaryIsUpper

Example

Example of usage:

say BinaryIsLower(Bin("Hello", 0, 0, 0));
say BinaryIsLower(Bin("Hello", 0, 0, 0));
say BinaryIsLower(Bin("hello", 0, 0, 0));
say BinaryIsLower(Bin("hello", 0, 0, 0));

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

 


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