lean cpp library
A lean C++ library providing efficient utility classes for high-performance C++ applications.
|
Provides common null-terminated character range functionality for the given character type. The default implementation treats characters as arbitrary POD types. More...
#include <char_traits.h>
Public Types | |
typedef Char | char_type |
Character type. | |
typedef int_type < sign_class::no_sign, sizeof(char_type)> ::type | int_type |
Unsigned integer type of range equal to or greater than char_type's. | |
typedef size_t | size_type |
Size type. | |
Static Public Member Functions | |
static LEAN_INLINE bool | null (const char_type &src) |
Checks if the given character is null. | |
static LEAN_INLINE bool | empty (const char_type *begin) |
Checks if the given null-terminated range of characters is empty. | |
static size_type | length (const char_type *begin) |
Gets the length of the given null-terminated range of characters. | |
static LEAN_INLINE size_type | count (const char_type *begin) |
Gets the number of code points in the given null-terminated range of characters. | |
static LEAN_INLINE size_type | count (const char_type *begin, const char_type *end) |
Gets the number of code points in the given null-terminated range of characters. | |
static bool | equal (const char_type *begin1, const char_type *begin2) |
Compares the characters in the given null-terminated ranges, returning true if equal. | |
static bool | less (const char_type *begin1, const char_type *begin2) |
Compares the characters in the given null-terminated ranges, returning true if the first is less than the second. |
Provides common null-terminated character range functionality for the given character type. The default implementation treats characters as arbitrary POD types.