xapian-core  1.4.27
Functions
parseint.h File Reference

Parse signed and unsigned type from string and check for trailing characters. More...

#include "overflow.h"
#include <limits>
+ Include dependency graph for parseint.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename T >
bool parse_unsigned (const char *p, T &res)
 
template<typename T >
bool parse_signed (const char *p, T &res)
 

Detailed Description

Parse signed and unsigned type from string and check for trailing characters.

Definition in file parseint.h.

Function Documentation

◆ parse_signed()

template<typename T >
bool parse_signed ( const char *  p,
T &  res 
)

Definition at line 43 of file parseint.h.

References parse_unsigned().

Referenced by Xapian::Internal::closefrom(), and parsesigned_helper().

◆ parse_unsigned()

template<typename T >
bool parse_unsigned ( const char *  p,
T &  res 
)

Definition at line 28 of file parseint.h.

References add_overflows(), and mul_overflows().

Referenced by parse_signed(), and parseunsigned_helper().