StringComparator ================ .. cpp:class:: numpy::StringComparator numpy C++ class. Example ------- .. code-block:: cpp #include using namespace numpy; // Use StringComparator StringComparator obj; // ... operations ... Constructors ------------ .. list-table:: :widths: 55 25 20 :header-rows: 1 * - Signature - Location - Example * - ``StringComparator(StringComparePolicypolicy = StringComparePolicy::LEXICOGRAPHIC, const std::locale &loc = std::locale())`` - NP_STRING_SORT.H:107 - Operators --------- .. list-table:: :widths: 40 25 15 20 :header-rows: 1 * - Signature - Return Type - Location - Example * - ``bool operator()(const std::string &a, const std::string &b)`` - bool - NP_STRING_SORT.H:111 - Indexing / Selection -------------------- .. list-table:: :widths: 40 20 15 25 :header-rows: 1 * - Signature - Return Type - Location - Example * - ``const std::u32string & get_utf32(const std::string &str)`` - const std::u32string & - NP_STRING_SORT.H:200 - Other Methods ------------- .. list-table:: :widths: 40 20 15 25 :header-rows: 1 * - 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 -