OLD | NEW |
1 /* | 1 /* |
2 * Summary: Implementation of the XSLT number functions | 2 * Summary: Implementation of the XSLT number functions |
3 * Description: Implementation of the XSLT number functions | 3 * Description: Implementation of the XSLT number functions |
4 * | 4 * |
5 * Copy: See Copyright for the status of this software. | 5 * Copy: See Copyright for the status of this software. |
6 * | 6 * |
7 * Author: Bjorn Reese <breese@users.sourceforge.net> and Daniel Veillard | 7 * Author: Bjorn Reese <breese@users.sourceforge.net> and Daniel Veillard |
8 */ | 8 */ |
9 | 9 |
10 #ifndef __XML_XSLT_NUMBERSINTERNALS_H__ | 10 #ifndef __XML_XSLT_NUMBERSINTERNALS_H__ |
11 #define __XML_XSLT_NUMBERSINTERNALS_H__ | 11 #define __XML_XSLT_NUMBERSINTERNALS_H__ |
12 | 12 |
13 #include <libxml/tree.h> | 13 #include <libxml/tree.h> |
14 #include "xsltexports.h" | 14 #include "xsltexports.h" |
15 | 15 |
16 #ifdef __cplusplus | 16 #ifdef __cplusplus |
17 extern "C" { | 17 extern "C" { |
18 #endif | 18 #endif |
19 | 19 |
| 20 struct _xsltCompMatch; |
| 21 |
20 /** | 22 /** |
21 * xsltNumberData: | 23 * xsltNumberData: |
22 * | 24 * |
23 * This data structure is just a wrapper to pass xsl:number data in. | 25 * This data structure is just a wrapper to pass xsl:number data in. |
24 */ | 26 */ |
25 typedef struct _xsltNumberData xsltNumberData; | 27 typedef struct _xsltNumberData xsltNumberData; |
26 typedef xsltNumberData *xsltNumberDataPtr; | 28 typedef xsltNumberData *xsltNumberDataPtr; |
27 | 29 |
28 struct _xsltNumberData { | 30 struct _xsltNumberData { |
29 const xmlChar *level; | 31 const xmlChar *level; |
30 const xmlChar *count; | 32 const xmlChar *count; |
31 const xmlChar *from; | 33 const xmlChar *from; |
32 const xmlChar *value; | 34 const xmlChar *value; |
33 const xmlChar *format; | 35 const xmlChar *format; |
34 int has_format; | 36 int has_format; |
35 int digitsPerGroup; | 37 int digitsPerGroup; |
36 int groupingCharacter; | 38 int groupingCharacter; |
37 int groupingCharacterLen; | 39 int groupingCharacterLen; |
38 xmlDocPtr doc; | 40 xmlDocPtr doc; |
39 xmlNodePtr node; | 41 xmlNodePtr node; |
| 42 struct _xsltCompMatch *countPat; |
| 43 struct _xsltCompMatch *fromPat; |
40 | 44 |
41 /* | 45 /* |
42 * accelerators | 46 * accelerators |
43 */ | 47 */ |
44 }; | 48 }; |
45 | 49 |
46 /** | 50 /** |
47 * xsltFormatNumberInfo,: | 51 * xsltFormatNumberInfo,: |
48 * | 52 * |
49 * This data structure lists the various parameters needed to format numbers. | 53 * This data structure lists the various parameters needed to format numbers. |
(...skipping 10 matching lines...) Expand all Loading... |
60 int multiplier; /* Scaling for percent or permille */ | 64 int multiplier; /* Scaling for percent or permille */ |
61 char add_decimal; /* Flag for whether decimal point appears in pat
tern */ | 65 char add_decimal; /* Flag for whether decimal point appears in pat
tern */ |
62 char is_multiplier_set; /* Flag to catch multiple occurences of percent/
permille */ | 66 char is_multiplier_set; /* Flag to catch multiple occurences of percent/
permille */ |
63 char is_negative_pattern;/* Flag for processing -ve prefix/suffix */ | 67 char is_negative_pattern;/* Flag for processing -ve prefix/suffix */ |
64 }; | 68 }; |
65 | 69 |
66 #ifdef __cplusplus | 70 #ifdef __cplusplus |
67 } | 71 } |
68 #endif | 72 #endif |
69 #endif /* __XML_XSLT_NUMBERSINTERNALS_H__ */ | 73 #endif /* __XML_XSLT_NUMBERSINTERNALS_H__ */ |
OLD | NEW |