1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-11-06 23:49:25 +03:00
Files
libxslt/libxslt/numbersInternals.h
Daniel Veillard 241bfda06e added configuration/version informations for Windows/MSC internal header
* libxslt/xsltwin32config.h[.in]: added configuration/version
  informations for Windows/MSC
* libxslt/libxslt.h libxslt/*.c: internal header to centralize
  includes switches
* libxslt/Makefile.am: added libxslt.h and xsltwin32config.h[.in]
* libxslt/*.[ch] libxslt/*.in: quite a bit of cleanup, especially
  the email addresses
* AUTHORS: added William
Daniel
2001-06-28 14:23:39 +00:00

55 lines
1.4 KiB
C

/*
* numbers.h: Implementation of the XSLT number functions
*
* See Copyright for the status of this software.
*
* daniel@veillard.com
* Bjorn Reese <breese@users.sourceforge.net>
*/
#ifndef __XML_XSLT_NUMBERSINTERNALS_H__
#define __XML_XSLT_NUMBERSINTERNALS_H__
#include <libxml/tree.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* xsltNumberData:
*
* This data structure is just a wrapper to pass xsl:number data in
*/
typedef struct _xsltNumberData {
xmlChar *level;
xmlChar *count;
xmlChar *from;
xmlChar *value;
xmlChar *format;
int digitsPerGroup;
xmlChar groupingCharacter;
xmlDocPtr doc;
xmlNodePtr node;
} xsltNumberData, *xsltNumberDataPtr;
/**
* xsltFormatNumberInfo,:
*
* This data structure lists the various parameters needed to format numbers
*/
typedef struct _xsltFormatNumberInfo {
int integer_digits; /* Number of '0' in integer part */
int frac_digits; /* Number of '0' in fractional part */
int frac_hash; /* Number of '#' in fractional part */
int group; /* Number of chars per display 'group' */
int multiplier; /* Scaling for percent or permille */
char is_multiplier_set; /* Flag to catch multiple occurences of percent/permille */
char is_negative_pattern;/* Flag for processing -ve prefix/suffix */
} xsltFormatNumberInfo, *xsltFormatNumberInfoPtr;
#ifdef __cplusplus
}
#endif
#endif /* __XML_XSLT_NUMBERSINTERNALS_H__ */