2 * Summary: Implementation of the XSLT number functions
3 * Description: Implementation of the XSLT number functions
5 * Copy: See Copyright for the status of this software.
7 * Author: Bjorn Reese <breese@users.sourceforge.net> and Daniel Veillard
10 #ifndef __XML_XSLT_NUMBERSINTERNALS_H__
11 #define __XML_XSLT_NUMBERSINTERNALS_H__
13 #include <libxml/tree.h>
14 #include "xsltexports.h"
23 * This data structure is just a wrapper to pass xsl:number data in.
25 typedef struct _xsltNumberData xsltNumberData
;
26 typedef xsltNumberData
*xsltNumberDataPtr
;
28 struct _xsltNumberData
{
33 const xmlChar
*format
;
36 int groupingCharacter
;
37 int groupingCharacterLen
;
47 * xsltFormatNumberInfo,:
49 * This data structure lists the various parameters needed to format numbers.
51 typedef struct _xsltFormatNumberInfo xsltFormatNumberInfo
;
52 typedef xsltFormatNumberInfo
*xsltFormatNumberInfoPtr
;
54 struct _xsltFormatNumberInfo
{
55 int integer_hash
; /* Number of '#' in integer part */
56 int integer_digits
; /* Number of '0' in integer part */
57 int frac_digits
; /* Number of '0' in fractional part */
58 int frac_hash
; /* Number of '#' in fractional part */
59 int group
; /* Number of chars per display 'group' */
60 int multiplier
; /* Scaling for percent or permille */
61 char add_decimal
; /* Flag for whether decimal point appears in pattern */
62 char is_multiplier_set
; /* Flag to catch multiple occurences of percent/permille */
63 char is_negative_pattern
;/* Flag for processing -ve prefix/suffix */
69 #endif /* __XML_XSLT_NUMBERSINTERNALS_H__ */