Eneboo - Documentación para desarrolladores
src/libxslt/libxslt/numbersInternals.h
Ir a la documentación de este archivo.
00001 /*
00002  * Summary: Implementation of the XSLT number functions
00003  * Description: Implementation of the XSLT number functions
00004  *
00005  * Copy: See Copyright for the status of this software.
00006  *
00007  * Author: Bjorn Reese <breese@users.sourceforge.net> and Daniel Veillard
00008  */
00009 
00010 #ifndef __XML_XSLT_NUMBERSINTERNALS_H__
00011 #define __XML_XSLT_NUMBERSINTERNALS_H__
00012 
00013 #include <libxml/tree.h>
00014 #include "xsltexports.h"
00015 
00016 #ifdef __cplusplus
00017 extern "C" {
00018 #endif
00019 
00020 struct _xsltCompMatch;
00021 
00027 typedef struct _xsltNumberData xsltNumberData;
00028 typedef xsltNumberData *xsltNumberDataPtr;
00029     
00030 struct _xsltNumberData {
00031     const xmlChar *level;
00032     const xmlChar *count;
00033     const xmlChar *from;
00034     const xmlChar *value;
00035     const xmlChar *format;
00036     int has_format;
00037     int digitsPerGroup;
00038     int groupingCharacter;
00039     int groupingCharacterLen;
00040     xmlDocPtr doc;
00041     xmlNodePtr node;
00042     struct _xsltCompMatch *countPat;
00043     struct _xsltCompMatch *fromPat;
00044 
00045     /*
00046      * accelerators
00047      */
00048 };
00049 
00055 typedef struct _xsltFormatNumberInfo xsltFormatNumberInfo;
00056 typedef xsltFormatNumberInfo *xsltFormatNumberInfoPtr;
00057 
00058 struct _xsltFormatNumberInfo {
00059     int     integer_hash;       /* Number of '#' in integer part */
00060     int     integer_digits;     /* Number of '0' in integer part */
00061     int     frac_digits;        /* Number of '0' in fractional part */
00062     int     frac_hash;          /* Number of '#' in fractional part */
00063     int     group;              /* Number of chars per display 'group' */
00064     int     multiplier;         /* Scaling for percent or permille */
00065     char    add_decimal;        /* Flag for whether decimal point appears in pattern */
00066     char    is_multiplier_set;  /* Flag to catch multiple occurences of percent/permille */
00067     char    is_negative_pattern;/* Flag for processing -ve prefix/suffix */
00068 };
00069 
00070 #ifdef __cplusplus
00071 }
00072 #endif
00073 #endif /* __XML_XSLT_NUMBERSINTERNALS_H__ */
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'