Style
The group of style related methods allows you to 'style' a string and test the style of a string.
isLowerCase
The 'isLowerCase' method returns true if the 'string' contains no upper case characters. All other characters, digits etc are allowed.
If null is passed the 'string' is treated as an empty string and 'true' is returned.
extension
The 'isLowerCase' method is available as an extension to the String class
isPrintable
The isPrintable method returns true of 'character' is a printable character.
Whitespace characters are considered as non-printable.
isUpperCase
The 'isUpperCase' method returns true if the 'string' contains no lower case characters. All other characters, digits etc are allowed.
If null is passed the 'string' is treated as an empty string and 'true' is returned.
extension
The 'isUpperCase' method is available as an extension on the String class.
startsWithLowerCase
The 'startsWithLowerCase' method returns true if the 'string' starts with an lower case character.
If null is passed the 'string' is treated as an empty string and 'false' is returned.
extension
The method 'startsWithLowerCase' is available as an extension on the String class.
startsWithUpperCase
The 'startsWithUpperCase' method returns true if the 'string' starts with a lower case character.
If null is passed the 'string' is treated as an empty string and 'false' is returned.
extension
The method 'startsWithUpperCase' is available as an extension method on the String class.
toCamelCase
The 'toCamelCase' method converts the string
to camel case.
If 'lower' is set to true then the first chacter of the resulting string is lowercase.
If null is passed the 'string' is treated as an empty string and an empty string is returned.
extension
The 'toCamelCase' method is available as an extension on the String class.
toCapitalised
The 'toCapitalised' capitalises the first character of the 'string'.
If null is passed the 'string' is treated as an empty string and an empty string is returned.
extension
The 'toCapitialised' method is available as an extension on the String class.
toLowerCase
The 'toLowerCase' method converts the string
all lower case.
If null is passed the 'string' is treated as an empty string and an empty string is returned.
toProperCase
The 'toProperCase' method converts the string
to proper case where in the first letter of each word is capitalised.
If null is passed the 'string' is treated as an empty string and an empty string is returned.
toSnakeCase
The 'toSnakeCase' method converts the string
to snake case where each word is separated by an underscore and all characters are lower case.
If null is passed the 'string' is treated as an empty string and an empty string is returned.
extension
The 'toSnakeCase' method is available as an extension method on the String class.
Last updated