| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
| 5 |
<title>numbersInternals: Implementation of the XSLT number functions</title> |
| 6 |
<meta name="generator" content="Libxml2 devhelp stylesheet"/> |
| 7 |
<link rel="start" href="index.html" title="libxslt Reference Manual"/> |
| 8 |
<link rel="up" href="general.html" title="API"/> |
| 9 |
<link rel="stylesheet" href="style.css" type="text/css"/> |
| 10 |
<link rel="chapter" href="general.html" title="API"/> |
| 11 |
</head> |
| 12 |
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> |
| 13 |
<table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"> |
| 14 |
<tr valign="middle"> |
| 15 |
<td> |
| 16 |
<a accesskey="p" href="libxslt-namespaces.html"> |
| 17 |
<img src="left.png" width="24" height="24" border="0" alt="Prev"/> |
| 18 |
</a> |
| 19 |
</td> |
| 20 |
<td> |
| 21 |
<a accesskey="u" href="general.html"> |
| 22 |
<img src="up.png" width="24" height="24" border="0" alt="Up"/> |
| 23 |
</a> |
| 24 |
</td> |
| 25 |
<td> |
| 26 |
<a accesskey="h" href="index.html"> |
| 27 |
<img src="home.png" width="24" height="24" border="0" alt="Home"/> |
| 28 |
</a> |
| 29 |
</td> |
| 30 |
<td> |
| 31 |
<a accesskey="n" href="libxslt-pattern.html"> |
| 32 |
<img src="right.png" width="24" height="24" border="0" alt="Next"/> |
| 33 |
</a> |
| 34 |
</td> |
| 35 |
<th width="100%" align="center">libxslt Reference Manual</th> |
| 36 |
</tr> |
| 37 |
</table> |
| 38 |
<h2> |
| 39 |
<span class="refentrytitle">numbersInternals</span> |
| 40 |
</h2> |
| 41 |
<p>numbersInternals - Implementation of the XSLT number functions</p> |
| 42 |
<p>Implementation of the XSLT number functions </p> |
| 43 |
<p>Author(s): Bjorn Reese <[email protected]> and Daniel Veillard </p> |
| 44 |
<div class="refsynopsisdiv"> |
| 45 |
<h2>Synopsis</h2> |
| 46 |
<pre class="synopsis">typedef struct _xsltFormatNumberInfo <a href="#xsltFormatNumberInfo">xsltFormatNumberInfo</a>; |
| 47 |
typedef <a href="libxslt-numbersInternals.html#xsltFormatNumberInfo">xsltFormatNumberInfo</a> * <a href="#xsltFormatNumberInfoPtr">xsltFormatNumberInfoPtr</a>; |
| 48 |
typedef struct _xsltNumberData <a href="#xsltNumberData">xsltNumberData</a>; |
| 49 |
typedef <a href="libxslt-numbersInternals.html#xsltNumberData">xsltNumberData</a> * <a href="#xsltNumberDataPtr">xsltNumberDataPtr</a>; |
| 50 |
</pre> |
| 51 |
</div> |
| 52 |
<div class="refsect1" lang="en"> |
| 53 |
<h2>Description</h2> |
| 54 |
</div> |
| 55 |
<div class="refsect1" lang="en"> |
| 56 |
<h2>Details</h2> |
| 57 |
<div class="refsect2" lang="en"> |
| 58 |
<div class="refsect2" lang="en"><h3><a name="xsltFormatNumberInfo">Structure </a>xsltFormatNumberInfo</h3><pre class="programlisting">struct _xsltFormatNumberInfo { |
| 59 |
int integer_hash : Number of '#' in integer part |
| 60 |
int integer_digits : Number of '0' in integer part |
| 61 |
int frac_digits : Number of '0' in fractional part |
| 62 |
int frac_hash : Number of '#' in fractional part |
| 63 |
int group : Number of chars per display 'group' |
| 64 |
int multiplier : Scaling for percent or permille |
| 65 |
char add_decimal : Flag for whether decimal point appears in pattern |
| 66 |
char is_multiplier_set : Flag to catch multiple occurences of percent/permille |
| 67 |
char is_negative_pattern : Flag for processing -ve prefix/suffix |
| 68 |
} xsltFormatNumberInfo; |
| 69 |
</pre><p/> |
| 70 |
</div> |
| 71 |
<hr/> |
| 72 |
<div class="refsect2" lang="en"><h3><a name="xsltFormatNumberInfoPtr">Typedef </a>xsltFormatNumberInfoPtr</h3><pre class="programlisting"><a href="libxslt-numbersInternals.html#xsltFormatNumberInfo">xsltFormatNumberInfo</a> * xsltFormatNumberInfoPtr; |
| 73 |
</pre><p/> |
| 74 |
</div> |
| 75 |
<hr/> |
| 76 |
<div class="refsect2" lang="en"><h3><a name="xsltNumberData">Structure </a>xsltNumberData</h3><pre class="programlisting">struct _xsltNumberData { |
| 77 |
const xmlChar * level |
| 78 |
const xmlChar * count |
| 79 |
const xmlChar * from |
| 80 |
const xmlChar * value |
| 81 |
const xmlChar * format |
| 82 |
int has_format |
| 83 |
int digitsPerGroup |
| 84 |
int groupingCharacter |
| 85 |
int groupingCharacterLen |
| 86 |
xmlDocPtr doc |
| 87 |
xmlNodePtr node |
| 88 |
struct _xsltCompMatch * countPat |
| 89 |
struct _xsltCompMatch * fromPat : * accelerators * |
| 90 |
} xsltNumberData; |
| 91 |
</pre><p/> |
| 92 |
</div> |
| 93 |
<hr/> |
| 94 |
<div class="refsect2" lang="en"><h3><a name="xsltNumberDataPtr">Typedef </a>xsltNumberDataPtr</h3><pre class="programlisting"><a href="libxslt-numbersInternals.html#xsltNumberData">xsltNumberData</a> * xsltNumberDataPtr; |
| 95 |
</pre><p/> |
| 96 |
</div> |
| 97 |
<hr/> |
| 98 |
</div> |
| 99 |
</div> |
| 100 |
</body> |
| 101 |
</html> |