1
<?xml version="1.0" encoding="iso-8859-1"?>
3
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
<!-- /tmp/qt-4.0.0-espenr-1119621036935/qt-x11-opensource-desktop-4.0.0/src/corelib/tools/qlocale.cpp -->
7
<title>Qt 4.0: QLocale Class Reference</title>
8
<style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }
9
a:link { color: #004faf; text-decoration: none }
10
a:visited { color: #672967; text-decoration: none }
11
td.postheader { font-family: sans-serif }
12
tr.address { font-family: sans-serif }
13
body { background: #ffffff; color: black; }</style>
16
<table border="0" cellpadding="0" cellspacing="0" width="100%">
18
<td align="left" valign="top" width="32"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></td>
19
<td width="1"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="mainclasses.html"><font color="#004faf">Main Classes</font></a> · <a href="annotated.html"><font color="#004faf">Annotated</font></a> · <a href="groups.html"><font color="#004faf">Grouped Classes</font></a> · <a href="functions.html"><font color="#004faf">Functions</font></a></td>
20
<td align="right" valign="top" width="230"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></td></tr></table><h1 align="center">QLocale Class Reference</h1>
21
<p>The QLocale class converts between numbers and their string representations in various languages. <a href="#details">More...</a></p>
22
<pre>#include <QLocale></pre><p>Part of the <a href="qtcore.html">QtCore</a> module.</p>
23
<p><b>Note:</b> All the functions in this class are <a href="threads.html#reentrant">reentrant</a>, except <a href="qlocale.html#setDefault">setDefault</a>().</p>
25
<li><a href="qlocale-members.html">List of all members, including inherited members</a></li>
27
<a name="public-types"></a>
30
<li><div class="fn"/>enum <b><a href="qlocale.html#Country-enum">Country</a></b> { AnyCountry, Afghanistan, Albania, Algeria, ..., Zimbabwe }</li>
31
<li><div class="fn"/>enum <b><a href="qlocale.html#Language-enum">Language</a></b> { C, Abkhazian, Afan, Afar, ..., Zulu }</li>
33
<a name="public-functions"></a>
34
<h3>Public Functions</h3>
36
<li><div class="fn"/><b><a href="qlocale.html#QLocale">QLocale</a></b> ()</li>
37
<li><div class="fn"/><b><a href="qlocale.html#QLocale-2">QLocale</a></b> ( const QString & <i>name</i> )</li>
38
<li><div class="fn"/><b><a href="qlocale.html#QLocale-3">QLocale</a></b> ( Language <i>language</i>, Country <i>country</i> = AnyCountry )</li>
39
<li><div class="fn"/><b><a href="qlocale.html#QLocale-4">QLocale</a></b> ( const QLocale & <i>other</i> )</li>
40
<li><div class="fn"/>Country <b><a href="qlocale.html#country">country</a></b> () const</li>
41
<li><div class="fn"/>Language <b><a href="qlocale.html#language">language</a></b> () const</li>
42
<li><div class="fn"/>QString <b><a href="qlocale.html#name">name</a></b> () const</li>
43
<li><div class="fn"/>double <b><a href="qlocale.html#toDouble">toDouble</a></b> ( const QString & <i>s</i>, bool * <i>ok</i> = 0 ) const</li>
44
<li><div class="fn"/>float <b><a href="qlocale.html#toFloat">toFloat</a></b> ( const QString & <i>s</i>, bool * <i>ok</i> = 0 ) const</li>
45
<li><div class="fn"/>int <b><a href="qlocale.html#toInt">toInt</a></b> ( const QString & <i>s</i>, bool * <i>ok</i> = 0, int <i>base</i> = 0 ) const</li>
46
<li><div class="fn"/>qlonglong <b><a href="qlocale.html#toLongLong">toLongLong</a></b> ( const QString & <i>s</i>, bool * <i>ok</i> = 0, int <i>base</i> = 0 ) const</li>
47
<li><div class="fn"/>short <b><a href="qlocale.html#toShort">toShort</a></b> ( const QString & <i>s</i>, bool * <i>ok</i> = 0, int <i>base</i> = 0 ) const</li>
48
<li><div class="fn"/>QString <b><a href="qlocale.html#toString">toString</a></b> ( qlonglong <i>i</i> ) const</li>
49
<li><div class="fn"/>QString <b><a href="qlocale.html#toString-2">toString</a></b> ( qulonglong <i>i</i> ) const</li>
50
<li><div class="fn"/>QString <b><a href="qlocale.html#toString-3">toString</a></b> ( double <i>i</i>, char <i>f</i> = 'g', int <i>prec</i> = 6 ) const</li>
51
<li><div class="fn"/>QString <b><a href="qlocale.html#toString-4">toString</a></b> ( short <i>i</i> ) const</li>
52
<li><div class="fn"/>QString <b><a href="qlocale.html#toString-5">toString</a></b> ( ushort <i>i</i> ) const</li>
53
<li><div class="fn"/>QString <b><a href="qlocale.html#toString-6">toString</a></b> ( int <i>i</i> ) const</li>
54
<li><div class="fn"/>QString <b><a href="qlocale.html#toString-7">toString</a></b> ( uint <i>i</i> ) const</li>
55
<li><div class="fn"/>QString <b><a href="qlocale.html#toString-8">toString</a></b> ( float <i>i</i>, char <i>f</i> = 'g', int <i>prec</i> = 6 ) const</li>
56
<li><div class="fn"/>uint <b><a href="qlocale.html#toUInt">toUInt</a></b> ( const QString & <i>s</i>, bool * <i>ok</i> = 0, int <i>base</i> = 0 ) const</li>
57
<li><div class="fn"/>qlonglong <b><a href="qlocale.html#toULongLong">toULongLong</a></b> ( const QString & <i>s</i>, bool * <i>ok</i> = 0, int <i>base</i> = 0 ) const</li>
58
<li><div class="fn"/>ushort <b><a href="qlocale.html#toUShort">toUShort</a></b> ( const QString & <i>s</i>, bool * <i>ok</i> = 0, int <i>base</i> = 0 ) const</li>
59
<li><div class="fn"/>bool <b><a href="qlocale.html#operator-not-eq">operator!=</a></b> ( const QLocale & <i>other</i> ) const</li>
60
<li><div class="fn"/>QLocale & <b><a href="qlocale.html#operator-eq">operator=</a></b> ( const QLocale & <i>other</i> )</li>
61
<li><div class="fn"/>bool <b><a href="qlocale.html#operator-eq-eq">operator==</a></b> ( const QLocale & <i>other</i> ) const</li>
63
<a name="static-public-members"></a>
64
<h3>Static Public Members</h3>
66
<li><div class="fn"/>QLocale <b><a href="qlocale.html#c">c</a></b> ()</li>
67
<li><div class="fn"/>QString <b><a href="qlocale.html#countryToString">countryToString</a></b> ( Country <i>country</i> )</li>
68
<li><div class="fn"/>QString <b><a href="qlocale.html#languageToString">languageToString</a></b> ( Language <i>language</i> )</li>
69
<li><div class="fn"/>void <b><a href="qlocale.html#setDefault">setDefault</a></b> ( const QLocale & <i>locale</i> )</li>
70
<li><div class="fn"/>QLocale <b><a href="qlocale.html#system">system</a></b> ()</li>
72
<a name="details"></a>
74
<h2>Detailed Description</h2>
75
<p>The QLocale class converts between numbers and their string representations in various languages.</p>
76
<p>QLocale is initialized with a language/country pair in its constructor and offers number-to-string and string-to-number conversion functions similar to those in <a href="qstring.html">QString</a>.</p>
78
<pre> QLocale egyptian(QLocale::Arabic, QLocale::Egypt);
79
QString s1 = egyptian.toString(1.571429E+07, 'e');
80
QString s2 = egyptian.toString(10);
82
double d = egyptian.toDouble(s1);
83
int i = egyptian.toInt(s2);</pre>
84
<p>QLocale supports the concept of a default locale, which is determined from the system's locale settings at application startup. The default locale can be changed by calling the static member <a href="qlocale.html#setDefault">setDefault</a>(). The default locale has the following effects:</p>
86
<li>If a QLocale object is constructed with the default constructor, it will use the default locale's settings.</li>
87
<li><a href="qstring.html#toInt">QString::toInt</a>(), <a href="qstring.html#toDouble">QString::toDouble</a>(), etc., interpret the string according to the default locale. If this fails, it falls back on the "C" locale.</li>
88
<li><a href="qstring.html#arg">QString::arg</a>() uses the default locale to format a number when its position specifier in the format string contains an 'L', e.g. "%L1".</li>
90
<p>The following example illustrates how to use QLocale directly:</p>
91
<pre> QLocale::setDefault(QLocale::Hebrew, QLocale::Israel);
92
QLocale hebrew; // Constructs a default QLocale
93
QString s1 = hebrew.toString(15714.3, 'e');
98
QLocale::setDefault(QLocale::C);
99
d = QString("1234,56").toDouble(&ok); // ok == false
100
d = QString("1234.56").toDouble(&ok); // ok == true, d == 1234.56
102
QLocale::setDefault(QLocale::German);
103
d = QString("1234,56").toDouble(&ok); // ok == true, d == 1234.56
104
d = QString("1234.56").toDouble(&ok); // ok == true, d == 1234.56
106
QLocale::setDefault(QLocale::English, QLocale::UnitedStates);
107
str = QString("%1 %L2 %L3")
108
.arg(12345).arg(12345).arg(12345, 0, 16);
109
// str == "12345 12,345 3039"</pre>
110
<p>When a language/country pair is specified in the constructor, one of three things can happen:</p>
112
<li>If the language/country pair is found in the database, it is used.</li>
113
<li>If the language is found but the country is not, or if the country is <tt>AnyCountry</tt>, the language is used with the most appropriate available country (for example, Germany for German),</li>
114
<li>If neither the language nor the country are found, QLocale defaults to the default locale (see <a href="qlocale.html#setDefault">setDefault</a>()).</li>
116
<p>The "C" locale is identical to <a href="qlocale.html#Language-enum">English</a>/<a href="qlocale.html#Country-enum">UnitedStates</a>.</p>
117
<p>Use <a href="qlocale.html#language">language</a>() and <a href="qlocale.html#country">country</a>() to determine the actual language and country values used.</p>
118
<p>An alternative method for constructing a QLocale object is by specifying the locale name.</p>
119
<pre> QLocale korean("ko");
120
QLocale swiss("de_CH");</pre>
121
<p>This constructor converts the locale name to a language/country pair; it does not use the system locale database.</p>
122
<p>The double-to-string and string-to-double conversion functions are covered by the following licenses:</p>
123
<pre> Copyright (c) 1991 by AT&T.
125
Permission to use, copy, modify, and distribute this software for any
126
purpose without fee is hereby granted, provided that this entire notice
127
is included in all copies of any software which is or includes a copy
128
or modification of this software and in all copies of the supporting
129
documentation for such software.
131
THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
132
WARRANTY. IN PARTICULAR, NEITHER THE AUTHOR NOR AT&T MAKES ANY
133
REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
134
OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
136
This product includes software developed by the University of
137
California, Berkeley and its contributors.</pre>
138
<p>See also <a href="qstring.html#arg">QString::arg</a>(), <a href="qstring.html#toInt">QString::toInt</a>(), and <a href="qstring.html#toDouble">QString::toDouble</a>().</p>
140
<h2>Member Type Documentation</h2>
141
<h3 class="fn"><a name="Country-enum"></a>enum QLocale::Country</h3>
142
<p>This enumerated type is used to specify a country.</p>
143
<table border="1" cellpadding="2" cellspacing="1" width="40%">
144
<tr><th width="60%">Constant</th><th width="40%">Value</th></tr>
145
<tr><td valign="top"><tt>QLocale::AnyCountry</tt></td><td align="center" valign="top"><tt>0</tt></td></tr>
146
<tr><td valign="top"><tt>QLocale::Afghanistan</tt></td><td align="center" valign="top"><tt>1</tt></td></tr>
147
<tr><td valign="top"><tt>QLocale::Albania</tt></td><td align="center" valign="top"><tt>2</tt></td></tr>
148
<tr><td valign="top"><tt>QLocale::Algeria</tt></td><td align="center" valign="top"><tt>3</tt></td></tr>
149
<tr><td valign="top"><tt>QLocale::AmericanSamoa</tt></td><td align="center" valign="top"><tt>4</tt></td></tr>
150
<tr><td valign="top"><tt>QLocale::Andorra</tt></td><td align="center" valign="top"><tt>5</tt></td></tr>
151
<tr><td valign="top"><tt>QLocale::Angola</tt></td><td align="center" valign="top"><tt>6</tt></td></tr>
152
<tr><td valign="top"><tt>QLocale::Anguilla</tt></td><td align="center" valign="top"><tt>7</tt></td></tr>
153
<tr><td valign="top"><tt>QLocale::Antarctica</tt></td><td align="center" valign="top"><tt>8</tt></td></tr>
154
<tr><td valign="top"><tt>QLocale::AntiguaAndBarbuda</tt></td><td align="center" valign="top"><tt>9</tt></td></tr>
155
<tr><td valign="top"><tt>QLocale::Argentina</tt></td><td align="center" valign="top"><tt>10</tt></td></tr>
156
<tr><td valign="top"><tt>QLocale::Armenia</tt></td><td align="center" valign="top"><tt>11</tt></td></tr>
157
<tr><td valign="top"><tt>QLocale::Aruba</tt></td><td align="center" valign="top"><tt>12</tt></td></tr>
158
<tr><td valign="top"><tt>QLocale::Australia</tt></td><td align="center" valign="top"><tt>13</tt></td></tr>
159
<tr><td valign="top"><tt>QLocale::Austria</tt></td><td align="center" valign="top"><tt>14</tt></td></tr>
160
<tr><td valign="top"><tt>QLocale::Azerbaijan</tt></td><td align="center" valign="top"><tt>15</tt></td></tr>
161
<tr><td valign="top"><tt>QLocale::Bahamas</tt></td><td align="center" valign="top"><tt>16</tt></td></tr>
162
<tr><td valign="top"><tt>QLocale::Bahrain</tt></td><td align="center" valign="top"><tt>17</tt></td></tr>
163
<tr><td valign="top"><tt>QLocale::Bangladesh</tt></td><td align="center" valign="top"><tt>18</tt></td></tr>
164
<tr><td valign="top"><tt>QLocale::Barbados</tt></td><td align="center" valign="top"><tt>19</tt></td></tr>
165
<tr><td valign="top"><tt>QLocale::Belarus</tt></td><td align="center" valign="top"><tt>20</tt></td></tr>
166
<tr><td valign="top"><tt>QLocale::Belgium</tt></td><td align="center" valign="top"><tt>21</tt></td></tr>
167
<tr><td valign="top"><tt>QLocale::Belize</tt></td><td align="center" valign="top"><tt>22</tt></td></tr>
168
<tr><td valign="top"><tt>QLocale::Benin</tt></td><td align="center" valign="top"><tt>23</tt></td></tr>
169
<tr><td valign="top"><tt>QLocale::Bermuda</tt></td><td align="center" valign="top"><tt>24</tt></td></tr>
170
<tr><td valign="top"><tt>QLocale::Bhutan</tt></td><td align="center" valign="top"><tt>25</tt></td></tr>
171
<tr><td valign="top"><tt>QLocale::Bolivia</tt></td><td align="center" valign="top"><tt>26</tt></td></tr>
172
<tr><td valign="top"><tt>QLocale::BosniaAndHerzegowina</tt></td><td align="center" valign="top"><tt>27</tt></td></tr>
173
<tr><td valign="top"><tt>QLocale::Botswana</tt></td><td align="center" valign="top"><tt>28</tt></td></tr>
174
<tr><td valign="top"><tt>QLocale::BouvetIsland</tt></td><td align="center" valign="top"><tt>29</tt></td></tr>
175
<tr><td valign="top"><tt>QLocale::Brazil</tt></td><td align="center" valign="top"><tt>30</tt></td></tr>
176
<tr><td valign="top"><tt>QLocale::BritishIndianOceanTerritory</tt></td><td align="center" valign="top"><tt>31</tt></td></tr>
177
<tr><td valign="top"><tt>QLocale::BruneiDarussalam</tt></td><td align="center" valign="top"><tt>32</tt></td></tr>
178
<tr><td valign="top"><tt>QLocale::Bulgaria</tt></td><td align="center" valign="top"><tt>33</tt></td></tr>
179
<tr><td valign="top"><tt>QLocale::BurkinaFaso</tt></td><td align="center" valign="top"><tt>34</tt></td></tr>
180
<tr><td valign="top"><tt>QLocale::Burundi</tt></td><td align="center" valign="top"><tt>35</tt></td></tr>
181
<tr><td valign="top"><tt>QLocale::Cambodia</tt></td><td align="center" valign="top"><tt>36</tt></td></tr>
182
<tr><td valign="top"><tt>QLocale::Cameroon</tt></td><td align="center" valign="top"><tt>37</tt></td></tr>
183
<tr><td valign="top"><tt>QLocale::Canada</tt></td><td align="center" valign="top"><tt>38</tt></td></tr>
184
<tr><td valign="top"><tt>QLocale::CapeVerde</tt></td><td align="center" valign="top"><tt>39</tt></td></tr>
185
<tr><td valign="top"><tt>QLocale::CaymanIslands</tt></td><td align="center" valign="top"><tt>40</tt></td></tr>
186
<tr><td valign="top"><tt>QLocale::CentralAfricanRepublic</tt></td><td align="center" valign="top"><tt>41</tt></td></tr>
187
<tr><td valign="top"><tt>QLocale::Chad</tt></td><td align="center" valign="top"><tt>42</tt></td></tr>
188
<tr><td valign="top"><tt>QLocale::Chile</tt></td><td align="center" valign="top"><tt>43</tt></td></tr>
189
<tr><td valign="top"><tt>QLocale::China</tt></td><td align="center" valign="top"><tt>44</tt></td></tr>
190
<tr><td valign="top"><tt>QLocale::ChristmasIsland</tt></td><td align="center" valign="top"><tt>45</tt></td></tr>
191
<tr><td valign="top"><tt>QLocale::CocosIslands</tt></td><td align="center" valign="top"><tt>46</tt></td></tr>
192
<tr><td valign="top"><tt>QLocale::Colombia</tt></td><td align="center" valign="top"><tt>47</tt></td></tr>
193
<tr><td valign="top"><tt>QLocale::Comoros</tt></td><td align="center" valign="top"><tt>48</tt></td></tr>
194
<tr><td valign="top"><tt>QLocale::DemocraticRepublicOfCongo</tt></td><td align="center" valign="top"><tt>49</tt></td></tr>
195
<tr><td valign="top"><tt>QLocale::PeoplesRepublicOfCongo</tt></td><td align="center" valign="top"><tt>50</tt></td></tr>
196
<tr><td valign="top"><tt>QLocale::CookIslands</tt></td><td align="center" valign="top"><tt>51</tt></td></tr>
197
<tr><td valign="top"><tt>QLocale::CostaRica</tt></td><td align="center" valign="top"><tt>52</tt></td></tr>
198
<tr><td valign="top"><tt>QLocale::IvoryCoast</tt></td><td align="center" valign="top"><tt>53</tt></td></tr>
199
<tr><td valign="top"><tt>QLocale::Croatia</tt></td><td align="center" valign="top"><tt>54</tt></td></tr>
200
<tr><td valign="top"><tt>QLocale::Cuba</tt></td><td align="center" valign="top"><tt>55</tt></td></tr>
201
<tr><td valign="top"><tt>QLocale::Cyprus</tt></td><td align="center" valign="top"><tt>56</tt></td></tr>
202
<tr><td valign="top"><tt>QLocale::CzechRepublic</tt></td><td align="center" valign="top"><tt>57</tt></td></tr>
203
<tr><td valign="top"><tt>QLocale::Denmark</tt></td><td align="center" valign="top"><tt>58</tt></td></tr>
204
<tr><td valign="top"><tt>QLocale::Djibouti</tt></td><td align="center" valign="top"><tt>59</tt></td></tr>
205
<tr><td valign="top"><tt>QLocale::Dominica</tt></td><td align="center" valign="top"><tt>60</tt></td></tr>
206
<tr><td valign="top"><tt>QLocale::DominicanRepublic</tt></td><td align="center" valign="top"><tt>61</tt></td></tr>
207
<tr><td valign="top"><tt>QLocale::EastTimor</tt></td><td align="center" valign="top"><tt>62</tt></td></tr>
208
<tr><td valign="top"><tt>QLocale::Ecuador</tt></td><td align="center" valign="top"><tt>63</tt></td></tr>
209
<tr><td valign="top"><tt>QLocale::Egypt</tt></td><td align="center" valign="top"><tt>64</tt></td></tr>
210
<tr><td valign="top"><tt>QLocale::ElSalvador</tt></td><td align="center" valign="top"><tt>65</tt></td></tr>
211
<tr><td valign="top"><tt>QLocale::EquatorialGuinea</tt></td><td align="center" valign="top"><tt>66</tt></td></tr>
212
<tr><td valign="top"><tt>QLocale::Eritrea</tt></td><td align="center" valign="top"><tt>67</tt></td></tr>
213
<tr><td valign="top"><tt>QLocale::Estonia</tt></td><td align="center" valign="top"><tt>68</tt></td></tr>
214
<tr><td valign="top"><tt>QLocale::Ethiopia</tt></td><td align="center" valign="top"><tt>69</tt></td></tr>
215
<tr><td valign="top"><tt>QLocale::FalklandIslands</tt></td><td align="center" valign="top"><tt>70</tt></td></tr>
216
<tr><td valign="top"><tt>QLocale::FaroeIslands</tt></td><td align="center" valign="top"><tt>71</tt></td></tr>
217
<tr><td valign="top"><tt>QLocale::FijiCountry</tt></td><td align="center" valign="top"><tt>72</tt></td></tr>
218
<tr><td valign="top"><tt>QLocale::Finland</tt></td><td align="center" valign="top"><tt>73</tt></td></tr>
219
<tr><td valign="top"><tt>QLocale::France</tt></td><td align="center" valign="top"><tt>74</tt></td></tr>
220
<tr><td valign="top"><tt>QLocale::MetropolitanFrance</tt></td><td align="center" valign="top"><tt>75</tt></td></tr>
221
<tr><td valign="top"><tt>QLocale::FrenchGuiana</tt></td><td align="center" valign="top"><tt>76</tt></td></tr>
222
<tr><td valign="top"><tt>QLocale::FrenchPolynesia</tt></td><td align="center" valign="top"><tt>77</tt></td></tr>
223
<tr><td valign="top"><tt>QLocale::FrenchSouthernTerritories</tt></td><td align="center" valign="top"><tt>78</tt></td></tr>
224
<tr><td valign="top"><tt>QLocale::Gabon</tt></td><td align="center" valign="top"><tt>79</tt></td></tr>
225
<tr><td valign="top"><tt>QLocale::Gambia</tt></td><td align="center" valign="top"><tt>80</tt></td></tr>
226
<tr><td valign="top"><tt>QLocale::Georgia</tt></td><td align="center" valign="top"><tt>81</tt></td></tr>
227
<tr><td valign="top"><tt>QLocale::Germany</tt></td><td align="center" valign="top"><tt>82</tt></td></tr>
228
<tr><td valign="top"><tt>QLocale::Ghana</tt></td><td align="center" valign="top"><tt>83</tt></td></tr>
229
<tr><td valign="top"><tt>QLocale::Gibraltar</tt></td><td align="center" valign="top"><tt>84</tt></td></tr>
230
<tr><td valign="top"><tt>QLocale::Greece</tt></td><td align="center" valign="top"><tt>85</tt></td></tr>
231
<tr><td valign="top"><tt>QLocale::Greenland</tt></td><td align="center" valign="top"><tt>86</tt></td></tr>
232
<tr><td valign="top"><tt>QLocale::Grenada</tt></td><td align="center" valign="top"><tt>87</tt></td></tr>
233
<tr><td valign="top"><tt>QLocale::Guadeloupe</tt></td><td align="center" valign="top"><tt>88</tt></td></tr>
234
<tr><td valign="top"><tt>QLocale::Guam</tt></td><td align="center" valign="top"><tt>89</tt></td></tr>
235
<tr><td valign="top"><tt>QLocale::Guatemala</tt></td><td align="center" valign="top"><tt>90</tt></td></tr>
236
<tr><td valign="top"><tt>QLocale::Guinea</tt></td><td align="center" valign="top"><tt>91</tt></td></tr>
237
<tr><td valign="top"><tt>QLocale::GuineaBissau</tt></td><td align="center" valign="top"><tt>92</tt></td></tr>
238
<tr><td valign="top"><tt>QLocale::Guyana</tt></td><td align="center" valign="top"><tt>93</tt></td></tr>
239
<tr><td valign="top"><tt>QLocale::Haiti</tt></td><td align="center" valign="top"><tt>94</tt></td></tr>
240
<tr><td valign="top"><tt>QLocale::HeardAndMcDonaldIslands</tt></td><td align="center" valign="top"><tt>95</tt></td></tr>
241
<tr><td valign="top"><tt>QLocale::Honduras</tt></td><td align="center" valign="top"><tt>96</tt></td></tr>
242
<tr><td valign="top"><tt>QLocale::HongKong</tt></td><td align="center" valign="top"><tt>97</tt></td></tr>
243
<tr><td valign="top"><tt>QLocale::Hungary</tt></td><td align="center" valign="top"><tt>98</tt></td></tr>
244
<tr><td valign="top"><tt>QLocale::Iceland</tt></td><td align="center" valign="top"><tt>99</tt></td></tr>
245
<tr><td valign="top"><tt>QLocale::India</tt></td><td align="center" valign="top"><tt>100</tt></td></tr>
246
<tr><td valign="top"><tt>QLocale::Indonesia</tt></td><td align="center" valign="top"><tt>101</tt></td></tr>
247
<tr><td valign="top"><tt>QLocale::Iran</tt></td><td align="center" valign="top"><tt>102</tt></td></tr>
248
<tr><td valign="top"><tt>QLocale::Iraq</tt></td><td align="center" valign="top"><tt>103</tt></td></tr>
249
<tr><td valign="top"><tt>QLocale::Ireland</tt></td><td align="center" valign="top"><tt>104</tt></td></tr>
250
<tr><td valign="top"><tt>QLocale::Israel</tt></td><td align="center" valign="top"><tt>105</tt></td></tr>
251
<tr><td valign="top"><tt>QLocale::Italy</tt></td><td align="center" valign="top"><tt>106</tt></td></tr>
252
<tr><td valign="top"><tt>QLocale::Jamaica</tt></td><td align="center" valign="top"><tt>107</tt></td></tr>
253
<tr><td valign="top"><tt>QLocale::Japan</tt></td><td align="center" valign="top"><tt>108</tt></td></tr>
254
<tr><td valign="top"><tt>QLocale::Jordan</tt></td><td align="center" valign="top"><tt>109</tt></td></tr>
255
<tr><td valign="top"><tt>QLocale::Kazakhstan</tt></td><td align="center" valign="top"><tt>110</tt></td></tr>
256
<tr><td valign="top"><tt>QLocale::Kenya</tt></td><td align="center" valign="top"><tt>111</tt></td></tr>
257
<tr><td valign="top"><tt>QLocale::Kiribati</tt></td><td align="center" valign="top"><tt>112</tt></td></tr>
258
<tr><td valign="top"><tt>QLocale::DemocraticRepublicOfKorea</tt></td><td align="center" valign="top"><tt>113</tt></td></tr>
259
<tr><td valign="top"><tt>QLocale::RepublicOfKorea</tt></td><td align="center" valign="top"><tt>114</tt></td></tr>
260
<tr><td valign="top"><tt>QLocale::Kuwait</tt></td><td align="center" valign="top"><tt>115</tt></td></tr>
261
<tr><td valign="top"><tt>QLocale::Kyrgyzstan</tt></td><td align="center" valign="top"><tt>116</tt></td></tr>
262
<tr><td valign="top"><tt>QLocale::Lao</tt></td><td align="center" valign="top"><tt>117</tt></td></tr>
263
<tr><td valign="top"><tt>QLocale::Latvia</tt></td><td align="center" valign="top"><tt>118</tt></td></tr>
264
<tr><td valign="top"><tt>QLocale::Lebanon</tt></td><td align="center" valign="top"><tt>119</tt></td></tr>
265
<tr><td valign="top"><tt>QLocale::Lesotho</tt></td><td align="center" valign="top"><tt>120</tt></td></tr>
266
<tr><td valign="top"><tt>QLocale::Liberia</tt></td><td align="center" valign="top"><tt>121</tt></td></tr>
267
<tr><td valign="top"><tt>QLocale::LibyanArabJamahiriya</tt></td><td align="center" valign="top"><tt>122</tt></td></tr>
268
<tr><td valign="top"><tt>QLocale::Liechtenstein</tt></td><td align="center" valign="top"><tt>123</tt></td></tr>
269
<tr><td valign="top"><tt>QLocale::Lithuania</tt></td><td align="center" valign="top"><tt>124</tt></td></tr>
270
<tr><td valign="top"><tt>QLocale::Luxembourg</tt></td><td align="center" valign="top"><tt>125</tt></td></tr>
271
<tr><td valign="top"><tt>QLocale::Macau</tt></td><td align="center" valign="top"><tt>126</tt></td></tr>
272
<tr><td valign="top"><tt>QLocale::Macedonia</tt></td><td align="center" valign="top"><tt>127</tt></td></tr>
273
<tr><td valign="top"><tt>QLocale::Madagascar</tt></td><td align="center" valign="top"><tt>128</tt></td></tr>
274
<tr><td valign="top"><tt>QLocale::Malawi</tt></td><td align="center" valign="top"><tt>129</tt></td></tr>
275
<tr><td valign="top"><tt>QLocale::Malaysia</tt></td><td align="center" valign="top"><tt>130</tt></td></tr>
276
<tr><td valign="top"><tt>QLocale::Maldives</tt></td><td align="center" valign="top"><tt>131</tt></td></tr>
277
<tr><td valign="top"><tt>QLocale::Mali</tt></td><td align="center" valign="top"><tt>132</tt></td></tr>
278
<tr><td valign="top"><tt>QLocale::Malta</tt></td><td align="center" valign="top"><tt>133</tt></td></tr>
279
<tr><td valign="top"><tt>QLocale::MarshallIslands</tt></td><td align="center" valign="top"><tt>134</tt></td></tr>
280
<tr><td valign="top"><tt>QLocale::Martinique</tt></td><td align="center" valign="top"><tt>135</tt></td></tr>
281
<tr><td valign="top"><tt>QLocale::Mauritania</tt></td><td align="center" valign="top"><tt>136</tt></td></tr>
282
<tr><td valign="top"><tt>QLocale::Mauritius</tt></td><td align="center" valign="top"><tt>137</tt></td></tr>
283
<tr><td valign="top"><tt>QLocale::Mayotte</tt></td><td align="center" valign="top"><tt>138</tt></td></tr>
284
<tr><td valign="top"><tt>QLocale::Mexico</tt></td><td align="center" valign="top"><tt>139</tt></td></tr>
285
<tr><td valign="top"><tt>QLocale::Micronesia</tt></td><td align="center" valign="top"><tt>140</tt></td></tr>
286
<tr><td valign="top"><tt>QLocale::Moldova</tt></td><td align="center" valign="top"><tt>141</tt></td></tr>
287
<tr><td valign="top"><tt>QLocale::Monaco</tt></td><td align="center" valign="top"><tt>142</tt></td></tr>
288
<tr><td valign="top"><tt>QLocale::Mongolia</tt></td><td align="center" valign="top"><tt>143</tt></td></tr>
289
<tr><td valign="top"><tt>QLocale::Montserrat</tt></td><td align="center" valign="top"><tt>144</tt></td></tr>
290
<tr><td valign="top"><tt>QLocale::Morocco</tt></td><td align="center" valign="top"><tt>145</tt></td></tr>
291
<tr><td valign="top"><tt>QLocale::Mozambique</tt></td><td align="center" valign="top"><tt>146</tt></td></tr>
292
<tr><td valign="top"><tt>QLocale::Myanmar</tt></td><td align="center" valign="top"><tt>147</tt></td></tr>
293
<tr><td valign="top"><tt>QLocale::Namibia</tt></td><td align="center" valign="top"><tt>148</tt></td></tr>
294
<tr><td valign="top"><tt>QLocale::NauruCountry</tt></td><td align="center" valign="top"><tt>149</tt></td></tr>
295
<tr><td valign="top"><tt>QLocale::Nepal</tt></td><td align="center" valign="top"><tt>150</tt></td></tr>
296
<tr><td valign="top"><tt>QLocale::Netherlands</tt></td><td align="center" valign="top"><tt>151</tt></td></tr>
297
<tr><td valign="top"><tt>QLocale::NetherlandsAntilles</tt></td><td align="center" valign="top"><tt>152</tt></td></tr>
298
<tr><td valign="top"><tt>QLocale::NewCaledonia</tt></td><td align="center" valign="top"><tt>153</tt></td></tr>
299
<tr><td valign="top"><tt>QLocale::NewZealand</tt></td><td align="center" valign="top"><tt>154</tt></td></tr>
300
<tr><td valign="top"><tt>QLocale::Nicaragua</tt></td><td align="center" valign="top"><tt>155</tt></td></tr>
301
<tr><td valign="top"><tt>QLocale::Niger</tt></td><td align="center" valign="top"><tt>156</tt></td></tr>
302
<tr><td valign="top"><tt>QLocale::Nigeria</tt></td><td align="center" valign="top"><tt>157</tt></td></tr>
303
<tr><td valign="top"><tt>QLocale::Niue</tt></td><td align="center" valign="top"><tt>158</tt></td></tr>
304
<tr><td valign="top"><tt>QLocale::NorfolkIsland</tt></td><td align="center" valign="top"><tt>159</tt></td></tr>
305
<tr><td valign="top"><tt>QLocale::NorthernMarianaIslands</tt></td><td align="center" valign="top"><tt>160</tt></td></tr>
306
<tr><td valign="top"><tt>QLocale::Norway</tt></td><td align="center" valign="top"><tt>161</tt></td></tr>
307
<tr><td valign="top"><tt>QLocale::Oman</tt></td><td align="center" valign="top"><tt>162</tt></td></tr>
308
<tr><td valign="top"><tt>QLocale::Pakistan</tt></td><td align="center" valign="top"><tt>163</tt></td></tr>
309
<tr><td valign="top"><tt>QLocale::Palau</tt></td><td align="center" valign="top"><tt>164</tt></td></tr>
310
<tr><td valign="top"><tt>QLocale::PalestinianTerritory</tt></td><td align="center" valign="top"><tt>165</tt></td></tr>
311
<tr><td valign="top"><tt>QLocale::Panama</tt></td><td align="center" valign="top"><tt>166</tt></td></tr>
312
<tr><td valign="top"><tt>QLocale::PapuaNewGuinea</tt></td><td align="center" valign="top"><tt>167</tt></td></tr>
313
<tr><td valign="top"><tt>QLocale::Paraguay</tt></td><td align="center" valign="top"><tt>168</tt></td></tr>
314
<tr><td valign="top"><tt>QLocale::Peru</tt></td><td align="center" valign="top"><tt>169</tt></td></tr>
315
<tr><td valign="top"><tt>QLocale::Philippines</tt></td><td align="center" valign="top"><tt>170</tt></td></tr>
316
<tr><td valign="top"><tt>QLocale::Pitcairn</tt></td><td align="center" valign="top"><tt>171</tt></td></tr>
317
<tr><td valign="top"><tt>QLocale::Poland</tt></td><td align="center" valign="top"><tt>172</tt></td></tr>
318
<tr><td valign="top"><tt>QLocale::Portugal</tt></td><td align="center" valign="top"><tt>173</tt></td></tr>
319
<tr><td valign="top"><tt>QLocale::PuertoRico</tt></td><td align="center" valign="top"><tt>174</tt></td></tr>
320
<tr><td valign="top"><tt>QLocale::Qatar</tt></td><td align="center" valign="top"><tt>175</tt></td></tr>
321
<tr><td valign="top"><tt>QLocale::Reunion</tt></td><td align="center" valign="top"><tt>176</tt></td></tr>
322
<tr><td valign="top"><tt>QLocale::Romania</tt></td><td align="center" valign="top"><tt>177</tt></td></tr>
323
<tr><td valign="top"><tt>QLocale::RussianFederation</tt></td><td align="center" valign="top"><tt>178</tt></td></tr>
324
<tr><td valign="top"><tt>QLocale::Rwanda</tt></td><td align="center" valign="top"><tt>179</tt></td></tr>
325
<tr><td valign="top"><tt>QLocale::SaintKittsAndNevis</tt></td><td align="center" valign="top"><tt>180</tt></td></tr>
326
<tr><td valign="top"><tt>QLocale::StLucia</tt></td><td align="center" valign="top"><tt>181</tt></td></tr>
327
<tr><td valign="top"><tt>QLocale::StVincentAndTheGrenadines</tt></td><td align="center" valign="top"><tt>182</tt></td></tr>
328
<tr><td valign="top"><tt>QLocale::Samoa</tt></td><td align="center" valign="top"><tt>183</tt></td></tr>
329
<tr><td valign="top"><tt>QLocale::SanMarino</tt></td><td align="center" valign="top"><tt>184</tt></td></tr>
330
<tr><td valign="top"><tt>QLocale::SaoTomeAndPrincipe</tt></td><td align="center" valign="top"><tt>185</tt></td></tr>
331
<tr><td valign="top"><tt>QLocale::SaudiArabia</tt></td><td align="center" valign="top"><tt>186</tt></td></tr>
332
<tr><td valign="top"><tt>QLocale::Senegal</tt></td><td align="center" valign="top"><tt>187</tt></td></tr>
333
<tr><td valign="top"><tt>QLocale::Seychelles</tt></td><td align="center" valign="top"><tt>188</tt></td></tr>
334
<tr><td valign="top"><tt>QLocale::SierraLeone</tt></td><td align="center" valign="top"><tt>189</tt></td></tr>
335
<tr><td valign="top"><tt>QLocale::Singapore</tt></td><td align="center" valign="top"><tt>190</tt></td></tr>
336
<tr><td valign="top"><tt>QLocale::Slovakia</tt></td><td align="center" valign="top"><tt>191</tt></td></tr>
337
<tr><td valign="top"><tt>QLocale::Slovenia</tt></td><td align="center" valign="top"><tt>192</tt></td></tr>
338
<tr><td valign="top"><tt>QLocale::SolomonIslands</tt></td><td align="center" valign="top"><tt>193</tt></td></tr>
339
<tr><td valign="top"><tt>QLocale::Somalia</tt></td><td align="center" valign="top"><tt>194</tt></td></tr>
340
<tr><td valign="top"><tt>QLocale::SouthAfrica</tt></td><td align="center" valign="top"><tt>195</tt></td></tr>
341
<tr><td valign="top"><tt>QLocale::SouthGeorgiaAndTheSouthSandwichIslands</tt></td><td align="center" valign="top"><tt>196</tt></td></tr>
342
<tr><td valign="top"><tt>QLocale::Spain</tt></td><td align="center" valign="top"><tt>197</tt></td></tr>
343
<tr><td valign="top"><tt>QLocale::SriLanka</tt></td><td align="center" valign="top"><tt>198</tt></td></tr>
344
<tr><td valign="top"><tt>QLocale::StHelena</tt></td><td align="center" valign="top"><tt>199</tt></td></tr>
345
<tr><td valign="top"><tt>QLocale::StPierreAndMiquelon</tt></td><td align="center" valign="top"><tt>200</tt></td></tr>
346
<tr><td valign="top"><tt>QLocale::Sudan</tt></td><td align="center" valign="top"><tt>201</tt></td></tr>
347
<tr><td valign="top"><tt>QLocale::Suriname</tt></td><td align="center" valign="top"><tt>202</tt></td></tr>
348
<tr><td valign="top"><tt>QLocale::SvalbardAndJanMayenIslands</tt></td><td align="center" valign="top"><tt>203</tt></td></tr>
349
<tr><td valign="top"><tt>QLocale::Swaziland</tt></td><td align="center" valign="top"><tt>204</tt></td></tr>
350
<tr><td valign="top"><tt>QLocale::Sweden</tt></td><td align="center" valign="top"><tt>205</tt></td></tr>
351
<tr><td valign="top"><tt>QLocale::Switzerland</tt></td><td align="center" valign="top"><tt>206</tt></td></tr>
352
<tr><td valign="top"><tt>QLocale::SyrianArabRepublic</tt></td><td align="center" valign="top"><tt>207</tt></td></tr>
353
<tr><td valign="top"><tt>QLocale::Taiwan</tt></td><td align="center" valign="top"><tt>208</tt></td></tr>
354
<tr><td valign="top"><tt>QLocale::Tajikistan</tt></td><td align="center" valign="top"><tt>209</tt></td></tr>
355
<tr><td valign="top"><tt>QLocale::Tanzania</tt></td><td align="center" valign="top"><tt>210</tt></td></tr>
356
<tr><td valign="top"><tt>QLocale::Thailand</tt></td><td align="center" valign="top"><tt>211</tt></td></tr>
357
<tr><td valign="top"><tt>QLocale::Togo</tt></td><td align="center" valign="top"><tt>212</tt></td></tr>
358
<tr><td valign="top"><tt>QLocale::Tokelau</tt></td><td align="center" valign="top"><tt>213</tt></td></tr>
359
<tr><td valign="top"><tt>QLocale::TongaCountry</tt></td><td align="center" valign="top"><tt>214</tt></td></tr>
360
<tr><td valign="top"><tt>QLocale::TrinidadAndTobago</tt></td><td align="center" valign="top"><tt>215</tt></td></tr>
361
<tr><td valign="top"><tt>QLocale::Tunisia</tt></td><td align="center" valign="top"><tt>216</tt></td></tr>
362
<tr><td valign="top"><tt>QLocale::Turkey</tt></td><td align="center" valign="top"><tt>217</tt></td></tr>
363
<tr><td valign="top"><tt>QLocale::Turkmenistan</tt></td><td align="center" valign="top"><tt>218</tt></td></tr>
364
<tr><td valign="top"><tt>QLocale::TurksAndCaicosIslands</tt></td><td align="center" valign="top"><tt>219</tt></td></tr>
365
<tr><td valign="top"><tt>QLocale::Tuvalu</tt></td><td align="center" valign="top"><tt>220</tt></td></tr>
366
<tr><td valign="top"><tt>QLocale::Uganda</tt></td><td align="center" valign="top"><tt>221</tt></td></tr>
367
<tr><td valign="top"><tt>QLocale::Ukraine</tt></td><td align="center" valign="top"><tt>222</tt></td></tr>
368
<tr><td valign="top"><tt>QLocale::UnitedArabEmirates</tt></td><td align="center" valign="top"><tt>223</tt></td></tr>
369
<tr><td valign="top"><tt>QLocale::UnitedKingdom</tt></td><td align="center" valign="top"><tt>224</tt></td></tr>
370
<tr><td valign="top"><tt>QLocale::UnitedStates</tt></td><td align="center" valign="top"><tt>225</tt></td></tr>
371
<tr><td valign="top"><tt>QLocale::UnitedStatesMinorOutlyingIslands</tt></td><td align="center" valign="top"><tt>226</tt></td></tr>
372
<tr><td valign="top"><tt>QLocale::Uruguay</tt></td><td align="center" valign="top"><tt>227</tt></td></tr>
373
<tr><td valign="top"><tt>QLocale::Uzbekistan</tt></td><td align="center" valign="top"><tt>228</tt></td></tr>
374
<tr><td valign="top"><tt>QLocale::Vanuatu</tt></td><td align="center" valign="top"><tt>229</tt></td></tr>
375
<tr><td valign="top"><tt>QLocale::VaticanCityState</tt></td><td align="center" valign="top"><tt>230</tt></td></tr>
376
<tr><td valign="top"><tt>QLocale::Venezuela</tt></td><td align="center" valign="top"><tt>231</tt></td></tr>
377
<tr><td valign="top"><tt>QLocale::VietNam</tt></td><td align="center" valign="top"><tt>232</tt></td></tr>
378
<tr><td valign="top"><tt>QLocale::BritishVirginIslands</tt></td><td align="center" valign="top"><tt>233</tt></td></tr>
379
<tr><td valign="top"><tt>QLocale::USVirginIslands</tt></td><td align="center" valign="top"><tt>234</tt></td></tr>
380
<tr><td valign="top"><tt>QLocale::WallisAndFutunaIslands</tt></td><td align="center" valign="top"><tt>235</tt></td></tr>
381
<tr><td valign="top"><tt>QLocale::WesternSahara</tt></td><td align="center" valign="top"><tt>236</tt></td></tr>
382
<tr><td valign="top"><tt>QLocale::Yemen</tt></td><td align="center" valign="top"><tt>237</tt></td></tr>
383
<tr><td valign="top"><tt>QLocale::Yugoslavia</tt></td><td align="center" valign="top"><tt>238</tt></td></tr>
384
<tr><td valign="top"><tt>QLocale::Zambia</tt></td><td align="center" valign="top"><tt>239</tt></td></tr>
385
<tr><td valign="top"><tt>QLocale::Zimbabwe</tt></td><td align="center" valign="top"><tt>240</tt></td></tr>
387
<p>See also <a href="qlocale.html#country">country</a>().</p>
388
<h3 class="fn"><a name="Language-enum"></a>enum QLocale::Language</h3>
389
<p>This enumerated type is used to specify a language.</p>
390
<table border="1" cellpadding="2" cellspacing="1" width="40%">
391
<tr><th width="60%">Constant</th><th width="40%">Value</th></tr>
392
<tr><td valign="top"><tt>QLocale::C</tt></td><td align="center" valign="top"><tt>1</tt></td></tr>
393
<tr><td valign="top"><tt>QLocale::Abkhazian</tt></td><td align="center" valign="top"><tt>2</tt></td></tr>
394
<tr><td valign="top"><tt>QLocale::Afan</tt></td><td align="center" valign="top"><tt>3</tt></td></tr>
395
<tr><td valign="top"><tt>QLocale::Afar</tt></td><td align="center" valign="top"><tt>4</tt></td></tr>
396
<tr><td valign="top"><tt>QLocale::Afrikaans</tt></td><td align="center" valign="top"><tt>5</tt></td></tr>
397
<tr><td valign="top"><tt>QLocale::Albanian</tt></td><td align="center" valign="top"><tt>6</tt></td></tr>
398
<tr><td valign="top"><tt>QLocale::Amharic</tt></td><td align="center" valign="top"><tt>7</tt></td></tr>
399
<tr><td valign="top"><tt>QLocale::Arabic</tt></td><td align="center" valign="top"><tt>8</tt></td></tr>
400
<tr><td valign="top"><tt>QLocale::Armenian</tt></td><td align="center" valign="top"><tt>9</tt></td></tr>
401
<tr><td valign="top"><tt>QLocale::Assamese</tt></td><td align="center" valign="top"><tt>10</tt></td></tr>
402
<tr><td valign="top"><tt>QLocale::Aymara</tt></td><td align="center" valign="top"><tt>11</tt></td></tr>
403
<tr><td valign="top"><tt>QLocale::Azerbaijani</tt></td><td align="center" valign="top"><tt>12</tt></td></tr>
404
<tr><td valign="top"><tt>QLocale::Bashkir</tt></td><td align="center" valign="top"><tt>13</tt></td></tr>
405
<tr><td valign="top"><tt>QLocale::Basque</tt></td><td align="center" valign="top"><tt>14</tt></td></tr>
406
<tr><td valign="top"><tt>QLocale::Bengali</tt></td><td align="center" valign="top"><tt>15</tt></td></tr>
407
<tr><td valign="top"><tt>QLocale::Bhutani</tt></td><td align="center" valign="top"><tt>16</tt></td></tr>
408
<tr><td valign="top"><tt>QLocale::Bihari</tt></td><td align="center" valign="top"><tt>17</tt></td></tr>
409
<tr><td valign="top"><tt>QLocale::Bislama</tt></td><td align="center" valign="top"><tt>18</tt></td></tr>
410
<tr><td valign="top"><tt>QLocale::Breton</tt></td><td align="center" valign="top"><tt>19</tt></td></tr>
411
<tr><td valign="top"><tt>QLocale::Bulgarian</tt></td><td align="center" valign="top"><tt>20</tt></td></tr>
412
<tr><td valign="top"><tt>QLocale::Burmese</tt></td><td align="center" valign="top"><tt>21</tt></td></tr>
413
<tr><td valign="top"><tt>QLocale::Byelorussian</tt></td><td align="center" valign="top"><tt>22</tt></td></tr>
414
<tr><td valign="top"><tt>QLocale::Cambodian</tt></td><td align="center" valign="top"><tt>23</tt></td></tr>
415
<tr><td valign="top"><tt>QLocale::Catalan</tt></td><td align="center" valign="top"><tt>24</tt></td></tr>
416
<tr><td valign="top"><tt>QLocale::Chinese</tt></td><td align="center" valign="top"><tt>25</tt></td></tr>
417
<tr><td valign="top"><tt>QLocale::Corsican</tt></td><td align="center" valign="top"><tt>26</tt></td></tr>
418
<tr><td valign="top"><tt>QLocale::Croatian</tt></td><td align="center" valign="top"><tt>27</tt></td></tr>
419
<tr><td valign="top"><tt>QLocale::Czech</tt></td><td align="center" valign="top"><tt>28</tt></td></tr>
420
<tr><td valign="top"><tt>QLocale::Danish</tt></td><td align="center" valign="top"><tt>29</tt></td></tr>
421
<tr><td valign="top"><tt>QLocale::Dutch</tt></td><td align="center" valign="top"><tt>30</tt></td></tr>
422
<tr><td valign="top"><tt>QLocale::English</tt></td><td align="center" valign="top"><tt>31</tt></td></tr>
423
<tr><td valign="top"><tt>QLocale::Esperanto</tt></td><td align="center" valign="top"><tt>32</tt></td></tr>
424
<tr><td valign="top"><tt>QLocale::Estonian</tt></td><td align="center" valign="top"><tt>33</tt></td></tr>
425
<tr><td valign="top"><tt>QLocale::Faroese</tt></td><td align="center" valign="top"><tt>34</tt></td></tr>
426
<tr><td valign="top"><tt>QLocale::FijiLanguage</tt></td><td align="center" valign="top"><tt>35</tt></td></tr>
427
<tr><td valign="top"><tt>QLocale::Finnish</tt></td><td align="center" valign="top"><tt>36</tt></td></tr>
428
<tr><td valign="top"><tt>QLocale::French</tt></td><td align="center" valign="top"><tt>37</tt></td></tr>
429
<tr><td valign="top"><tt>QLocale::Frisian</tt></td><td align="center" valign="top"><tt>38</tt></td></tr>
430
<tr><td valign="top"><tt>QLocale::Gaelic</tt></td><td align="center" valign="top"><tt>39</tt></td></tr>
431
<tr><td valign="top"><tt>QLocale::Galician</tt></td><td align="center" valign="top"><tt>40</tt></td></tr>
432
<tr><td valign="top"><tt>QLocale::Georgian</tt></td><td align="center" valign="top"><tt>41</tt></td></tr>
433
<tr><td valign="top"><tt>QLocale::German</tt></td><td align="center" valign="top"><tt>42</tt></td></tr>
434
<tr><td valign="top"><tt>QLocale::Greek</tt></td><td align="center" valign="top"><tt>43</tt></td></tr>
435
<tr><td valign="top"><tt>QLocale::Greenlandic</tt></td><td align="center" valign="top"><tt>44</tt></td></tr>
436
<tr><td valign="top"><tt>QLocale::Guarani</tt></td><td align="center" valign="top"><tt>45</tt></td></tr>
437
<tr><td valign="top"><tt>QLocale::Gujarati</tt></td><td align="center" valign="top"><tt>46</tt></td></tr>
438
<tr><td valign="top"><tt>QLocale::Hausa</tt></td><td align="center" valign="top"><tt>47</tt></td></tr>
439
<tr><td valign="top"><tt>QLocale::Hebrew</tt></td><td align="center" valign="top"><tt>48</tt></td></tr>
440
<tr><td valign="top"><tt>QLocale::Hindi</tt></td><td align="center" valign="top"><tt>49</tt></td></tr>
441
<tr><td valign="top"><tt>QLocale::Hungarian</tt></td><td align="center" valign="top"><tt>50</tt></td></tr>
442
<tr><td valign="top"><tt>QLocale::Icelandic</tt></td><td align="center" valign="top"><tt>51</tt></td></tr>
443
<tr><td valign="top"><tt>QLocale::Indonesian</tt></td><td align="center" valign="top"><tt>52</tt></td></tr>
444
<tr><td valign="top"><tt>QLocale::Interlingua</tt></td><td align="center" valign="top"><tt>53</tt></td></tr>
445
<tr><td valign="top"><tt>QLocale::Interlingue</tt></td><td align="center" valign="top"><tt>54</tt></td></tr>
446
<tr><td valign="top"><tt>QLocale::Inuktitut</tt></td><td align="center" valign="top"><tt>55</tt></td></tr>
447
<tr><td valign="top"><tt>QLocale::Inupiak</tt></td><td align="center" valign="top"><tt>56</tt></td></tr>
448
<tr><td valign="top"><tt>QLocale::Irish</tt></td><td align="center" valign="top"><tt>57</tt></td></tr>
449
<tr><td valign="top"><tt>QLocale::Italian</tt></td><td align="center" valign="top"><tt>58</tt></td></tr>
450
<tr><td valign="top"><tt>QLocale::Japanese</tt></td><td align="center" valign="top"><tt>59</tt></td></tr>
451
<tr><td valign="top"><tt>QLocale::Javanese</tt></td><td align="center" valign="top"><tt>60</tt></td></tr>
452
<tr><td valign="top"><tt>QLocale::Kannada</tt></td><td align="center" valign="top"><tt>61</tt></td></tr>
453
<tr><td valign="top"><tt>QLocale::Kashmiri</tt></td><td align="center" valign="top"><tt>62</tt></td></tr>
454
<tr><td valign="top"><tt>QLocale::Kazakh</tt></td><td align="center" valign="top"><tt>63</tt></td></tr>
455
<tr><td valign="top"><tt>QLocale::Kinyarwanda</tt></td><td align="center" valign="top"><tt>64</tt></td></tr>
456
<tr><td valign="top"><tt>QLocale::Kirghiz</tt></td><td align="center" valign="top"><tt>65</tt></td></tr>
457
<tr><td valign="top"><tt>QLocale::Korean</tt></td><td align="center" valign="top"><tt>66</tt></td></tr>
458
<tr><td valign="top"><tt>QLocale::Kurdish</tt></td><td align="center" valign="top"><tt>67</tt></td></tr>
459
<tr><td valign="top"><tt>QLocale::Kurundi</tt></td><td align="center" valign="top"><tt>68</tt></td></tr>
460
<tr><td valign="top"><tt>QLocale::Laothian</tt></td><td align="center" valign="top"><tt>69</tt></td></tr>
461
<tr><td valign="top"><tt>QLocale::Latin</tt></td><td align="center" valign="top"><tt>70</tt></td></tr>
462
<tr><td valign="top"><tt>QLocale::Latvian</tt></td><td align="center" valign="top"><tt>71</tt></td></tr>
463
<tr><td valign="top"><tt>QLocale::Lingala</tt></td><td align="center" valign="top"><tt>72</tt></td></tr>
464
<tr><td valign="top"><tt>QLocale::Lithuanian</tt></td><td align="center" valign="top"><tt>73</tt></td></tr>
465
<tr><td valign="top"><tt>QLocale::Macedonian</tt></td><td align="center" valign="top"><tt>74</tt></td></tr>
466
<tr><td valign="top"><tt>QLocale::Malagasy</tt></td><td align="center" valign="top"><tt>75</tt></td></tr>
467
<tr><td valign="top"><tt>QLocale::Malay</tt></td><td align="center" valign="top"><tt>76</tt></td></tr>
468
<tr><td valign="top"><tt>QLocale::Malayalam</tt></td><td align="center" valign="top"><tt>77</tt></td></tr>
469
<tr><td valign="top"><tt>QLocale::Maltese</tt></td><td align="center" valign="top"><tt>78</tt></td></tr>
470
<tr><td valign="top"><tt>QLocale::Maori</tt></td><td align="center" valign="top"><tt>79</tt></td></tr>
471
<tr><td valign="top"><tt>QLocale::Marathi</tt></td><td align="center" valign="top"><tt>80</tt></td></tr>
472
<tr><td valign="top"><tt>QLocale::Moldavian</tt></td><td align="center" valign="top"><tt>81</tt></td></tr>
473
<tr><td valign="top"><tt>QLocale::Mongolian</tt></td><td align="center" valign="top"><tt>82</tt></td></tr>
474
<tr><td valign="top"><tt>QLocale::NauruLanguage</tt></td><td align="center" valign="top"><tt>83</tt></td></tr>
475
<tr><td valign="top"><tt>QLocale::Nepali</tt></td><td align="center" valign="top"><tt>84</tt></td></tr>
476
<tr><td valign="top"><tt>QLocale::Norwegian</tt></td><td align="center" valign="top"><tt>85</tt></td></tr>
477
<tr><td valign="top"><tt>QLocale::Nynorsk</tt></td><td align="center" valign="top"><tt>141</tt></td></tr>
478
<tr><td valign="top"><tt>QLocale::Occitan</tt></td><td align="center" valign="top"><tt>86</tt></td></tr>
479
<tr><td valign="top"><tt>QLocale::Oriya</tt></td><td align="center" valign="top"><tt>87</tt></td></tr>
480
<tr><td valign="top"><tt>QLocale::Pashto</tt></td><td align="center" valign="top"><tt>88</tt></td></tr>
481
<tr><td valign="top"><tt>QLocale::Persian</tt></td><td align="center" valign="top"><tt>89</tt></td></tr>
482
<tr><td valign="top"><tt>QLocale::Polish</tt></td><td align="center" valign="top"><tt>90</tt></td></tr>
483
<tr><td valign="top"><tt>QLocale::Portuguese</tt></td><td align="center" valign="top"><tt>91</tt></td></tr>
484
<tr><td valign="top"><tt>QLocale::Punjabi</tt></td><td align="center" valign="top"><tt>92</tt></td></tr>
485
<tr><td valign="top"><tt>QLocale::Quechua</tt></td><td align="center" valign="top"><tt>93</tt></td></tr>
486
<tr><td valign="top"><tt>QLocale::RhaetoRomance</tt></td><td align="center" valign="top"><tt>94</tt></td></tr>
487
<tr><td valign="top"><tt>QLocale::Romanian</tt></td><td align="center" valign="top"><tt>95</tt></td></tr>
488
<tr><td valign="top"><tt>QLocale::Russian</tt></td><td align="center" valign="top"><tt>96</tt></td></tr>
489
<tr><td valign="top"><tt>QLocale::Samoan</tt></td><td align="center" valign="top"><tt>97</tt></td></tr>
490
<tr><td valign="top"><tt>QLocale::Sangho</tt></td><td align="center" valign="top"><tt>98</tt></td></tr>
491
<tr><td valign="top"><tt>QLocale::Sanskrit</tt></td><td align="center" valign="top"><tt>99</tt></td></tr>
492
<tr><td valign="top"><tt>QLocale::Serbian</tt></td><td align="center" valign="top"><tt>100</tt></td></tr>
493
<tr><td valign="top"><tt>QLocale::SerboCroatian</tt></td><td align="center" valign="top"><tt>101</tt></td></tr>
494
<tr><td valign="top"><tt>QLocale::Sesotho</tt></td><td align="center" valign="top"><tt>102</tt></td></tr>
495
<tr><td valign="top"><tt>QLocale::Setswana</tt></td><td align="center" valign="top"><tt>103</tt></td></tr>
496
<tr><td valign="top"><tt>QLocale::Shona</tt></td><td align="center" valign="top"><tt>104</tt></td></tr>
497
<tr><td valign="top"><tt>QLocale::Sindhi</tt></td><td align="center" valign="top"><tt>105</tt></td></tr>
498
<tr><td valign="top"><tt>QLocale::Singhalese</tt></td><td align="center" valign="top"><tt>106</tt></td></tr>
499
<tr><td valign="top"><tt>QLocale::Siswati</tt></td><td align="center" valign="top"><tt>107</tt></td></tr>
500
<tr><td valign="top"><tt>QLocale::Slovak</tt></td><td align="center" valign="top"><tt>108</tt></td></tr>
501
<tr><td valign="top"><tt>QLocale::Slovenian</tt></td><td align="center" valign="top"><tt>109</tt></td></tr>
502
<tr><td valign="top"><tt>QLocale::Somali</tt></td><td align="center" valign="top"><tt>110</tt></td></tr>
503
<tr><td valign="top"><tt>QLocale::Spanish</tt></td><td align="center" valign="top"><tt>111</tt></td></tr>
504
<tr><td valign="top"><tt>QLocale::Sundanese</tt></td><td align="center" valign="top"><tt>112</tt></td></tr>
505
<tr><td valign="top"><tt>QLocale::Swahili</tt></td><td align="center" valign="top"><tt>113</tt></td></tr>
506
<tr><td valign="top"><tt>QLocale::Swedish</tt></td><td align="center" valign="top"><tt>114</tt></td></tr>
507
<tr><td valign="top"><tt>QLocale::Tagalog</tt></td><td align="center" valign="top"><tt>115</tt></td></tr>
508
<tr><td valign="top"><tt>QLocale::Tajik</tt></td><td align="center" valign="top"><tt>116</tt></td></tr>
509
<tr><td valign="top"><tt>QLocale::Tamil</tt></td><td align="center" valign="top"><tt>117</tt></td></tr>
510
<tr><td valign="top"><tt>QLocale::Tatar</tt></td><td align="center" valign="top"><tt>118</tt></td></tr>
511
<tr><td valign="top"><tt>QLocale::Telugu</tt></td><td align="center" valign="top"><tt>119</tt></td></tr>
512
<tr><td valign="top"><tt>QLocale::Thai</tt></td><td align="center" valign="top"><tt>120</tt></td></tr>
513
<tr><td valign="top"><tt>QLocale::Tibetan</tt></td><td align="center" valign="top"><tt>121</tt></td></tr>
514
<tr><td valign="top"><tt>QLocale::Tigrinya</tt></td><td align="center" valign="top"><tt>122</tt></td></tr>
515
<tr><td valign="top"><tt>QLocale::TongaLanguage</tt></td><td align="center" valign="top"><tt>123</tt></td></tr>
516
<tr><td valign="top"><tt>QLocale::Tsonga</tt></td><td align="center" valign="top"><tt>124</tt></td></tr>
517
<tr><td valign="top"><tt>QLocale::Turkish</tt></td><td align="center" valign="top"><tt>125</tt></td></tr>
518
<tr><td valign="top"><tt>QLocale::Turkmen</tt></td><td align="center" valign="top"><tt>126</tt></td></tr>
519
<tr><td valign="top"><tt>QLocale::Twi</tt></td><td align="center" valign="top"><tt>127</tt></td></tr>
520
<tr><td valign="top"><tt>QLocale::Uigur</tt></td><td align="center" valign="top"><tt>128</tt></td></tr>
521
<tr><td valign="top"><tt>QLocale::Ukrainian</tt></td><td align="center" valign="top"><tt>129</tt></td></tr>
522
<tr><td valign="top"><tt>QLocale::Urdu</tt></td><td align="center" valign="top"><tt>130</tt></td></tr>
523
<tr><td valign="top"><tt>QLocale::Uzbek</tt></td><td align="center" valign="top"><tt>131</tt></td></tr>
524
<tr><td valign="top"><tt>QLocale::Vietnamese</tt></td><td align="center" valign="top"><tt>132</tt></td></tr>
525
<tr><td valign="top"><tt>QLocale::Volapuk</tt></td><td align="center" valign="top"><tt>133</tt></td></tr>
526
<tr><td valign="top"><tt>QLocale::Welsh</tt></td><td align="center" valign="top"><tt>134</tt></td></tr>
527
<tr><td valign="top"><tt>QLocale::Wolof</tt></td><td align="center" valign="top"><tt>135</tt></td></tr>
528
<tr><td valign="top"><tt>QLocale::Xhosa</tt></td><td align="center" valign="top"><tt>136</tt></td></tr>
529
<tr><td valign="top"><tt>QLocale::Yiddish</tt></td><td align="center" valign="top"><tt>137</tt></td></tr>
530
<tr><td valign="top"><tt>QLocale::Yoruba</tt></td><td align="center" valign="top"><tt>138</tt></td></tr>
531
<tr><td valign="top"><tt>QLocale::Zhuang</tt></td><td align="center" valign="top"><tt>139</tt></td></tr>
532
<tr><td valign="top"><tt>QLocale::Zulu</tt></td><td align="center" valign="top"><tt>140</tt></td></tr>
534
<p>See also <a href="qlocale.html#language">language</a>().</p>
536
<h2>Member Function Documentation</h2>
537
<h3 class="fn"><a name="QLocale"></a>QLocale::QLocale ()</h3>
538
<p>Constructs a <a href="qlocale.html">QLocale</a> object initialized with the default locale.</p>
539
<p>See also <a href="qlocale.html#setDefault">setDefault</a>().</p>
540
<h3 class="fn"><a name="QLocale-2"></a>QLocale::QLocale ( const <a href="qstring.html">QString</a> & <i>name</i> )</h3>
541
<p>Constructs a <a href="qlocale.html">QLocale</a> object with the specified <i>name</i>, which has the format "language[_country][.codeset][<a href="mailto:@modifier">@modifier</a>]" or "C", where:</p>
543
<li>language is a lowercase, two-letter, ISO 639 language code,</li>
544
<li>territory is an uppercase, two-letter, ISO 3166 country code,</li>
545
<li>and codeset and modifier are ignored.</li>
547
<p>If the string violates the locale format, or language is not a valid ISO 369 code, the "C" locale is used instead. If country is not present, or is not a valid ISO 3166 code, the most appropriate country is chosen for the specified language.</p>
548
<p>The language and country codes are converted to their respective <tt>Language</tt> and <tt>Country</tt> enums. After this conversion is performed the constructor behaves exactly like <a href="qlocale.html">QLocale</a>(Country, Language).</p>
549
<p>This constructor is much slower than <a href="qlocale.html">QLocale</a>(Country, Language).</p>
550
<p>See also <a href="qlocale.html#name">name</a>().</p>
551
<h3 class="fn"><a name="QLocale-3"></a>QLocale::QLocale ( <a href="qlocale.html#Language-enum">Language</a> <i>language</i>, <a href="qlocale.html#Country-enum">Country</a> <i>country</i> = AnyCountry )</h3>
552
<p>Constructs a <a href="qlocale.html">QLocale</a> object with the specified <i>language</i> and <i>country</i>.</p>
554
<li>If the language/country pair is found in the database, it is used.</li>
555
<li>If the language is found but the country is not, or if the country is <tt>AnyCountry</tt>, the language is used with the most appropriate available country (for example, Germany for German),</li>
556
<li>If neither the language nor the country are found, <a href="qlocale.html">QLocale</a> defaults to the default locale (see <a href="qlocale.html#setDefault">setDefault</a>()).</li>
558
<p>The language and country that are actually used can be queried using <a href="qlocale.html#language">language</a>() and <a href="qlocale.html#country">country</a>().</p>
559
<p>See also <a href="qlocale.html#setDefault">setDefault</a>(), <a href="qlocale.html#language">language</a>(), and <a href="qlocale.html#country">country</a>().</p>
560
<h3 class="fn"><a name="QLocale-4"></a>QLocale::QLocale ( const QLocale & <i>other</i> )</h3>
561
<p>Constructs a <a href="qlocale.html">QLocale</a> object as a copy of <i>other</i>.</p>
562
<h3 class="fn"><a name="c"></a>QLocale QLocale::c () <tt> [static]</tt></h3>
563
<p>Returns a <a href="qlocale.html">QLocale</a> object initialized to the "C" locale.</p>
564
<p>See also <a href="qlocale.html#system">system</a>().</p>
565
<h3 class="fn"><a name="country"></a><a href="qlocale.html#Country-enum">Country</a> QLocale::country () const</h3>
566
<p>Returns the country of this locale.</p>
567
<p>See also <a href="qlocale.html#language">language</a>(), <a href="qlocale.html#countryToString">countryToString</a>(), and <a href="qlocale.html#name">name</a>().</p>
568
<h3 class="fn"><a name="countryToString"></a><a href="qstring.html">QString</a> QLocale::countryToString ( <a href="qlocale.html#Country-enum">Country</a> <i>country</i> ) <tt> [static]</tt></h3>
569
<p>Returns a <a href="qstring.html">QString</a> containing the name of <i>country</i>.</p>
570
<p>See also <a href="qlocale.html#country">country</a>() and <a href="qlocale.html#name">name</a>().</p>
571
<h3 class="fn"><a name="language"></a><a href="qlocale.html#Language-enum">Language</a> QLocale::language () const</h3>
572
<p>Returns the language of this locale.</p>
573
<p>See also <a href="qlocale.html#country">country</a>(), <a href="qlocale.html#languageToString">languageToString</a>(), and <a href="qlocale.html#name">name</a>().</p>
574
<h3 class="fn"><a name="languageToString"></a><a href="qstring.html">QString</a> QLocale::languageToString ( <a href="qlocale.html#Language-enum">Language</a> <i>language</i> ) <tt> [static]</tt></h3>
575
<p>Returns a <a href="qstring.html">QString</a> containing the name of <i>language</i>.</p>
576
<p>See also <a href="qlocale.html#countryToString">countryToString</a>() and <a href="qlocale.html#name">name</a>().</p>
577
<h3 class="fn"><a name="name"></a><a href="qstring.html">QString</a> QLocale::name () const</h3>
578
<p>Returns the language and country of this locale as a string of the form "language_country", where language is a lowercase, two-letter ISO 639 language code, and country is an uppercase, two-letter ISO 3166 country code.</p>
579
<p>See also <a href="qlocale.html#language">language</a>() and <a href="qlocale.html#country">country</a>().</p>
580
<h3 class="fn"><a name="setDefault"></a>void QLocale::setDefault ( const QLocale & <i>locale</i> ) <tt> [static]</tt></h3>
581
<p>Sets the global default locale to <i>locale</i>. These values are used when a <a href="qlocale.html">QLocale</a> object is constructed with no arguments. If this function is not called, the system's locale is used.</p>
582
<p><b>Warning:</b> In a multithreaded application, the default locale should be set at application startup, before any non-GUI threads are created.</p>
583
<p><b>Warning:</b> This function is not <a href="threads.html#reentrant">reentrant</a>.</p>
584
<p>See also <a href="qlocale.html#system">system</a>() and <a href="qlocale.html#c">c</a>().</p>
585
<h3 class="fn"><a name="system"></a>QLocale QLocale::system () <tt> [static]</tt></h3>
586
<p>Returns a <a href="qlocale.html">QLocale</a> object initialized to the system locale.</p>
587
<p>See also <a href="qtextcodec-qt3.html#locale">QTextCodec::locale</a>() and <a href="qlocale.html#c">c</a>().</p>
588
<h3 class="fn"><a name="toDouble"></a>double QLocale::toDouble ( const <a href="qstring.html">QString</a> & <i>s</i>, bool * <i>ok</i> = 0 ) const</h3>
589
<p>Returns the double represented by the localized string <i>s</i>, or 0.0 if the conversion failed.</p>
590
<p>If <i>ok</i> is not 0, reports failure by setting *ok to false and success by setting *ok to true.</p>
591
<p>Unlike <a href="qstring.html#toDouble">QString::toDouble</a>(), this function does not fall back to the "C" locale if the string cannot be interpreted in this locale.</p>
595
QLocale c(QLocale::C);
596
d = c.toDouble( "1234.56", &ok ); // ok == true, d == 1234.56
597
d = c.toDouble( "1,234.56", &ok ); // ok == true, d == 1234.56
598
d = c.toDouble( "1234,56", &ok ); // ok == false
600
QLocale german(QLocale::German);
601
d = german.toDouble( "1234,56", &ok ); // ok == true, d == 1234.56
602
d = german.toDouble( "1.234,56", &ok ); // ok == true, d == 1234.56
603
d = german.toDouble( "1234.56", &ok ); // ok == false
605
d = german.toDouble( "1.234", &ok ); // ok == true, d == 1234.0</pre>
606
<p>Notice that the last conversion returns 1234.0, because '.' is the thousands group separator in the German locale.</p>
607
<p>This function ignores leading and trailing whitespace.</p>
608
<p>See also <a href="qlocale.html#toFloat">toFloat</a>(), <a href="qlocale.html#toInt">toInt</a>(), and <a href="qlocale.html#toString">toString</a>().</p>
609
<h3 class="fn"><a name="toFloat"></a>float QLocale::toFloat ( const <a href="qstring.html">QString</a> & <i>s</i>, bool * <i>ok</i> = 0 ) const</h3>
610
<p>Returns the float represented by the localized string <i>s</i>, or 0.0 if the conversion failed.</p>
611
<p>If <i>ok</i> is not 0, reports failure by setting *ok to false and success by setting *ok to true.</p>
612
<p>This function ignores leading and trailing whitespace.</p>
613
<p>See also <a href="qlocale.html#toDouble">toDouble</a>(), <a href="qlocale.html#toInt">toInt</a>(), and <a href="qlocale.html#toString">toString</a>().</p>
614
<h3 class="fn"><a name="toInt"></a>int QLocale::toInt ( const <a href="qstring.html">QString</a> & <i>s</i>, bool * <i>ok</i> = 0, int <i>base</i> = 0 ) const</h3>
615
<p>Returns the int represented by the localized string <i>s</i>, using base <i>base</i>. If <i>base</i> is 0 the base is determined automatically using the following rules: If the string begins with "0x", it is assumed to be hexadecimal; if it begins with "0", it is assumed to be octal; otherwise it is assumed to be decimal.</p>
616
<p>If the conversion fails the function returns 0.</p>
617
<p>If <i>ok</i> is not 0, failure is reported by setting *ok to false, and success by setting *ok to true.</p>
618
<p>This function ignores leading and trailing whitespace.</p>
619
<p>See also <a href="qlocale.html#toUInt">toUInt</a>() and <a href="qlocale.html#toString">toString</a>().</p>
620
<h3 class="fn"><a name="toLongLong"></a><a href="qtglobal.html#qlonglong-typedef">qlonglong</a> QLocale::toLongLong ( const <a href="qstring.html">QString</a> & <i>s</i>, bool * <i>ok</i> = 0, int <i>base</i> = 0 ) const</h3>
621
<p>Returns the long long int represented by the localized string <i>s</i>, using base <i>base</i>. If <i>base</i> is 0 the base is determined automatically using the following rules: If the string begins with "0x", it is assumed to be hexadecimal; if it begins with "0", it is assumed to be octal; otherwise it is assumed to be decimal.</p>
622
<p>If the conversion fails the function returns 0.</p>
623
<p>If <i>ok</i> is not 0, failure is reported by setting *ok to false, and success by setting *ok to true.</p>
624
<p>This function ignores leading and trailing whitespace.</p>
625
<p>See also <a href="qlocale.html#toInt">toInt</a>(), <a href="qlocale.html#toULongLong">toULongLong</a>(), <a href="qlocale.html#toDouble">toDouble</a>(), and <a href="qlocale.html#toString">toString</a>().</p>
626
<h3 class="fn"><a name="toShort"></a>short QLocale::toShort ( const <a href="qstring.html">QString</a> & <i>s</i>, bool * <i>ok</i> = 0, int <i>base</i> = 0 ) const</h3>
627
<p>Returns the short int represented by the localized string <i>s</i>, using base <i>base</i>. If <i>base</i> is 0 the base is determined automatically using the following rules: If the string begins with "0x", it is assumed to be hexadecimal; if it begins with "0", it is assumed to be octal; otherwise it is assumed to be decimal.</p>
628
<p>If the conversion fails the function returns 0.</p>
629
<p>If <i>ok</i> is not 0, failure is reported by setting *ok to false, and success by setting *ok to true.</p>
630
<p>This function ignores leading and trailing whitespace.</p>
631
<p>See also <a href="qlocale.html#toUShort">toUShort</a>() and <a href="qlocale.html#toString">toString</a>().</p>
632
<h3 class="fn"><a name="toString"></a><a href="qstring.html">QString</a> QLocale::toString ( <a href="qtglobal.html#qlonglong-typedef">qlonglong</a> <i>i</i> ) const</h3>
633
<p>Returns a localized string representation of <i>i</i>.</p>
634
<p>See also <a href="qlocale.html#toLongLong">toLongLong</a>().</p>
635
<h3 class="fn"><a name="toString-2"></a><a href="qstring.html">QString</a> QLocale::toString ( <a href="qtglobal.html#qulonglong-typedef">qulonglong</a> <i>i</i> ) const</h3>
636
<p>This is an overloaded member function, provided for convenience. It behaves essentially like the above function.</p>
637
<p>See also <a href="qlocale.html#toULongLong">toULongLong</a>().</p>
638
<h3 class="fn"><a name="toString-3"></a><a href="qstring.html">QString</a> QLocale::toString ( double <i>i</i>, char <i>f</i> = 'g', int <i>prec</i> = 6 ) const</h3>
639
<p>This is an overloaded member function, provided for convenience. It behaves essentially like the above function.</p>
640
<p><i>f</i> and <i>prec</i> have the same meaning as in QString::number(double, char, int).</p>
641
<p>See also <a href="qlocale.html#toDouble">toDouble</a>().</p>
642
<h3 class="fn"><a name="toString-4"></a><a href="qstring.html">QString</a> QLocale::toString ( short <i>i</i> ) const</h3>
643
<p>This is an overloaded member function, provided for convenience. It behaves essentially like the above function.</p>
644
<p>See also <a href="qlocale.html#toShort">toShort</a>().</p>
645
<h3 class="fn"><a name="toString-5"></a><a href="qstring.html">QString</a> QLocale::toString ( <a href="qtglobal.html#ushort-typedef">ushort</a> <i>i</i> ) const</h3>
646
<p>This is an overloaded member function, provided for convenience. It behaves essentially like the above function.</p>
647
<p>See also <a href="qlocale.html#toUShort">toUShort</a>().</p>
648
<h3 class="fn"><a name="toString-6"></a><a href="qstring.html">QString</a> QLocale::toString ( int <i>i</i> ) const</h3>
649
<p>This is an overloaded member function, provided for convenience. It behaves essentially like the above function.</p>
650
<p>See also <a href="qlocale.html#toInt">toInt</a>().</p>
651
<h3 class="fn"><a name="toString-7"></a><a href="qstring.html">QString</a> QLocale::toString ( <a href="qtglobal.html#uint-typedef">uint</a> <i>i</i> ) const</h3>
652
<p>This is an overloaded member function, provided for convenience. It behaves essentially like the above function.</p>
653
<p>See also <a href="qlocale.html#toUInt">toUInt</a>().</p>
654
<h3 class="fn"><a name="toString-8"></a><a href="qstring.html">QString</a> QLocale::toString ( float <i>i</i>, char <i>f</i> = 'g', int <i>prec</i> = 6 ) const</h3>
655
<p>This is an overloaded member function, provided for convenience. It behaves essentially like the above function.</p>
656
<p><i>f</i> and <i>prec</i> have the same meaning as in QString::number(double, char, int).</p>
657
<p>See also <a href="qlocale.html#toDouble">toDouble</a>().</p>
658
<h3 class="fn"><a name="toUInt"></a><a href="qtglobal.html#uint-typedef">uint</a> QLocale::toUInt ( const <a href="qstring.html">QString</a> & <i>s</i>, bool * <i>ok</i> = 0, int <i>base</i> = 0 ) const</h3>
659
<p>Returns the unsigned int represented by the localized string <i>s</i>, using base <i>base</i>. If <i>base</i> is 0 the base is determined automatically using the following rules: If the string begins with "0x", it is assumed to be hexadecimal; if it begins with "0", it is assumed to be octal; otherwise it is assumed to be decimal.</p>
660
<p>If the conversion fails the function returns 0.</p>
661
<p>If <i>ok</i> is not 0, failure is reported by setting *ok to false, and success by setting *ok to true.</p>
662
<p>This function ignores leading and trailing whitespace.</p>
663
<p>See also <a href="qlocale.html#toInt">toInt</a>() and <a href="qlocale.html#toString">toString</a>().</p>
664
<h3 class="fn"><a name="toULongLong"></a><a href="qtglobal.html#qlonglong-typedef">qlonglong</a> QLocale::toULongLong ( const <a href="qstring.html">QString</a> & <i>s</i>, bool * <i>ok</i> = 0, int <i>base</i> = 0 ) const</h3>
665
<p>Returns the unsigned long long int represented by the localized string <i>s</i>, using base <i>base</i>. If <i>base</i> is 0 the base is determined automatically using the following rules: If the string begins with "0x", it is assumed to be hexadecimal; if it begins with "0", it is assumed to be octal; otherwise it is assumed to be decimal.</p>
666
<p>If the conversion fails the function returns 0.</p>
667
<p>If <i>ok</i> is not 0, failure is reported by setting *ok to false, and success by setting *ok to true.</p>
668
<p>This function ignores leading and trailing whitespace.</p>
669
<p>See also <a href="qlocale.html#toLongLong">toLongLong</a>(), <a href="qlocale.html#toInt">toInt</a>(), <a href="qlocale.html#toDouble">toDouble</a>(), and <a href="qlocale.html#toString">toString</a>().</p>
670
<h3 class="fn"><a name="toUShort"></a><a href="qtglobal.html#ushort-typedef">ushort</a> QLocale::toUShort ( const <a href="qstring.html">QString</a> & <i>s</i>, bool * <i>ok</i> = 0, int <i>base</i> = 0 ) const</h3>
671
<p>Returns the unsigned short int represented by the localized string <i>s</i>, using base <i>base</i>. If <i>base</i> is 0 the base is determined automatically using the following rules: If the string begins with "0x", it is assumed to be hexadecimal; if it begins with "0", it is assumed to be octal; otherwise it is assumed to be decimal.</p>
672
<p>If the conversion fails the function returns 0.</p>
673
<p>If <i>ok</i> is not 0, failure is reported by setting *ok to false, and success by setting *ok to true.</p>
674
<p>This function ignores leading and trailing whitespace.</p>
675
<p>See also <a href="qlocale.html#toShort">toShort</a>() and <a href="qlocale.html#toString">toString</a>().</p>
676
<h3 class="fn"><a name="operator-not-eq"></a>bool QLocale::operator!= ( const QLocale & <i>other</i> ) const</h3>
677
<p>Returns true if the <a href="qlocale.html">QLocale</a> object is not the same as the <i>other</i> locale specified; otherwise returns false.</p>
678
<h3 class="fn"><a name="operator-eq"></a>QLocale & QLocale::operator= ( const QLocale & <i>other</i> )</h3>
679
<p>Assigns <i>other</i> to this <a href="qlocale.html">QLocale</a> object and returns a reference to this <a href="qlocale.html">QLocale</a> object.</p>
680
<h3 class="fn"><a name="operator-eq-eq"></a>bool QLocale::operator== ( const QLocale & <i>other</i> ) const</h3>
681
<p>Returns true if the <a href="qlocale.html">QLocale</a> object is the same as the <i>other</i> locale specified; otherwise returns false.</p>
682
<p /><address><hr /><div align="center">
683
<table width="100%" cellspacing="0" border="0"><tr class="address">
684
<td width="30%">Copyright © 2005 <a href="trolltech.html">Trolltech</a></td>
685
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
686
<td width="30%" align="right"><div align="right">Qt 4.0.0</div></td>
687
</tr></table></div></address></body>