Tkrzw
Namespaces | Typedefs | Functions
tkrzw_key_comparators.h File Reference

Built-in comparators for record keys. More...

#include <atomic>
#include <memory>
#include <mutex>
#include <set>
#include <cinttypes>
#include <cstring>
#include "tkrzw_lib_common.h"
#include "tkrzw_str_util.h"

Namespaces

namespace  tkrzw
 Common namespace of Tkrzw.
 

Typedefs

typedef int32_t(* tkrzw::KeyComparator) (std::string_view, std::string_view)
 Interfrace of comparator of record keys. More...
 

Functions

int32_t tkrzw::LexicalKeyComparator (std::string_view a, std::string_view b)
 Key comparator in the lexical order. More...
 
int32_t tkrzw::LexicalCaseKeyComparator (std::string_view a, std::string_view b)
 Key comparator in the lexical order ignoring case. More...
 
int32_t tkrzw::DecimalKeyComparator (std::string_view a, std::string_view b)
 Key comparator in the order of the decimal integer numeric expressions. More...
 
int32_t tkrzw::HexadecimalKeyComparator (std::string_view a, std::string_view b)
 Key comparator in the order of the hexadecimal integer numeric expressions. More...
 
int32_t tkrzw::RealNumberKeyComparator (std::string_view a, std::string_view b)
 Key comparator in the order of the decimal real number expressions. More...
 
int32_t tkrzw::PairLexicalKeyComparator (std::string_view a, std::string_view b)
 Key comparator for serialized pair strings in the lexical order. More...
 
int32_t tkrzw::PairLexicalCaseKeyComparator (std::string_view a, std::string_view b)
 Key comparator for serialized pair strings in the lexical order ignoring case. More...
 
int32_t tkrzw::PairDecimalKeyComparator (std::string_view a, std::string_view b)
 Key comparator for serialized pair strings in the decimal integer order. More...
 
int32_t tkrzw::PairHexadecimalKeyComparator (std::string_view a, std::string_view b)
 Key comparator for serialized pair strings in the hexadecimal integer order. More...
 
int32_t tkrzw::PairRealNumberKeyComparator (std::string_view a, std::string_view b)
 Key comparator for serialized pair strings in the decimal real number order. More...
 

Detailed Description

Built-in comparators for record keys.