activemq-cpp-3.9.0
decaf::internal::util::StringUtils Class Reference

#include <src/main/decaf/internal/util/StringUtils.h>

Public Member Functions

virtual ~StringUtils ()
 

Static Public Member Functions

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...
 

Constructor & Destructor Documentation

virtual decaf::internal::util::StringUtils::~StringUtils ( )
inlinevirtual

Member Function Documentation

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
leftThe left-hand string of the comparison.
rightThe 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
leftThe left-hand string of the comparison.
rightThe 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
stringThe C style string to check.
Returns
the length of the string if the size is < Integer::MAX_VALUE.
Exceptions
RuntimeExceptionif the length becomes larger than the max value of an int.

The documentation for this class was generated from the following file: