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

 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 decimal integer numeric expressions. More...
 
int32_t tkrzw::HexadecimalKeyComparator (std::string_view a, std::string_view b)
 Key comparator in the order of hexadecimal integer numeric expressions. More...
 
int32_t tkrzw::RealNumberKeyComparator (std::string_view a, std::string_view b)
 Key comparator in the order of decimal real number expressions. More...
 
int32_t tkrzw::SignedBigEndianKeyComparator (std::string_view a, std::string_view b)
 Key comparator in the order of big-endian binaries of signed integer numbers. More...
 
int32_t tkrzw::FloatBigEndianKeyComparator (std::string_view a, std::string_view b)
 Key comparator in the order of big-endian binaries of floating-point numbers. 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...
 
int32_t tkrzw::PairSignedBigEndianKeyComparator (std::string_view a, std::string_view b)
 Key comparator for serialized pair strings in the big-endian binary signed integer order. More...
 
int32_t tkrzw::PairFloatBigEndianKeyComparator (std::string_view a, std::string_view b)
 Key comparator for serialized pair strings in the big-endian binary floating-point number order. More...
 

Detailed Description

Built-in comparators for record keys.