|
Evo C++ Library v0.5.1
|
#include <evo/type.h>

Basic character type (char) – see CharT.
A basic Evo container for single-byte character values.
Public Types | |
| enum | Category |
| Character category. More... | |
| enum | Digit |
| Character digit type. More... | |
| typedef void | EvoNullableType |
| Identify as nullable type. More... | |
| typedef CharT< char > | This |
| This non-POD type More... | |
| typedef char | Type |
| Wrapped POD type. More... | |
Public Member Functions | |
| Char () | |
| Constructor. More... | |
| Char (const Char &val) | |
| Copy constructor. More... | |
| Char (char val) | |
| Constructor. More... | |
| int | compare (const Nullable< char > &val) const |
| Comparison. More... | |
| int | compare (char val) const |
| Comparison. More... | |
| char & | denull () |
| Clears null flag and returns value reference. More... | |
| bool | null () const |
| Get whether null. More... | |
| operator SafeBoolType () const | |
| Safe (explicit) evaluation as bool type. More... | |
| bool | operator! () const |
| Negation operator returns whether null or 0. More... | |
| bool | operator!= (const Nullable< char > &val) const |
| Inequality operator. More... | |
| bool | operator!= (char val) const |
| Inequality operator. More... | |
| const char & | operator* () const |
| Dereference for explicit conversion to underlying type (const). More... | |
| char & | operator* () |
| Dereference for explicit conversion to underlying type. More... | |
| bool | operator< (const Nullable< char > &val) const |
| Less than operator. More... | |
| bool | operator< (char val) const |
| Less than operator. More... | |
| bool | operator<= (const Nullable< char > &val) const |
| Less than or equal operator. More... | |
| bool | operator<= (char val) const |
| Less than or equal operator. More... | |
| Char & | operator= (const Char &val) |
| Assignment operator. More... | |
| Char & | operator= (char val) |
| Assignment operator. More... | |
| Char & | operator= (ValNull) |
| Assignment operator to set as null. More... | |
| bool | operator== (const Nullable< char > &val) const |
| Equality operator. More... | |
| bool | operator== (char val) const |
| Equality operator. More... | |
| bool | operator> (const Nullable< char > &val) const |
| Greater than operator. More... | |
| bool | operator> (char val) const |
| Greater than operator. More... | |
| bool | operator>= (const Nullable< char > &val) const |
| Greater than or equal operator. More... | |
| bool | operator>= (char val) const |
| Greater than or equal operator. More... | |
| Nullable< char > & | set () |
| Set as null. More... | |
| Nullable< char > & | set (const Nullable< char > &src) |
| Set as copy of given value. More... | |
| Nullable< char > & | set (char src) |
| Set as given value. More... | |
| bool | valid () const |
| Get whether valid (not null). More... | |
| const char & | value () const |
| Get underlying value (const). More... | |
| char & | value () |
| Get underlying value. More... | |
Static Public Member Functions | |
| static Category | category (char ch) |
| Get character category. More... | |
| static Digit | digit (char ch) |
| Get digit type for character. More... | |
| static bool | isalnum (char ch) |
| Check whether alphanumeric (A-Z, a-z, 0-9). More... | |
| static bool | isalpha (char ch) |
| Check whether alphabetic (A-Z, a-z). More... | |
| static bool | isdigit (char ch) |
| Check whether a digit (0-9). More... | |
| static bool | islower (char ch) |
| Check whether lowercase letter (a-z). More... | |
| static bool | isspace (char ch) |
| Check whether whitespace character (space, tab, newline, carrige return). More... | |
| static bool | isupper (char ch) |
| Check whether uppercase letter (A-Z). More... | |
Static Public Attributes | |
| static const int | BITS |
| Type size in bits (8) More... | |
| static const int | BYTES |
| Type size in bytes, usually 1. More... | |
|
inherited |
Identify as nullable type.
|
inherited |
Wrapped POD type.
|
inherited |
Character category.
|
inherited |
Character digit type.
|
inline |
Constructor.
|
inline |
Constructor.
| val | Value to set |
|
inlinestatic |
Get character category.
| ch | Character to check |
|
inlineinherited |
Comparison.
| val | Value to compare to |
|
inlineinherited |
Comparison.
| val | Value to compare to |
|
inlineinherited |
Clears null flag and returns value reference.
Nullable<bool> template specialization returns by value instead of reference
|
inlinestatic |
Get digit type for character.
| ch | Character to check |
|
inlinestatic |
Check whether alphanumeric (A-Z, a-z, 0-9).
| ch | Character to check |
|
inlinestatic |
Check whether alphabetic (A-Z, a-z).
| ch | Character to check |
|
inlinestatic |
Check whether a digit (0-9).
| ch | Character to check |
|
inlinestatic |
Check whether lowercase letter (a-z).
| ch | Character to check |
|
inlinestatic |
Check whether whitespace character (space, tab, newline, carrige return).
| ch | Character to check |
|
inlinestatic |
Check whether uppercase letter (A-Z).
| ch | Character to check |
|
inlineinherited |
Get whether null.
|
inlineinherited |
Safe (explicit) evaluation as bool type.
|
inlineinherited |
Negation operator returns whether null or 0.
Inequality operator.
| val | Value to compare to |
|
inlineinherited |
Inequality operator.
| val | Value to compare to |
|
inlineinherited |
Dereference for explicit conversion to underlying type (const).
Alternative to value().
|
inlineinherited |
Dereference for explicit conversion to underlying type.
Alternative to value().
|
inlineinherited |
Less than operator.
| val | Value to compare to |
val
|
inlineinherited |
Less than operator.
| val | Value to compare to |
val
|
inlineinherited |
Less than or equal operator.
| val | Value to compare to |
val, true if null
|
inlineinherited |
Less than or equal operator.
| val | Value to compare to |
val, true if null Assignment operator.
| val | Value to copy |
|
inline |
Assignment operator.
| val | Value to set |
|
inlineinherited |
Equality operator.
| val | Value to compare to |
|
inlineinherited |
Equality operator.
| val | Value to compare to |
|
inlineinherited |
Greater than operator.
| val | Value to compare to |
val, false if null
|
inlineinherited |
Greater than operator.
| val | Value to compare to |
val, false if null
|
inlineinherited |
Greater than or equal operator.
| val | Value to compare to |
val
|
inlineinherited |
Greater than or equal operator.
| val | Value to compare to |
val
|
inlineinherited |
Set as null.
Set as copy of given value.
| src | Source to copy |
|
inlineinherited |
Set as given value.
| src | Source to set |
|
inlineinherited |
Get whether valid (not null).
|
inlineinherited |
|
inlineinherited |
|
staticinherited |
Type size in bits (8)
|
staticinherited |
Type size in bytes, usually 1.
1.8.13