#include <bslstl_stringref.h>
[PRIVATE] This class provides a namespace for private comparison implementation functions.
See bslstl_stringref
◆ 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
- 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
- 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: