4#ifndef RUDIMENTS_COMPARATOR_H
5#define RUDIMENTS_COMPARATOR_H
7#include <rudiments/private/inttypes.h>
60 virtual int32_t
compare(
char *value1,
char *value2);
65 virtual int32_t
compare(
const char *value1,
71 virtual int32_t
compare(
wchar_t *value1,
wchar_t *value2);
76 virtual int32_t
compare(
const wchar_t *value1,
77 const wchar_t *value2);
82 virtual int32_t
compare(byte_t *value1, byte_t *value2);
87 virtual int32_t
compare(
const byte_t *value1,
88 const byte_t *value2);
93 virtual int32_t
compare(
char value1,
char value2);
98 virtual int32_t
compare(
bool value1,
bool value2);
103 virtual int32_t
compare(int16_t value1, int16_t value2);
108 virtual int32_t
compare(int32_t value1, int32_t value2);
113 virtual int32_t
compare(int64_t value1, int64_t value2);
118 virtual int32_t
compare(byte_t value1, byte_t value2);
123 virtual int32_t
compare(uint16_t value1, uint16_t value2);
128 virtual int32_t
compare(uint32_t value1, uint32_t value2);
133 virtual int32_t
compare(uint64_t value1, uint64_t value2);
138 virtual int32_t
compare(
float value1,
float value2);
143 virtual int32_t
compare(
double value1,
double value2);
148 virtual int32_t
compare(
long double value1,
154 virtual int32_t
compare(
void *value1,
void *value2);
159 virtual int32_t
compare(
object *value1,
object *value2);
161 #include <rudiments/private/comparator.h>
164#include <rudiments/private/comparatorinlines.h>
Definition comparator.h:11
void setNumberDelimiters(const char *delimiters)
Definition comparatorinlines.h:41
void setReverse(bool reverse)
Definition comparatorinlines.h:21
const char * getNumberDelimiters()
Definition comparatorinlines.h:46
bool getNatural()
Definition comparatorinlines.h:36
const wchar_t * getWideNumberDelimiters()
Definition comparatorinlines.h:56
void setWideNumberDelimiters(const wchar_t *delimiters)
Definition comparatorinlines.h:51
comparator()
Definition comparatorinlines.h:9
bool getReverse()
Definition comparatorinlines.h:26
virtual ~comparator()
Definition comparatorinlines.h:17
virtual int32_t compare(char *value1, char *value2)
Definition comparatorinlines.h:61
void setNatural(bool natural)
Definition comparatorinlines.h:31