* Summary: Implementation of the XSLT number functions
* Description: Implementation of the XSLT number functions
* Copy: See Copyright for the status of this software.
* Author: Bjorn Reese <breese@users.sourceforge.net> and Daniel Veillard
#ifndef __XML_XSLT_NUMBERSINTERNALS_H__
#define __XML_XSLT_NUMBERSINTERNALS_H__
* This data structure is just a wrapper to pass xsl:number data in.
typedef struct _xsltNumberData xsltNumberData;
typedef xsltNumberData *xsltNumberDataPtr;
int groupingCharacterLen;
struct _xsltCompMatch *countPat;
struct _xsltCompMatch *fromPat;
* This data structure lists the various parameters needed to format numbers.
typedef struct _xsltFormatNumberInfo xsltFormatNumberInfo;
typedef xsltFormatNumberInfo *xsltFormatNumberInfoPtr;
struct _xsltFormatNumberInfo {
int integer_hash; /* Number of '#' in integer part */
int integer_digits; /* Number of '0' in integer part */
int frac_digits; /* Number of '0' in fractional part */
int frac_hash; /* Number of '#' in fractional part */
int group; /* Number of chars per display 'group' */
int multiplier; /* Scaling for percent or permille */
char add_decimal; /* Flag for whether decimal point appears in pattern */
char is_multiplier_set; /* Flag to catch multiple occurences of percent/permille */
char is_negative_pattern;/* Flag for processing -ve prefix/suffix */
#endif /* __XML_XSLT_NUMBERSINTERNALS_H__ */