Revision 18543,
1.7 KB
checked in by ghudson, 21 years ago
(diff) |
This commit was generated by cvs2svn to compensate for changes in r18542,
which included commits to RCS files with non-trunk default branches.
|
Line | |
---|
1 | /* |
---|
2 | * numbers.h: Implementation of the XSLT number functions |
---|
3 | * |
---|
4 | * See Copyright for the status of this software. |
---|
5 | * |
---|
6 | * daniel@veillard.com |
---|
7 | * Bjorn Reese <breese@users.sourceforge.net> |
---|
8 | */ |
---|
9 | |
---|
10 | #ifndef __XML_XSLT_NUMBERSINTERNALS_H__ |
---|
11 | #define __XML_XSLT_NUMBERSINTERNALS_H__ |
---|
12 | |
---|
13 | #include <libxml/tree.h> |
---|
14 | |
---|
15 | #ifdef __cplusplus |
---|
16 | extern "C" { |
---|
17 | #endif |
---|
18 | |
---|
19 | /** |
---|
20 | * xsltNumberData: |
---|
21 | * |
---|
22 | * This data structure is just a wrapper to pass xsl:number data in. |
---|
23 | */ |
---|
24 | typedef struct _xsltNumberData xsltNumberData; |
---|
25 | typedef xsltNumberData *xsltNumberDataPtr; |
---|
26 | |
---|
27 | struct _xsltNumberData { |
---|
28 | xmlChar *level; |
---|
29 | xmlChar *count; |
---|
30 | xmlChar *from; |
---|
31 | xmlChar *value; |
---|
32 | xmlChar *format; |
---|
33 | int has_format; |
---|
34 | int digitsPerGroup; |
---|
35 | int groupingCharacter; |
---|
36 | int groupingCharacterLen; |
---|
37 | xmlDocPtr doc; |
---|
38 | xmlNodePtr node; |
---|
39 | }; |
---|
40 | |
---|
41 | /** |
---|
42 | * xsltFormatNumberInfo,: |
---|
43 | * |
---|
44 | * This data structure lists the various parameters needed to format numbers. |
---|
45 | */ |
---|
46 | typedef struct _xsltFormatNumberInfo xsltFormatNumberInfo; |
---|
47 | typedef xsltFormatNumberInfo *xsltFormatNumberInfoPtr; |
---|
48 | |
---|
49 | struct _xsltFormatNumberInfo { |
---|
50 | int integer_hash; /* Number of '#' in integer part */ |
---|
51 | int integer_digits; /* Number of '0' in integer part */ |
---|
52 | int frac_digits; /* Number of '0' in fractional part */ |
---|
53 | int frac_hash; /* Number of '#' in fractional part */ |
---|
54 | int group; /* Number of chars per display 'group' */ |
---|
55 | int multiplier; /* Scaling for percent or permille */ |
---|
56 | char add_decimal; /* Flag for whether decimal point appears in pattern */ |
---|
57 | char is_multiplier_set; /* Flag to catch multiple occurences of percent/permille */ |
---|
58 | char is_negative_pattern;/* Flag for processing -ve prefix/suffix */ |
---|
59 | }; |
---|
60 | |
---|
61 | #ifdef __cplusplus |
---|
62 | } |
---|
63 | #endif |
---|
64 | #endif /* __XML_XSLT_NUMBERSINTERNALS_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.