ReactOS 0.4.16-dev-197-g92996da
|
#include "precomp.h"
Go to the source code of this file.
Classes | |
struct | _xsltFormatToken |
struct | _xsltFormat |
Macros | |
#define | FALSE (0 == 1) |
#define | TRUE (1 == 1) |
#define | SYMBOL_QUOTE ((xmlChar)'\'') |
#define | DEFAULT_TOKEN '0' |
#define | DEFAULT_SEPARATOR "." |
#define | MAX_TOKENS 1024 |
#define | IS_SPECIAL(self, letter) |
#define | IS_DIGIT_ZERO(x) xsltIsDigitZero(x) |
#define | IS_DIGIT_ONE(x) xsltIsDigitZero((x)-1) |
Typedefs | |
typedef struct _xsltFormatToken | xsltFormatToken |
typedef xsltFormatToken * | xsltFormatTokenPtr |
typedef struct _xsltFormat | xsltFormat |
typedef xsltFormat * | xsltFormatPtr |
Variables | |
static char | alpha_upper_list [] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" |
static char | alpha_lower_list [] = "abcdefghijklmnopqrstuvwxyz" |
static xsltFormatToken | default_token |
#define IS_SPECIAL | ( | self, | |
letter | |||
) |
typedef struct _xsltFormat xsltFormat |
typedef xsltFormat* xsltFormatPtr |
typedef struct _xsltFormatToken xsltFormatToken |
typedef xsltFormatToken* xsltFormatTokenPtr |
xmlXPathError xsltFormatNumberConversion | ( | xsltDecimalFormatPtr | self, |
xmlChar * | format, | ||
double | number, | ||
xmlChar ** | result | ||
) |
xsltFormatNumberConversion: @self: the decimal format @format: the format requested @number: the value to format
format-number() uses the JDK 1.1 DecimalFormat class:
http://java.sun.com/products/jdk/1.1/docs/api/java.text.DecimalFormat.html
Structure:
pattern := subpattern{;subpattern} subpattern := {prefix}integer{.fraction}{suffix} prefix := '\u0000'..'\uFFFD' - specialCharacters suffix := '\u0000'..'\uFFFD' - specialCharacters integer := '#'* '0'* '0' fraction := '0'* '#'*
Notation: X* 0 or more instances of X (X | Y) either X or Y. X..Y any character from X up to Y, inclusive. S - T characters in S, except those in T
Special Characters:
Symbol Meaning 0 a digit
. placeholder for decimal separator , placeholder for grouping separator. ; separates formats.
Returns a possible XPath error
Definition at line 941 of file numbers.c.
Referenced by xsltFormatNumberFunction().
|
static |
Definition at line 849 of file numbers.c.
Referenced by xsltFormatNumberConversion().
Definition at line 102 of file numbers.c.
void xsltNumberFormat | ( | xsltTransformContextPtr | ctxt, |
xsltNumberDataPtr | data, | ||
xmlNodePtr | node | ||
) |
xsltNumberFormat: @ctxt: the XSLT transformation context @data: the formatting information @node: the data to format
Convert one number.
Definition at line 728 of file numbers.c.
Referenced by xsltNumber().
|
static |
Definition at line 196 of file numbers.c.
Referenced by xsltNumberFormatInsertNumbers().
|
static |
Definition at line 122 of file numbers.c.
Referenced by xsltFormatNumberConversion(), xsltNumberFormatAlpha(), xsltNumberFormatInsertNumbers(), and xsltNumberFormatRoman().
|
static |
Definition at line 580 of file numbers.c.
Referenced by xsltNumberFormat().
|
static |
Definition at line 634 of file numbers.c.
Referenced by xsltNumberFormat().
|
static |
Definition at line 692 of file numbers.c.
Referenced by xsltNumberFormat().
|
static |
Definition at line 427 of file numbers.c.
Referenced by xsltNumberFormat().
|
static |
Definition at line 243 of file numbers.c.
Referenced by xsltNumberFormatInsertNumbers().
|
static |
Definition at line 318 of file numbers.c.
Referenced by xsltNumberFormat().
|
static |
Definition at line 543 of file numbers.c.
Referenced by xsltNumberFormatGetAnyLevel(), and xsltNumberFormatGetMultipleLevel().
xsltUTF8Charcmp @utf1: pointer to first UTF8 char @utf2: pointer to second UTF8 char
returns result of comparing the two UCS4 values as with xmlStrncmp
Definition at line 65 of file numbers.c.
Referenced by xsltFormatNumberConversion(), and xsltFormatNumberPreSuffix().
|
static |
Definition at line 45 of file numbers.c.
Referenced by xsltNumberFormatAlpha().
|
static |
Definition at line 44 of file numbers.c.
Referenced by xsltNumberFormatAlpha().
|
static |
Definition at line 46 of file numbers.c.
Referenced by xsltNumberFormatInsertNumbers(), and xsltNumberFormatTokenize().