#include <src/main/decaf/internal/util/StringUtils.h>
|
static int | stringLength (const char *string) |
| Returns the length of the given C string. More...
|
|
static int | compareIgnoreCase (const char *left, const char *right) |
| Perform a comparison between two strings using natural ordering and ignoring case. More...
|
|
static int | compare (const char *left, const char *right) |
| Perform a comparison between two strings using natural ordering case is not ignored here, so two otherwise equal string will not match if case differes. More...
|
|
virtual decaf::internal::util::StringUtils::~StringUtils |
( |
| ) |
|
|
inlinevirtual |
static int decaf::internal::util::StringUtils::compare |
( |
const char * |
left, |
|
|
const char * |
right |
|
) |
| |
|
static |
Perform a comparison between two strings using natural ordering case is not ignored here, so two otherwise equal string will not match if case differes.
- Parameters
-
left | The left-hand string of the comparison. |
right | The right-hand string of the comparison. |
- Returns
- a negative integer, zero, or a positive integer as the specified string is greater than, equal to, or less than this String, ignoring case considerations.
static int decaf::internal::util::StringUtils::compareIgnoreCase |
( |
const char * |
left, |
|
|
const char * |
right |
|
) |
| |
|
static |
Perform a comparison between two strings using natural ordering and ignoring case.
- Parameters
-
left | The left-hand string of the comparison. |
right | The right-hand string of the comparison. |
- Returns
- a negative integer, zero, or a positive integer as the specified string is greater than, equal to, or less than this String, ignoring case considerations.
static int decaf::internal::util::StringUtils::stringLength |
( |
const char * |
string | ) |
|
|
static |
Returns the length of the given C string.
- Parameters
-
string | The C style string to check. |
- Returns
- the length of the string if the size is < Integer::MAX_VALUE.
- Exceptions
-
RuntimeException | if the length becomes larger than the max value of an int. |
The documentation for this class was generated from the following file: