|
Bond 0.9
Bond Standard Library API Documentation
|
Functions for classifying and converting characters. More...
Functions | |
| bool | Bond::IsAlnum (int c) |
| Returns whether a character is an ASCII alphanumeric character (i.e. a decimal digit or an upper or lower case letter). | |
| bool | Bond::IsAlpha (int c) |
| Returns whether a character is an ASCII alphabetic character (i.e. an upper or lower case letter). | |
| bool | Bond::IsBlank (int c) |
| Returns whether a character is an ASCII blank character (i.e. a space or a horizontal tab). | |
| bool | Bond::IsCntrl (int c) |
| Returns whether a character is an ASCII control character (i.e. 0 through 31 or 127). | |
| bool | Bond::IsDigit (int c) |
| Returns whether a character is an ASCII decimal digit. | |
| bool | Bond::IsGraph (int c) |
| Returns whether a character is an ASCII character with a graphical representation (i.e. it is printable and is not a space). | |
| bool | Bond::IsLower (int c) |
| Returns whether a character is an ASCII lower case letter. | |
| bool | Bond::IsPrint (int c) |
| Returns whether a character is a printable ASCII character (i.e. a graphical character or a space). | |
| bool | Bond::IsPunct (int c) |
| Returns whether a character is an ASCII punctuation character (i.e. a graphical character that is not alphanumeric). | |
| bool | Bond::IsSpace (int c) |
| Returns whether a character is an ASCII whitespace character (i.e. a space, horizontal tab, newline, vertical tab, form feed or carriage return). | |
| bool | Bond::IsUpper (int c) |
| Returns whether a character is an ASCII upper case letter. | |
| bool | Bond::IsXDigit (int c) |
| Returns whether a character is an ASCII hexadecimal digit (i.e. the digits 0 through 9 and upper and lower case letters A through F). | |
| int | Bond::ToLower (int c) |
| Returns an ASCII upper case letter converted to lower case. If the given character is not an ASCII upper case letter, it is returned unchanged. | |
| int | Bond::ToUpper (int c) |
| Returns an ASCII lower case letter converted to upper case. If the given character is not an ASCII lower case letter, it is returned unchanged. | |
Functions for classifying and converting characters.
Only ASCII characters (values 0 through 127) are classified. All other values, including the negative char values of the bytes of multi-byte UTF-8 sequences, are not members of any class and are returned unchanged by the conversion functions. The results do not depend on the locale.
| bool Bond::IsAlnum | ( | int | c | ) |
Returns whether a character is an ASCII alphanumeric character (i.e. a decimal digit or an upper or lower case letter).
| c | The character to classify. |
| bool Bond::IsAlpha | ( | int | c | ) |
Returns whether a character is an ASCII alphabetic character (i.e. an upper or lower case letter).
| c | The character to classify. |
| bool Bond::IsBlank | ( | int | c | ) |
Returns whether a character is an ASCII blank character (i.e. a space or a horizontal tab).
| c | The character to classify. |
| bool Bond::IsCntrl | ( | int | c | ) |
Returns whether a character is an ASCII control character (i.e. 0 through 31 or 127).
| c | The character to classify. |
| bool Bond::IsDigit | ( | int | c | ) |
Returns whether a character is an ASCII decimal digit.
| c | The character to classify. |
| bool Bond::IsGraph | ( | int | c | ) |
Returns whether a character is an ASCII character with a graphical representation (i.e. it is printable and is not a space).
| c | The character to classify. |
| bool Bond::IsLower | ( | int | c | ) |
Returns whether a character is an ASCII lower case letter.
| c | The character to classify. |
| bool Bond::IsPrint | ( | int | c | ) |
Returns whether a character is a printable ASCII character (i.e. a graphical character or a space).
| c | The character to classify. |
| bool Bond::IsPunct | ( | int | c | ) |
Returns whether a character is an ASCII punctuation character (i.e. a graphical character that is not alphanumeric).
| c | The character to classify. |
| bool Bond::IsSpace | ( | int | c | ) |
Returns whether a character is an ASCII whitespace character (i.e. a space, horizontal tab, newline, vertical tab, form feed or carriage return).
| c | The character to classify. |
| bool Bond::IsUpper | ( | int | c | ) |
Returns whether a character is an ASCII upper case letter.
| c | The character to classify. |
| bool Bond::IsXDigit | ( | int | c | ) |
Returns whether a character is an ASCII hexadecimal digit (i.e. the digits 0 through 9 and upper and lower case letters A through F).
| c | The character to classify. |
| int Bond::ToLower | ( | int | c | ) |
Returns an ASCII upper case letter converted to lower case. If the given character is not an ASCII upper case letter, it is returned unchanged.
| c | The character to convert. |
| int Bond::ToUpper | ( | int | c | ) |
Returns an ASCII lower case letter converted to upper case. If the given character is not an ASCII lower case letter, it is returned unchanged.
| c | The character to convert. |