|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<!-- $Revision$ --> |
| 3 | +<reference xml:id="class.intllistformatter" role="class" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"> |
| 4 | + <title>The IntlListFormatter class</title> |
| 5 | + <titleabbrev>IntlListFormatter</titleabbrev> |
| 6 | + |
| 7 | + <partintro> |
| 8 | + |
| 9 | + <!-- {{{ IntlListFormatter intro --> |
| 10 | + <section xml:id="intllistformatter.intro"> |
| 11 | + &reftitle.intro; |
| 12 | + <simpara> |
| 13 | + Formats, orders, and punctuates a list of items according to locale-specific rules. |
| 14 | + Requires ICU 67 or later. |
| 15 | + </simpara> |
| 16 | + </section> |
| 17 | + <!-- }}} --> |
| 18 | + |
| 19 | + <section xml:id="intllistformatter.synopsis"> |
| 20 | + &reftitle.classsynopsis; |
| 21 | + |
| 22 | + <!-- {{{ Synopsis --> |
| 23 | + <classsynopsis class="class"> |
| 24 | + <ooclass> |
| 25 | + <classname>IntlListFormatter</classname> |
| 26 | + </ooclass> |
| 27 | + |
| 28 | + <classsynopsisinfo role="comment">&Constants;</classsynopsisinfo> |
| 29 | + <fieldsynopsis> |
| 30 | + <modifier>public</modifier> |
| 31 | + <modifier>const</modifier> |
| 32 | + <type>int</type> |
| 33 | + <varname linkend="intllistformatter.constants.type-and">IntlListFormatter::TYPE_AND</varname> |
| 34 | + </fieldsynopsis> |
| 35 | + <fieldsynopsis> |
| 36 | + <modifier>public</modifier> |
| 37 | + <modifier>const</modifier> |
| 38 | + <type>int</type> |
| 39 | + <varname linkend="intllistformatter.constants.type-or">IntlListFormatter::TYPE_OR</varname> |
| 40 | + </fieldsynopsis> |
| 41 | + <fieldsynopsis> |
| 42 | + <modifier>public</modifier> |
| 43 | + <modifier>const</modifier> |
| 44 | + <type>int</type> |
| 45 | + <varname linkend="intllistformatter.constants.type-units">IntlListFormatter::TYPE_UNITS</varname> |
| 46 | + </fieldsynopsis> |
| 47 | + <fieldsynopsis> |
| 48 | + <modifier>public</modifier> |
| 49 | + <modifier>const</modifier> |
| 50 | + <type>int</type> |
| 51 | + <varname linkend="intllistformatter.constants.width-wide">IntlListFormatter::WIDTH_WIDE</varname> |
| 52 | + </fieldsynopsis> |
| 53 | + <fieldsynopsis> |
| 54 | + <modifier>public</modifier> |
| 55 | + <modifier>const</modifier> |
| 56 | + <type>int</type> |
| 57 | + <varname linkend="intllistformatter.constants.width-short">IntlListFormatter::WIDTH_SHORT</varname> |
| 58 | + </fieldsynopsis> |
| 59 | + <fieldsynopsis> |
| 60 | + <modifier>public</modifier> |
| 61 | + <modifier>const</modifier> |
| 62 | + <type>int</type> |
| 63 | + <varname linkend="intllistformatter.constants.width-narrow">IntlListFormatter::WIDTH_NARROW</varname> |
| 64 | + </fieldsynopsis> |
| 65 | + |
| 66 | + <classsynopsisinfo role="comment">&Methods;</classsynopsisinfo> |
| 67 | + <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.intllistformatter')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[@role='IntlListFormatter'])"> |
| 68 | + <xi:fallback/> |
| 69 | + </xi:include> |
| 70 | + <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.intllistformatter')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[@role='IntlListFormatter'])"> |
| 71 | + <xi:fallback/> |
| 72 | + </xi:include> |
| 73 | + </classsynopsis> |
| 74 | + <!-- }}} --> |
| 75 | + |
| 76 | + </section> |
| 77 | + |
| 78 | + <section xml:id="intllistformatter.constants"> |
| 79 | + &reftitle.constants; |
| 80 | + <variablelist> |
| 81 | + <varlistentry xml:id="intllistformatter.constants.type-and"> |
| 82 | + <term><constant>IntlListFormatter::TYPE_AND</constant></term> |
| 83 | + <listitem> |
| 84 | + <simpara> |
| 85 | + Formats a list using conjunction (e.g. "A, B, and C"). |
| 86 | + </simpara> |
| 87 | + </listitem> |
| 88 | + </varlistentry> |
| 89 | + <varlistentry xml:id="intllistformatter.constants.type-or"> |
| 90 | + <term><constant>IntlListFormatter::TYPE_OR</constant></term> |
| 91 | + <listitem> |
| 92 | + <simpara> |
| 93 | + Formats a list using disjunction (e.g. "A, B, or C"). |
| 94 | + </simpara> |
| 95 | + </listitem> |
| 96 | + </varlistentry> |
| 97 | + <varlistentry xml:id="intllistformatter.constants.type-units"> |
| 98 | + <term><constant>IntlListFormatter::TYPE_UNITS</constant></term> |
| 99 | + <listitem> |
| 100 | + <simpara> |
| 101 | + Formats a list of units (e.g. "3 ft, 7 in"). |
| 102 | + </simpara> |
| 103 | + </listitem> |
| 104 | + </varlistentry> |
| 105 | + <varlistentry xml:id="intllistformatter.constants.width-wide"> |
| 106 | + <term><constant>IntlListFormatter::WIDTH_WIDE</constant></term> |
| 107 | + <listitem> |
| 108 | + <simpara> |
| 109 | + Uses the widest (most verbose) list format, typically with conjunctions spelled out in full. |
| 110 | + </simpara> |
| 111 | + </listitem> |
| 112 | + </varlistentry> |
| 113 | + <varlistentry xml:id="intllistformatter.constants.width-short"> |
| 114 | + <term><constant>IntlListFormatter::WIDTH_SHORT</constant></term> |
| 115 | + <listitem> |
| 116 | + <simpara> |
| 117 | + Uses a short list format, typically using abbreviations. |
| 118 | + </simpara> |
| 119 | + </listitem> |
| 120 | + </varlistentry> |
| 121 | + <varlistentry xml:id="intllistformatter.constants.width-narrow"> |
| 122 | + <term><constant>IntlListFormatter::WIDTH_NARROW</constant></term> |
| 123 | + <listitem> |
| 124 | + <simpara> |
| 125 | + Uses the narrowest list format, with minimal punctuation. |
| 126 | + </simpara> |
| 127 | + </listitem> |
| 128 | + </varlistentry> |
| 129 | + </variablelist> |
| 130 | + </section> |
| 131 | + |
| 132 | + <section role="changelog" xml:id="intllistformatter.changelog"> |
| 133 | + &reftitle.changelog; |
| 134 | + <informaltable> |
| 135 | + <tgroup cols="2"> |
| 136 | + <thead> |
| 137 | + <row> |
| 138 | + <entry>&Version;</entry> |
| 139 | + <entry>&Description;</entry> |
| 140 | + </row> |
| 141 | + </thead> |
| 142 | + <tbody> |
| 143 | + <row> |
| 144 | + <entry>8.5.0</entry> |
| 145 | + <entry> |
| 146 | + The class was added. |
| 147 | + </entry> |
| 148 | + </row> |
| 149 | + </tbody> |
| 150 | + </tgroup> |
| 151 | + </informaltable> |
| 152 | + </section> |
| 153 | + |
| 154 | + </partintro> |
| 155 | + |
| 156 | + &reference.intl.entities.intllistformatter; |
| 157 | + |
| 158 | +</reference> |
| 159 | +<!-- Keep this comment at the end of the file |
| 160 | + Local variables: |
| 161 | + mode: sgml |
| 162 | + sgml-omittag:t |
| 163 | + sgml-shorttag:t |
| 164 | + sgml-minimize-attributes:nil |
| 165 | + sgml-always-quote-attributes:t |
| 166 | + sgml-indent-step:1 |
| 167 | + sgml-indent-data:t |
| 168 | + indent-tabs-mode:nil |
| 169 | + sgml-parent-document:nil |
| 170 | + sgml-default-dtd-file:"~/.phpdoc/manual.ced" |
| 171 | + sgml-exposed-tags:nil |
| 172 | + sgml-local-catalogs:nil |
| 173 | + sgml-local-ecat-files:nil |
| 174 | + End: |
| 175 | + vim600: syn=xml fen fdm=syntax fdl=2 si |
| 176 | + vim: et tw=78 syn=sgml |
| 177 | + vi: ts=1 sw=1 |
| 178 | +--> |
0 commit comments