Annotation of win32/gnome/libxslt-x.x.x/libxslt/numbersInternals.h, revision 1.1
1.1 ! paf 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 {
! 25: xmlChar *level;
! 26: xmlChar *count;
! 27: xmlChar *from;
! 28: xmlChar *value;
! 29: xmlChar *format;
! 30: int has_format;
! 31: int digitsPerGroup;
! 32: xmlChar groupingCharacter;
! 33: xmlDocPtr doc;
! 34: xmlNodePtr node;
! 35: } xsltNumberData, *xsltNumberDataPtr;
! 36:
! 37: /**
! 38: * xsltFormatNumberInfo,:
! 39: *
! 40: * This data structure lists the various parameters needed to format numbers
! 41: */
! 42: typedef struct _xsltFormatNumberInfo {
! 43: int integer_digits; /* Number of '0' in integer part */
! 44: int frac_digits; /* Number of '0' in fractional part */
! 45: int frac_hash; /* Number of '#' in fractional part */
! 46: int group; /* Number of chars per display 'group' */
! 47: int multiplier; /* Scaling for percent or permille */
! 48: char is_multiplier_set; /* Flag to catch multiple occurences of percent/permille */
! 49: char is_negative_pattern;/* Flag for processing -ve prefix/suffix */
! 50: } xsltFormatNumberInfo, *xsltFormatNumberInfoPtr;
! 51:
! 52: #ifdef __cplusplus
! 53: }
! 54: #endif
! 55: #endif /* __XML_XSLT_NUMBERSINTERNALS_H__ */
E-mail: