ReactOS
0.4.16-dev-2-g02a6913
numbersInternals.h
Go to the documentation of this file.
1
/*
2
* Summary: Implementation of the XSLT number functions
3
* Description: Implementation of the XSLT number functions
4
*
5
* Copy: See Copyright for the status of this software.
6
*
7
* Author: Bjorn Reese <breese@users.sourceforge.net> and Daniel Veillard
8
*/
9
10
#ifndef __XML_XSLT_NUMBERSINTERNALS_H__
11
#define __XML_XSLT_NUMBERSINTERNALS_H__
12
13
#include <
libxml/tree.h
>
14
#include "
xsltexports.h
"
15
16
#ifdef __cplusplus
17
extern
"C"
{
18
#endif
19
20
struct
_xsltCompMatch
;
21
27
typedef
struct
_xsltNumberData
xsltNumberData
;
28
typedef
xsltNumberData
*
xsltNumberDataPtr
;
29
30
struct
_xsltNumberData
{
31
const
xmlChar
*
level
;
32
const
xmlChar
*
count
;
33
const
xmlChar
*
from
;
34
const
xmlChar
*
value
;
35
const
xmlChar
*
format
;
36
int
has_format
;
37
int
digitsPerGroup
;
38
int
groupingCharacter
;
39
int
groupingCharacterLen
;
40
xmlDocPtr
doc
;
41
xmlNodePtr
node
;
42
struct
_xsltCompMatch
*
countPat
;
43
struct
_xsltCompMatch
*
fromPat
;
44
45
/*
46
* accelerators
47
*/
48
};
49
55
typedef
struct
_xsltFormatNumberInfo
xsltFormatNumberInfo
;
56
typedef
xsltFormatNumberInfo
*
xsltFormatNumberInfoPtr
;
57
58
struct
_xsltFormatNumberInfo
{
59
int
integer_hash
;
/* Number of '#' in integer part */
60
int
integer_digits
;
/* Number of '0' in integer part */
61
int
frac_digits
;
/* Number of '0' in fractional part */
62
int
frac_hash
;
/* Number of '#' in fractional part */
63
int
group
;
/* Number of chars per display 'group' */
64
int
multiplier
;
/* Scaling for percent or permille */
65
char
add_decimal
;
/* Flag for whether decimal point appears in pattern */
66
char
is_multiplier_set
;
/* Flag to catch multiple occurences of percent/permille */
67
char
is_negative_pattern
;
/* Flag for processing -ve prefix/suffix */
68
};
69
70
#ifdef __cplusplus
71
}
72
#endif
73
#endif
/* __XML_XSLT_NUMBERSINTERNALS_H__ */
xsltNumberDataPtr
xsltNumberData * xsltNumberDataPtr
Definition:
numbersInternals.h:28
xsltFormatNumberInfoPtr
xsltFormatNumberInfo * xsltFormatNumberInfoPtr
Definition:
numbersInternals.h:56
tree.h
_xmlDoc
Definition:
tree.h:551
_xmlNode
Definition:
tree.h:489
_xsltCompMatch
Definition:
pattern.c:81
_xsltFormatNumberInfo
Definition:
numbersInternals.h:58
_xsltFormatNumberInfo::is_negative_pattern
char is_negative_pattern
Definition:
numbersInternals.h:67
_xsltFormatNumberInfo::integer_digits
int integer_digits
Definition:
numbersInternals.h:60
_xsltFormatNumberInfo::multiplier
int multiplier
Definition:
numbersInternals.h:64
_xsltFormatNumberInfo::add_decimal
char add_decimal
Definition:
numbersInternals.h:65
_xsltFormatNumberInfo::frac_digits
int frac_digits
Definition:
numbersInternals.h:61
_xsltFormatNumberInfo::frac_hash
int frac_hash
Definition:
numbersInternals.h:62
_xsltFormatNumberInfo::integer_hash
int integer_hash
Definition:
numbersInternals.h:59
_xsltFormatNumberInfo::is_multiplier_set
char is_multiplier_set
Definition:
numbersInternals.h:66
_xsltFormatNumberInfo::group
int group
Definition:
numbersInternals.h:63
_xsltNumberData
Definition:
numbersInternals.h:30
_xsltNumberData::node
xmlNodePtr node
Definition:
numbersInternals.h:41
_xsltNumberData::from
const xmlChar * from
Definition:
numbersInternals.h:33
_xsltNumberData::format
const xmlChar * format
Definition:
numbersInternals.h:35
_xsltNumberData::value
const xmlChar * value
Definition:
numbersInternals.h:34
_xsltNumberData::groupingCharacter
int groupingCharacter
Definition:
numbersInternals.h:38
_xsltNumberData::groupingCharacterLen
int groupingCharacterLen
Definition:
numbersInternals.h:39
_xsltNumberData::count
const xmlChar * count
Definition:
numbersInternals.h:32
_xsltNumberData::has_format
int has_format
Definition:
numbersInternals.h:36
_xsltNumberData::digitsPerGroup
int digitsPerGroup
Definition:
numbersInternals.h:37
_xsltNumberData::level
const xmlChar * level
Definition:
numbersInternals.h:31
_xsltNumberData::doc
xmlDocPtr doc
Definition:
numbersInternals.h:40
_xsltNumberData::countPat
struct _xsltCompMatch * countPat
Definition:
numbersInternals.h:42
_xsltNumberData::fromPat
struct _xsltCompMatch * fromPat
Definition:
numbersInternals.h:43
xmlChar
unsigned char xmlChar
Definition:
xmlstring.h:28
xsltexports.h
sdk
include
reactos
libs
libxslt
numbersInternals.h
Generated on Thu Sep 12 2024 06:12:27 for ReactOS by
1.9.6