14.5.1 Character classes

Function: mbfl_string_is_alpha_char CHAR

Return true if CHAR is in one of the ranges: ‘[a-z]’, ‘[A-Z]’.

Function: mbfl_string_is_digit_char CHAR

Return true if CHAR is in the range: 0-9.

Function: mbfl_string_is_alnum_char CHAR

Return true if:

mbfl_string_is_alpha_char CHAR || \
   mbfl_string_is_digit_char CHAR
Function: mbfl_string_is_noblank_char CHAR

Return true if CHAR is none of the characters: ‘ ’, ‘\n’, ‘\r’, ‘\f’, ‘\t’. CHAR is meant to be the unquoted version of the non–blank characters, the one obtained with:

$'CHAR'
Function: mbfl_string_is_name_char CHAR

Return true if mbfl_string_is_alnum_char() returns true when applied to CHAR or CHAR is an underscore, ‘_’.

Function: mbfl_string_is_identifier_char CHAR

Return true if mbfl_string_is_alnum_char() returns true when applied to CHAR or CHAR is an underscore, ‘_’, or dash, ‘-’.

Function: mbfl_string_is_extended_identifier_char CHAR

Like mbfl_string_is_identifier_char(), but also accept dots ‘.’.

Function: mbfl_string_is_ascii_symbol_char CHAR

Return true if CHAR is in the following set, otherwise return false:

. , : ;
{ [ ( ) ] }
_
= < > ~
+ - * / %
& $ ! ?
" ' ` ^
| #  
Function: mbfl_string_is_lower_case_vowel_char CHAR

Return true if CHAR is in the following set, otherwise return false:

a e i o u y
Function: mbfl_string_is_lower_case_consonant_char CHAR

Return true if CHAR is in the following set, otherwise return false:

b c d f g h j k l m n p q r s t v w x z
Function: mbfl_string_is_lower_case_consonant_char CHAR

Return true if CHAR is in the following set, otherwise return false:

b c d f g h j k l m n p q r s t v w x z
Function: mbfl_string_is_lower_case_alphabet_char CHAR

Return true if CHAR is in the following set, otherwise return false:

a b c d e f g h i j k l m n o p q r s t u v w x y z
Function: mbfl_string_is_lower_case_alnum_char CHAR

Return true if CHAR is in the following set, otherwise return false:

a b c d e f g h i j k l m n o p q r s t u v w x y z
0 1 2 3 4 5 6 7 8 9
Function: mbfl_string_is_upper_case_vowel_char CHAR

Return true if CHAR is in the following set, otherwise return false:

A E I O U Y
Function: mbfl_string_is_upper_case_consonant_char CHAR

Return true if CHAR is in the following set, otherwise return false:

B C D F G H J K L M N P Q R S T V W X Z
Function: mbfl_string_is_upper_case_alphabet_char CHAR

Return true if CHAR is in the following set, otherwise return false:

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Function: mbfl_string_is_upper_case_alnum_char CHAR

Return true if CHAR is in the following set, otherwise return false:

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
0 1 2 3 4 5 6 7 8 9
Function: mbfl_string_is_upper_case_base16_char CHAR

Return true if CHAR is in the following set, otherwise return false:

A B C D E F 0 1 2 3 4 5 6 7 8 9
Function: mbfl_string_is_mixed_case_vowel_char CHAR

Return true if CHAR is in the following set, otherwise return false:

a e i o u y
A E I O U Y
Function: mbfl_string_is_mixed_case_consonant_char CHAR

Return true if CHAR is in the following set, otherwise return false:

b c d f g h j k l m n p q r s t v w x z
B C D F G H J K L M N P Q R S T V W X Z
Function: mbfl_string_is_mixed_case_alphabet_char CHAR

Return true if CHAR is in the following set, otherwise return false:

a b c d e f g h i j k l m n o p q r s t u v w x y z
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

This is equivalent to mbfl_string_is_alpha_char().

Function: mbfl_string_is_mixed_case_alnum_char CHAR

Return true if CHAR is in the following set, otherwise return false:

a b c d e f g h i j k l m n o p q r s t u v w x y z
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
0 1 2 3 4 5 6 7 8 9

This is equivalent to mbfl_string_is_alnum_char().

Function: mbfl_string_is_mixed_case_base16_char CHAR

Return true if CHAR is in the following set, otherwise return false:

A B C D E F
a b c d e f
0 1 2 3 4 5 6 7 8 9
Function: mbfl_string_is_base32_char CHAR

Return true if CHAR is in the following set, otherwise return false:

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
2 3 4 5 6 7

according to RFC 4648, without padding character, as described in:

Function: mbfl_string_is_base64_char CHAR

Return true if CHAR is in the following set, otherwise return false:

a b c d e f g h i j k l m n o p q r s t u v w x y z
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
0 1 2 3 4 5 6 7 8 9
+ /

according to RFC 4648, without padding character, as described in:

Function: mbfl_string_is_printable_ascii_noblank_char CHAR

Return true if CHAR is in the following set, otherwise return false:

a b c d e f g h i j k l m n o p q r s t u v w x y z
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
0 1 2 3 4 5 6 7 8 9
. , : ;
{ [ ( ) ] }
_
= < > ~
+ - * / %
& $ ! ?
" ' ` ^
| #  

This document describes version 3.0.0-devel.9 of Marcos Bash Functions Library.