xapian-core  1.4.27
Macros | Functions
sortable-serialise.cc File Reference

Serialise floating point values to string which sort the same way. More...

#include <config.h>
#include <xapian/queryparser.h>
#include <cfloat>
#include <cmath>
#include <cstring>
#include <string>
+ Include dependency graph for sortable-serialise.cc:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define UNITTEST_ASSERT_NOTHROW(COND, RET)
 

Functions

static unsigned char numfromstr (const std::string &str, std::string::size_type pos)
 Get a number from the character at a given position in a string, returning 0 if the string isn't long enough. More...
 

Detailed Description

Serialise floating point values to string which sort the same way.

Definition in file sortable-serialise.cc.

Macro Definition Documentation

◆ UNITTEST_ASSERT_NOTHROW

#define UNITTEST_ASSERT_NOTHROW (   COND,
  RET 
)

Function Documentation

◆ numfromstr()

static unsigned char numfromstr ( const std::string &  str,
std::string::size_type  pos 
)
inlinestatic

Get a number from the character at a given position in a string, returning 0 if the string isn't long enough.

Definition at line 179 of file sortable-serialise.cc.

Referenced by Xapian::sortable_unserialise().