StringComparator#

class numpy::StringComparator#

numpy C++ class.

Example#

#include <numpy/np_ndarray.h>
using namespace numpy;

// Use StringComparator
StringComparator obj;
// ... operations ...

Constructors#

Signature

Location

Example

StringComparator(StringComparePolicypolicy = StringComparePolicy::LEXICOGRAPHIC, const std::locale &loc = std::locale())

NP_STRING_SORT.H:107

Operators#

Signature

Return Type

Location

Example

bool operator()(const std::string &a, const std::string &b)

bool

NP_STRING_SORT.H:111

Indexing / Selection#

Signature

Return Type

Location

Example

const std::u32string & get_utf32(const std::string &str)

const std::u32string &

NP_STRING_SORT.H:200

Other Methods#

Signature

Return Type

Location

Example

bool case_insensitive_compare(const std::string &a, const std::string &b)

bool

NP_STRING_SORT.H:138

bool lexicographic_compare(const std::string &a, const std::string &b)

bool

NP_STRING_SORT.H:134

bool locale_compare(const std::string &a, const std::string &b)

bool

NP_STRING_SORT.H:187

bool natural_compare(const std::string &a, const std::string &b)

bool

NP_STRING_SORT.H:148

bool unicode_compare(const std::string &a, const std::string &b)

bool

NP_STRING_SORT.H:193