Quick Links:

bal | bbl | bdl | bsl

Static Public Member Functions

bslstl::StringRefImp_CompareUtil Struct Reference

#include <bslstl_stringref.h>

List of all members.

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.

See Component bslstl_stringref


Member Function Documentation

template<class CHAR_TYPE >
static 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.

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

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.

template<class CHAR_TYPE >
static 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.


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