BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bslstl::StringRefImp_CompareUtil Struct Reference

#include <bslstl_stringref.h>

Static Public Member Functions

template<class CHAR_TYPE >
static int compare (const StringRefImp< CHAR_TYPE > &a, const CHAR_TYPE *b)
 
template<class CHAR_TYPE >
static bool compareEqual (const StringRefImp< CHAR_TYPE > &a, const StringRefImp< CHAR_TYPE > &b)
 
template<class CHAR_TYPE >
static bool compareEqual (const StringRefImp< CHAR_TYPE > &a, const CHAR_TYPE *b)
 

Detailed Description

[PRIVATE] This class provides a namespace for private comparison implementation functions.

Member Function Documentation

◆ compare()

template<class CHAR_TYPE >
int bslstl::StringRefImp_CompareUtil::compare ( const StringRefImp< CHAR_TYPE > &  a,
const CHAR_TYPE *  b 
)
static

Compare the specified string object a with the specified null-terminated C-string b using a lexicographical comparison and return a negative value if a is less than b, a positive value if a is greater than b, and 0 if a is equal to b.

◆ compareEqual() [1/2]

template<class CHAR_TYPE >
bool bslstl::StringRefImp_CompareUtil::compareEqual ( const StringRefImp< CHAR_TYPE > &  a,
const CHAR_TYPE *  b 
)
static

Return true if the specified a is equal to the specified null-terminated C-string b and false otherwise. Note that this function is more efficient than compare for non-lexicographical equality comparisons.

◆ compareEqual() [2/2]

template<class CHAR_TYPE >
bool bslstl::StringRefImp_CompareUtil::compareEqual ( const StringRefImp< CHAR_TYPE > &  a,
const StringRefImp< CHAR_TYPE > &  b 
)
inlinestatic

Return true if the specified a is equal to b and false otherwise. Note that this function is more efficient than compare for non-lexicographical equality comparisons.


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