Annotation of win32/gnome/libxslt-x.x.x/libxslt/numbersInternals.h, revision 1.2

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:  *
1.2     ! paf        22:  * This data structure is just a wrapper to pass xsl:number data in.
1.1       paf        23:  */
1.2     ! paf        24: typedef struct _xsltNumberData xsltNumberData;
        !            25: typedef xsltNumberData *xsltNumberDataPtr;
        !            26:     
        !            27: struct _xsltNumberData {
1.1       paf        28:     xmlChar *level;
                     29:     xmlChar *count;
                     30:     xmlChar *from;
                     31:     xmlChar *value;
                     32:     xmlChar *format;
                     33:     int has_format;
                     34:     int digitsPerGroup;
1.2     ! paf        35:     int groupingCharacter;
        !            36:     int groupingCharacterLen;
1.1       paf        37:     xmlDocPtr doc;
                     38:     xmlNodePtr node;
1.2     ! paf        39: };
1.1       paf        40: 
                     41: /**
                     42:  * xsltFormatNumberInfo,:
                     43:  *
1.2     ! paf        44:  * This data structure lists the various parameters needed to format numbers.
1.1       paf        45:  */
1.2     ! paf        46: typedef struct _xsltFormatNumberInfo xsltFormatNumberInfo;
        !            47: typedef xsltFormatNumberInfo *xsltFormatNumberInfoPtr;
        !            48: 
        !            49: struct _xsltFormatNumberInfo {
        !            50:     int            integer_hash;       /* Number of '#' in integer part */
1.1       paf        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 */
1.2     ! paf        56:     char    add_decimal;       /* Flag for whether decimal point appears in pattern */
1.1       paf        57:     char    is_multiplier_set; /* Flag to catch multiple occurences of percent/permille */
                     58:     char    is_negative_pattern;/* Flag for processing -ve prefix/suffix */
1.2     ! paf        59: };
1.1       paf        60: 
                     61: #ifdef __cplusplus
                     62: }
                     63: #endif
                     64: #endif /* __XML_XSLT_NUMBERSINTERNALS_H__ */

E-mail: