str_lowercase: str_uppercase, str_lowercases
Description
convert string to upper or lower case
Usage
str_lowercase(string)
str_lower_case(string)
str_lower(string)
str_decapitalize(string)
is_lowercase(string)
is_lower_case(string)
is_lower(string)
str_uppercase(string)
str_upper_case(string)
str_upper(string)
str_all_caps(string)
str_allcaps(string)
str_capitalize(string)
is_uppercase(string)
is_upper_case(string)
is_upper(string)
is_all_caps(string)
is_allcaps(string)
Arguments
string
character; argument to be converted
Upper Case and All Caps
uppercase, upper_case, allcaps,
all_caps are all synonyms. upper case or all caps
contains all capital letters.Lower Case
str_all_caps
is a synonym for str_uppercase
.
is_all_caps
is a synonym for is_upper_case
.Examples
Run this codestr_decapitalize( "ABC" ) # abc
# is_lower_case
is_lowercase( 'ABC123' ) # FALSE
is_lowercase( 'abc123' ) # TRUE
is_lowercase( 'aB' ) # FALSE
is_lowercase( '123' ) # TRUE
# str_uppercase
str_uppercase( "one flew over the cuckoo's nest" )
str_uppercase( "catch-22" )
str_capitalize( "abc" ) # ABC
str_all_caps( "abc" ) # ABC
# is_uppercase
is_uppercase( 'ABC123' ) # TRUE
is_uppercase( 'abc123' ) # FALSE
is_uppercase( 'aB' ) # FALSE
is_uppercase( '123' ) # TRUE
Run the code above in your browser using DataLab