-
Notifications
You must be signed in to change notification settings - Fork 775
/
Copy pathbook.xml
168 lines (155 loc) · 5.12 KB
/
book.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<book xml:id="book.intl" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<?phpdoc extension-membership="bundled" ?>
<title>Internationalization Functions</title>
<titleabbrev>intl</titleabbrev>
<!-- {{{ Preface -->
<preface xml:id="intro.intl">
&reftitle.intro;
<para>
Internationalization extension (further is referred as Intl) is a wrapper
for <link xlink:href="&url.icu.home;">ICU</link>
library, enabling PHP programmers to perform various locale-aware operations including
but not limited to formatting, transliteration, encoding conversion, calendar operations,
<link xlink:href="&url.icu.uca;">UCA</link>-conformant collation, locating
text boundaries and working with locale identifiers, timezones and graphemes.
</para>
<para>
It tends to closely follow ICU APIs, so that people having experience
working with ICU in either C/C++ or Java could easily use the PHP API.
Also, this way ICU documentation would be useful to understand various ICU
functions.
</para>
<para>
Intl consists of several modules, each of them exposes the corresponding
ICU API:
</para>
<itemizedlist>
<listitem>
<simpara>
Collator: provides string comparison capability with support for
appropriate locale-sensitive sort orderings.
</simpara>
</listitem>
<listitem>
<simpara>
Number Formatter: allows to display number according to the localized
format or given pattern or set of rules, and to parse strings into
numbers.
</simpara>
</listitem>
<listitem>
<simpara>
Message Formatter: allows to create messages incorporating data (such
as numbers or dates) formatted according to given pattern and locale
rules, and parse messages extracting data from them. It can handle plurals,
locale-aware numbers, currencies, conditions and much more.
</simpara>
</listitem>
<listitem>
<simpara>
Normalizer: provides a function to transform text into one of the Unicode
normalization forms, and provides a routine to test if a given string is
already normalized.
</simpara>
</listitem>
<listitem>
<simpara>
Locale: provides interaction with locale identifiers in the form of
functions to get subtags from locale identifier; parse, compose,
match(lookup and filter) locale identifiers.
</simpara>
</listitem>
<listitem>
<simpara>
Calendar: provides a class which could be used for locale-aware calendar operations
and getting various information such as timezone for locale chosen, first day of week
or if it's daylight saving time now.
</simpara>
</listitem>
<listitem>
<simpara>
Timezone: provides a wrapper around the <link xlink:href="&url.icu.tzdatabase;">"Olson" database</link>
which has information about all the timezones around the world.
</simpara>
</listitem>
<listitem>
<simpara>
Date formatter: allows to display date and time according to the localized
format or given pattern or set of rules, and to parse strings into
date and time.
</simpara>
</listitem>
<listitem>
<simpara>
Transliterator: allows getting latin representation of strings in various languages.
</simpara>
</listitem>
</itemizedlist>
<!-- {{{ Links -->
<section xml:id="intl.links">
<title>Links</title>
<itemizedlist>
<listitem>
<para><link xlink:href="&url.icu.docs;">Miscellaneous ICU docs</link></para>
</listitem>
<listitem>
<para><link xlink:href="&url.icu.userguide;">ICU User Guide</link></para>
</listitem>
<listitem>
<para><link xlink:href="&url.icu.uca;">Unicode Collation Algorithm</link></para>
</listitem>
</itemizedlist>
</section>
<!-- }}} -->
</preface>
<!-- }}} -->
&reference.intl.setup;
&reference.intl.constants;
&reference.intl.examples;
&reference.intl.collator;
&reference.intl.numberformatter;
&reference.intl.locale;
&reference.intl.normalizer;
&reference.intl.messageformatter;
&reference.intl.intlcalendar;
&reference.intl.intlgregoriancalendar;
&reference.intl.intltimezone;
&reference.intl.dateformatter;
&reference.intl.resourcebundle;
&reference.intl.spoofchecker;
&reference.intl.transliterator;
&reference.intl.intlbreakiterator;
&reference.intl.intlrulebasedbreakiterator;
&reference.intl.intlcodepointbreakiterator;
&reference.intl.intldatepatterngenerator;
&reference.intl.intlpartsiterator;
&reference.intl.uconverter;
&reference.intl.grapheme;
&reference.intl.idn;
&reference.intl.intlchar;
&reference.intl.intlexception;
&reference.intl.intliterator;
&reference.intl.reference;
</book>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->