activemq-cpp-3.8.2
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 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

◆ ~StringUtils()

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

References compare(), and compareIgnoreCase().

Member Function Documentation

◆ compare()

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.

Referenced by ~StringUtils().

◆ compareIgnoreCase()

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.

Referenced by ~StringUtils().


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