api/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 <string>
#include "omassert.h"

Include dependency graph for sortable-serialise.cc:

Go to the source code of this file.

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.


Detailed Description

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

Definition in file sortable-serialise.cc.


Function Documentation

static unsigned char numfromstr ( const std::string &  str,
std::string::size_type  pos 
) [inline, static]

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 170 of file sortable-serialise.cc.

Referenced by Xapian::sortable_unserialise().


Documentation for Xapian (version 1.2.8).
Generated on 14 Dec 2011 by Doxygen 1.5.9.