sbLeadingNumbers.h File Reference

Leading Numbers Parsing. More...

#include <prtypes.h>
#include <math.h>
Include dependency graph for sbLeadingNumbers.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CHARTYPE_OTHER   0
 
#define CHARTYPE_DIGIT   1
 
#define CHARTYPE_DECIMALPOINT   2
 
#define CHARTYPE_SIGN   3
 
#define CHARTYPE_EXPONENT   4
 

Functions

template<class CHARTYPE >
PRInt32 SB_GetCharType (const CHARTYPE *p)
 
template<class CHARTYPE >
void SB_ExtractLeadingNumber (const CHARTYPE *str, PRBool *hasLeadingNumber, PRFloat64 *leadingNumber, PRInt32 *numberLength)
 
template<class CHARTYPE >
PRInt32 SB_FindNextNumber (const CHARTYPE *aStr)
 

Detailed Description

Leading Numbers Parsing.

Definition in file sbLeadingNumbers.h.

Macro Definition Documentation

#define CHARTYPE_DECIMALPOINT   2

Definition at line 56 of file sbLeadingNumbers.h.

#define CHARTYPE_DIGIT   1

Definition at line 55 of file sbLeadingNumbers.h.

#define CHARTYPE_EXPONENT   4

Definition at line 58 of file sbLeadingNumbers.h.

#define CHARTYPE_OTHER   0

Definition at line 54 of file sbLeadingNumbers.h.

#define CHARTYPE_SIGN   3

Definition at line 57 of file sbLeadingNumbers.h.

Function Documentation

template<class CHARTYPE >
void SB_ExtractLeadingNumber ( const CHARTYPE *  str,
PRBool *  hasLeadingNumber,
PRFloat64 *  leadingNumber,
PRInt32 *  numberLength 
)
inline

Definition at line 78 of file sbLeadingNumbers.h.

Here is the call graph for this function:

template<class CHARTYPE >
PRInt32 SB_FindNextNumber ( const CHARTYPE *  aStr)
inline

Definition at line 251 of file sbLeadingNumbers.h.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class CHARTYPE >
PRInt32 SB_GetCharType ( const CHARTYPE *  p)
inline

Definition at line 60 of file sbLeadingNumbers.h.

Here is the caller graph for this function: