Merge remote-tracking branch 'origin/master' into api_changes
[profile/ivi/qtbase.git] / src / corelib / tools / qlocale.qdoc
1 /****************************************************************************
2 **
3 ** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
4 ** Contact: http://www.qt-project.org/
5 **
6 ** This file is part of the documentation of the Qt Toolkit.
7 **
8 ** $QT_BEGIN_LICENSE:FDL$
9 ** GNU Free Documentation License
10 ** Alternatively, this file may be used under the terms of the GNU Free
11 ** Documentation License version 1.3 as published by the Free Software
12 ** Foundation and appearing in the file included in the packaging of
13 ** this file.
14 **
15 ** Other Usage
16 ** Alternatively, this file may be used in accordance with the terms
17 ** and conditions contained in a signed written agreement between you
18 ** and Nokia.
19 **
20 **
21 **
22 **
23 **
24 ** $QT_END_LICENSE$
25 **
26 ****************************************************************************/
27
28 /*!
29     \class QLocale
30     \brief The QLocale class converts between numbers and their
31     string representations in various languages.
32
33     \reentrant
34     \ingroup i18n
35     \ingroup string-processing
36     \ingroup shared
37
38
39     QLocale is initialized with a language/country pair in its
40     constructor and offers number-to-string and string-to-number
41     conversion functions similar to those in QString.
42
43     Example:
44
45     \snippet doc/src/snippets/code/src_corelib_tools_qlocale.cpp 0
46
47     QLocale supports the concept of a default locale, which is
48     determined from the system's locale settings at application
49     startup. The default locale can be changed by calling the
50     static member setDefault(). Setting the default locale has the
51     following effects:
52
53     \list
54     \li If a QLocale object is constructed with the default constructor,
55        it will use the default locale's settings.
56     \li QString::toInt(), QString::toDouble(), etc., interpret the
57        string according to the default locale. If this fails, it
58        falls back on the "C" locale.
59     \li QString::arg() uses the default locale to format a number when
60        its position specifier in the format string contains an 'L',
61        e.g. "%L1".
62     \endlist
63
64     The following example illustrates how to use QLocale directly:
65
66     \snippet doc/src/snippets/code/src_corelib_tools_qlocale.cpp 1
67
68     When a language/country pair is specified in the constructor, one
69     of three things can happen:
70
71     \list
72     \li If the language/country pair is found in the database, it is used.
73     \li If the language is found but the country is not, or if the country
74        is \c AnyCountry, the language is used with the most
75        appropriate available country (for example, Germany for German),
76     \li If neither the language nor the country are found, QLocale
77        defaults to the default locale (see setDefault()).
78     \endlist
79
80     Use language() and country() to determine the actual language and
81     country values used.
82
83     An alternative method for constructing a QLocale object is by
84     specifying the locale name.
85
86     \snippet doc/src/snippets/code/src_corelib_tools_qlocale.cpp 2
87
88     This constructor converts the locale name to a language/country
89     pair; it does not use the system locale database.
90
91     \note For the current keyboard input locale take a look at
92     QInputMethod::locale().
93
94     QLocale's data is based on Common Locale Data Repository v1.9.1.
95
96     The double-to-string and string-to-double conversion functions are
97     covered by the following licenses:
98
99     \legalese
100     Copyright (c) 1991 by AT&T.
101
102     Permission to use, copy, modify, and distribute this software for any
103     purpose without fee is hereby granted, provided that this entire notice
104     is included in all copies of any software which is or includes a copy
105     or modification of this software and in all copies of the supporting
106     documentation for such software.
107
108     THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
109     WARRANTY.  IN PARTICULAR, NEITHER THE AUTHOR NOR AT&T MAKES ANY
110     REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
111     OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
112
113     This product includes software developed by the University of
114     California, Berkeley and its contributors.
115
116     \sa QString::arg(), QString::toInt(), QString::toDouble(),
117     QInputMethod::locale()
118 */
119
120 /*!
121     \enum QLocale::Language
122
123     This enumerated type is used to specify a language.
124
125     \value AnyLanguage
126     \value C The "C" locale is identical in behavior to English/UnitedStates.
127     \value Abkhazian
128     \value Afan
129     \value Afar
130     \value Afrikaans
131     \value Albanian
132     \value Amharic
133     \value Arabic
134     \value Armenian
135     \value Assamese
136     \value Aymara
137     \value Azerbaijani
138     \value Bashkir
139     \value Basque
140     \value Bengali
141     \value Bhutani
142     \value Bihari
143     \value Bislama
144     \value Bosnian
145     \value Breton
146     \value Bulgarian
147     \value Burmese
148     \value Byelorussian
149     \value Cambodian
150     \value Catalan
151     \value Chinese
152     \value Cornish
153     \value Corsican
154     \value Croatian
155     \value Czech
156     \value Danish
157     \value Divehi
158     \value Dutch
159     \value English
160     \value Esperanto
161     \value Estonian
162     \value Faroese
163     \value FijiLanguage
164     \value Finnish
165     \value French
166     \value Frisian
167     \value Gaelic
168     \value Galician
169     \value Georgian
170     \value German
171     \value Greek
172     \value Greenlandic
173     \value Guarani
174     \value Gujarati
175     \value Hausa
176     \value Hebrew
177     \value Hindi
178     \value Hungarian
179     \value Icelandic
180     \value Indonesian
181     \value Interlingua
182     \value Interlingue
183     \value Inuktitut
184     \value Inupiak
185     \value Irish
186     \value Italian
187     \value Japanese
188     \value Javanese
189     \value Kannada
190     \value Kashmiri
191     \value Kazakh
192     \value Kinyarwanda
193     \value Kirghiz
194     \value Korean
195     \value Kurdish
196     \value Kurundi
197     \value Laothian
198     \value Latin
199     \value Latvian
200     \value Lingala
201     \value Lithuanian
202     \value Macedonian
203     \value Malagasy
204     \value Malay
205     \value Malayalam
206     \value Maltese
207     \value Manx
208     \value Maori
209     \value Marathi
210     \value Moldavian
211     \value Mongolian
212     \value NauruLanguage
213     \value Nepali
214     \value Norwegian
215     \value NorwegianBokmal
216     \value Nynorsk Obsolete, please use NorwegianNynorsk
217     \value NorwegianNynorsk
218     \value Occitan
219     \value Oriya
220     \value Pashto
221     \value Persian
222     \value Polish
223     \value Portuguese
224     \value Punjabi
225     \value Quechua
226     \value RhaetoRomance
227     \value Romanian
228     \value Russian
229     \value Samoan
230     \value Sangho
231     \value Sanskrit
232     \value Serbian
233     \value SerboCroatian
234     \value Sesotho
235     \value Setswana
236     \value Shona
237     \value Sindhi
238     \value Singhalese
239     \value Siswati
240     \value Slovak
241     \value Slovenian
242     \value Somali
243     \value Spanish
244     \value Sundanese
245     \value Swahili
246     \value Swedish
247     \value Tagalog
248     \value Tajik
249     \value Tamil
250     \value Tatar
251     \value Telugu
252     \value Thai
253     \value Tibetan
254     \value Tigrinya
255     \value TongaLanguage
256     \value Tsonga
257     \value Turkish
258     \value Turkmen
259     \value Twi
260     \value Uigur
261     \value Ukrainian
262     \value Urdu
263     \value Uzbek
264     \value Vietnamese
265     \value Volapuk
266     \value Welsh
267     \value Wolof
268     \value Xhosa
269     \value Yiddish
270     \value Yoruba
271     \value Zhuang
272     \value Zulu
273     \value Bosnian
274     \value Divehi
275     \value Manx
276     \value Cornish
277     \value Akan
278     \value Konkani
279     \value Ga
280     \value Igbo
281     \value Kamba
282     \value Syriac
283     \value Blin
284     \value Geez
285     \value Koro
286     \value Sidamo
287     \value Atsam
288     \value Tigre
289     \value Jju
290     \value Friulian
291     \value Venda
292     \value Ewe
293     \value Walamo
294     \value Hawaiian
295     \value Tyap
296     \value Chewa
297     \value Filipino
298     \value SwissGerman
299     \value SichuanYi
300     \value Kpelle
301     \value LowGerman
302     \value SouthNdebele
303     \value NorthernSotho
304     \value NorthernSami
305     \value Taroko
306     \value Gusii
307     \value Taita
308     \value Fulah
309     \value Kikuyu
310     \value Samburu
311     \value Sena
312     \value NorthNdebele
313     \value Rombo
314     \value Tachelhit
315     \value Kabyle
316     \value Nyankole
317     \value Bena
318     \value Vunjo
319     \value Bambara
320     \value Embu
321     \value Cherokee
322     \value Morisyen
323     \value Makonde
324     \value Langi
325     \value Ganda
326     \value Bemba
327     \value Kabuverdianu
328     \value Meru
329     \value Kalenjin
330     \value Nama
331     \value Machame
332     \value Colognian
333     \value Masai
334     \value Soga
335     \value Luyia
336     \value Asu
337     \value Teso
338     \value Saho
339     \value KoyraChiini
340     \value Rwa
341     \value Luo
342     \value Chiga
343     \value CentralMoroccoTamazight
344     \value KoyraboroSenni
345     \value Shambala
346     \omitvalue LastLanguage
347
348     \sa language(), languageToString()
349 */
350
351 /*!
352     \enum QLocale::Country
353
354     This enumerated type is used to specify a country.
355
356     \value AnyCountry
357     \value Afghanistan
358     \value Albania
359     \value Algeria
360     \value AmericanSamoa
361     \value Andorra
362     \value Angola
363     \value Anguilla
364     \value Antarctica
365     \value AntiguaAndBarbuda
366     \value Argentina
367     \value Armenia
368     \value Aruba
369     \value Australia
370     \value Austria
371     \value Azerbaijan
372     \value Bahamas
373     \value Bahrain
374     \value Bangladesh
375     \value Barbados
376     \value Belarus
377     \value Belgium
378     \value Belize
379     \value Benin
380     \value Bermuda
381     \value Bhutan
382     \value Bolivia
383     \value BosniaAndHerzegowina
384     \value Botswana
385     \value BouvetIsland
386     \value Brazil
387     \value BritishIndianOceanTerritory
388     \value BruneiDarussalam
389     \value Bulgaria
390     \value BurkinaFaso
391     \value Burundi
392     \value Cambodia
393     \value Cameroon
394     \value Canada
395     \value CapeVerde
396     \value CaymanIslands
397     \value CentralAfricanRepublic
398     \value Chad
399     \value Chile
400     \value China
401     \value ChristmasIsland
402     \value CocosIslands
403     \value Colombia
404     \value Comoros
405     \value DemocraticRepublicOfCongo
406     \value PeoplesRepublicOfCongo
407     \value CookIslands
408     \value CostaRica
409     \value IvoryCoast
410     \value Croatia
411     \value Cuba
412     \value Cyprus
413     \value CzechRepublic
414     \value Denmark
415     \value Djibouti
416     \value Dominica
417     \value DominicanRepublic
418     \value EastTimor
419     \value Ecuador
420     \value Egypt
421     \value ElSalvador
422     \value EquatorialGuinea
423     \value Eritrea
424     \value Estonia
425     \value Ethiopia
426     \value FalklandIslands
427     \value FaroeIslands
428     \value FijiCountry
429     \value Finland
430     \value France
431     \value MetropolitanFrance
432     \value FrenchGuiana
433     \value FrenchPolynesia
434     \value FrenchSouthernTerritories
435     \value Gabon
436     \value Gambia
437     \value Georgia
438     \value Germany
439     \value Ghana
440     \value Gibraltar
441     \value Greece
442     \value Greenland
443     \value Grenada
444     \value Guadeloupe
445     \value Guam
446     \value Guatemala
447     \value Guinea
448     \value GuineaBissau
449     \value Guyana
450     \value Haiti
451     \value HeardAndMcDonaldIslands
452     \value Honduras
453     \value HongKong
454     \value Hungary
455     \value Iceland
456     \value India
457     \value Indonesia
458     \value Iran
459     \value Iraq
460     \value Ireland
461     \value Israel
462     \value Italy
463     \value Jamaica
464     \value Japan
465     \value Jordan
466     \value Kazakhstan
467     \value Kenya
468     \value Kiribati
469     \value DemocraticRepublicOfKorea
470     \value RepublicOfKorea
471     \value Kuwait
472     \value Kyrgyzstan
473     \value Lao
474     \value Latvia
475     \value Lebanon
476     \value Lesotho
477     \value Liberia
478     \value LibyanArabJamahiriya
479     \value Liechtenstein
480     \value Lithuania
481     \value Luxembourg
482     \value Macau
483     \value Macedonia
484     \value Madagascar
485     \value Malawi
486     \value Malaysia
487     \value Maldives
488     \value Mali
489     \value Malta
490     \value MarshallIslands
491     \value Martinique
492     \value Mauritania
493     \value Mauritius
494     \value Mayotte
495     \value Mexico
496     \value Micronesia
497     \value Moldova
498     \value Monaco
499     \value Mongolia
500     \value Montserrat
501     \value Morocco
502     \value Mozambique
503     \value Myanmar
504     \value Namibia
505     \value NauruCountry
506     \value Nepal
507     \value Netherlands
508     \value NetherlandsAntilles
509     \value NewCaledonia
510     \value NewZealand
511     \value Nicaragua
512     \value Niger
513     \value Nigeria
514     \value Niue
515     \value NorfolkIsland
516     \value NorthernMarianaIslands
517     \value Norway
518     \value Oman
519     \value Pakistan
520     \value Palau
521     \value PalestinianTerritory
522     \value Panama
523     \value PapuaNewGuinea
524     \value Paraguay
525     \value Peru
526     \value Philippines
527     \value Pitcairn
528     \value Poland
529     \value Portugal
530     \value PuertoRico
531     \value Qatar
532     \value Reunion
533     \value Romania
534     \value RussianFederation
535     \value Rwanda
536     \value SaintKittsAndNevis
537     \value StLucia
538     \value StVincentAndTheGrenadines
539     \value Samoa
540     \value SanMarino
541     \value SaoTomeAndPrincipe
542     \value SaudiArabia
543     \value Senegal
544     \value SerbiaAndMontenegro
545     \value Seychelles
546     \value SierraLeone
547     \value Singapore
548     \value Slovakia
549     \value Slovenia
550     \value SolomonIslands
551     \value Somalia
552     \value SouthAfrica
553     \value SouthGeorgiaAndTheSouthSandwichIslands
554     \value Spain
555     \value SriLanka
556     \value StHelena
557     \value StPierreAndMiquelon
558     \value Sudan
559     \value Suriname
560     \value SvalbardAndJanMayenIslands
561     \value Swaziland
562     \value Sweden
563     \value Switzerland
564     \value SyrianArabRepublic
565     \value Taiwan
566     \value Tajikistan
567     \value Tanzania
568     \value Thailand
569     \value Togo
570     \value Tokelau
571     \value TongaCountry
572     \value TrinidadAndTobago
573     \value Tunisia
574     \value Turkey
575     \value Turkmenistan
576     \value TurksAndCaicosIslands
577     \value Tuvalu
578     \value Uganda
579     \value Ukraine
580     \value UnitedArabEmirates
581     \value UnitedKingdom
582     \value UnitedStates
583     \value UnitedStatesMinorOutlyingIslands
584     \value Uruguay
585     \value Uzbekistan
586     \value Vanuatu
587     \value VaticanCityState
588     \value Venezuela
589     \value VietNam
590     \value BritishVirginIslands
591     \value USVirginIslands
592     \value WallisAndFutunaIslands
593     \value WesternSahara
594     \value Yemen
595     \value Yugoslavia
596     \value Zambia
597     \value Zimbabwe
598     \value Montenegro
599     \value Serbia
600     \value SaintBarthelemy
601     \value SaintMartin
602     \value LatinAmericaAndTheCaribbean
603     \omitvalue LastCountry
604
605     \sa country(), countryToString()
606 */
607
608 /*!
609     \enum QLocale::Script
610
611     This enumerated type is used to specify a script.
612
613     \value AnyScript
614     \value ArabicScript
615     \value CyrillicScript
616     \value DeseretScript
617     \value GurmukhiScript
618     \value SimplifiedHanScript same as SimplifiedChineseScript
619     \value SimplifiedChineseScript same as SimplifiedHanScript
620     \value TraditionalHanScript same as TraditionalChineseScript
621     \value TraditionalChineseScript same as TraditionalHanScript
622     \value LatinScript
623     \value MongolianScript
624     \value TifinaghScript
625     \omitvalue LastScript
626
627     \sa script(), scriptToString(), languageToString()
628 */
629
630 /*!
631     \enum QLocale::FormatType
632
633     This enum describes the types of format that can be used when
634     converting QDate and QTime objects to strings.
635
636     \value LongFormat The long version of day and month names; for
637     example, returning "January" as a month name.
638
639     \value ShortFormat The short version of day and month names; for
640     example, returning "Jan" as a month name.
641
642     \value NarrowFormat A special version of day and month names for
643     use when space is limited; for example, returning "J" as a month
644     name. Note that the narrow format might contain the same text for
645     different months and days or it can even be an empty string if the
646     locale doesn't support narrow names, so you should avoid using it
647     for date formatting. Also, for the system locale this format is
648     the same as ShortFormat.
649 */
650
651 /*!
652     \enum QLocale::NumberOption
653
654     This enum defines a set of options for number-to-string and string-to-number
655     conversions. They can be retrieved with numberOptions() and set with
656     setNumberOptions().
657
658     \value OmitGroupSeparator If this option is set, the number-to-string functions
659             will not insert group separators in their return values. The default
660             is to insert group separators.
661     \value RejectGroupSeparator If this option is set, the string-to-number functions
662             will fail if they encounter group separators in their input. The default
663             is to accept numbers containing correctly placed group separators.
664
665     \sa setNumberOptions() numberOptions()
666 */
667
668 /*!
669     \enum QLocale::MeasurementSystem
670
671     This enum defines which units are used for measurement.
672
673     \value MetricSystem This value indicates metric units, such as meters,
674             centimeters and millimeters.
675     \value ImperialUSSystem This value indicates imperial units, such as inches and
676             miles as they are used in the United States.
677     \value ImperialUKSystem This value indicates imperial units, such as inches and
678             miles as they are used in the United Kingdom.
679     \value ImperialSystem Provided for compatibility. Same as ImperialUSSystem
680
681     \since 4.4
682 */
683
684
685 /*!
686     \fn bool QLocale::operator==(const QLocale &other) const
687
688     Returns true if the QLocale object is the same as the \a other
689     locale specified; otherwise returns false.
690 */
691
692 /*!
693     \fn bool QLocale::operator!=(const QLocale &other) const
694
695     Returns true if the QLocale object is not the same as the \a other
696     locale specified; otherwise returns false.
697 */
698
699 /*!
700     \enum QLocale::QuotationStyle
701
702     This enum defines a set of possible styles for locale specific quotation.
703
704     \value StandardQuotation If this option is set, the standard quotation marks
705             will be used to quote strings.
706     \value AlternateQuotation If this option is set, the alternate quotation marks
707             will be used to quote strings.
708
709     \since 4.8
710
711     \sa quoteString()
712 */
713
714 /*!
715     \internal
716     \class QSystemLocale
717     \brief The QSystemLocale class can be used to finetune the system locale
718     of the user.
719     \since 4.2
720
721     \ingroup i18n
722
723     \warning This class is only useful in very rare cases. Usually QLocale offers
724     all the functionality required for application development.
725
726     QSystemLocale allows to override the values provided by the system
727     locale (QLocale::system()).
728
729     \sa QLocale
730 */
731
732 /*!
733   \enum QSystemLocale::QueryType
734
735   Specifies the type of information queried by query(). For each value
736   the type of information to return from the query() method is listed.
737
738   \value LanguageId a uint specifying the language.
739   \value ScriptId a uint specifying the script.
740   \value CountryId a uint specifying the country.
741   \value DecimalPoint a QString specifying the decimal point.
742   \value GroupSeparator a QString specifying the group separator.
743   \value ZeroDigit a QString specifying the zero digit.
744   \value NegativeSign a QString specifying the minus sign.
745   \value PositiveSign a QString specifying the plus sign.
746   \value DateFormatLong a QString specifying the long date format
747   \value DateFormatShort a QString specifying the short date format
748   \value TimeFormatLong a QString specifying the long time format
749   \value TimeFormatShort a QString specifying the short time format
750   \value DayNameLong a QString specifying the name of a weekday. the in variant contains an integer between 1 and 7 (Monday - Sunday)
751   \value DayNameShort a QString specifying the short name of a weekday. the in variant contains an integer between 1 and 7 (Monday - Sunday)
752   \value MonthNameLong a QString specifying the name of a month. the in variant contains an integer between 1 and 12
753   \value MonthNameShort a QString specifying the short name of a month. the in variant contains an integer between 1 and 12
754   \value DateToStringLong converts the QDate stored in the in variant to a QString using the long date format
755   \value DateToStringShort converts the QDate stored in the in variant to a QString using the short date format
756   \value TimeToStringLong converts the QTime stored in the in variant to a QString using the long time format
757   \value TimeToStringShort converts the QTime stored in the in variant to a QString using the short time format
758   \value DateTimeFormatLong a QString specifying the long date time format
759   \value DateTimeFormatShort a QString specifying the short date time format
760   \value DateTimeToStringLong converts the QDateTime in the in variant to a QString using the long datetime format
761   \value DateTimeToStringShort converts the QDateTime in the in variant to a QString using the short datetime format
762   \value MeasurementSystem a QLocale::MeasurementSystem enum specifying the measurement system
763   \value AMText a string that represents the system AM designator associated with a 12-hour clock.
764   \value PMText a string that represents the system PM designator associated with a 12-hour clock.
765   \value FirstDayOfWeek a Qt::DayOfWeek enum specifiying the first day of the week
766   \value CurrencySymbol a string that represents a currency in a format QLocale::CurrencyFormat.
767   \value CurrencyToString a localized string representation of a number with a currency symbol. Converts a QSystemLocale::CurrencyToStringArgument stored in the in variant to a QString.
768   \value UILanguages a list of strings representing locale names that could be used for UI translation.
769   \value StringToStandardQuotation a QString containing a quoted version of the string ref stored in the in variant using standard quotes.
770   \value StringToAlternateQuotation a QString containing a quoted version of the string ref stored in the in variant using alternate quotes.
771   \value Weekdays a QList<Qt::DayOfWeek> specifying the regular weekdays
772   \value LocaleChanged this type is queried whenever the system locale is changed.
773   \value ListToSeparatedString a string that represents a join of a given QStringList with a locale-defined separator.
774   \value NativeLanguageName a string that represents the name of the native language.
775   \value NativeCountryName a string that represents the name of the native country.
776 */
777
778 /*!
779     \fn QLocale QSystemLocale::fallbackLocale() const
780
781     \since 4.6
782     Returns the fallback locale obtained from the system.
783 */
784
785 /*!
786     \fn QVariant QSystemLocale::query(QueryType type, QVariant in = QVariant()) const
787
788     Generic query method for locale data. Provides indirection.
789     Denotes the \a type of the query
790     with \a in as input data depending on the query.
791
792     \sa QSystemLocale::QueryType
793 */
794
795 /*!
796     \class QSystemLocale::CurrencyToStringArgument
797
798     A helper class that provides arguments for the QSystemLocale::query()
799     function with query type QSystemLocale::CurrencyToString.
800
801     \sa QSystemLocale::QueryType
802     \since 4.8
803 */
804
805 /*!
806     \fn QSystemLocale::CurrencyToStringArgument::CurrencyToStringArgument()
807     \internal
808 */
809 /*!
810     \variable QSystemLocale::CurrencyToStringArgument::value
811
812     An input value that should be converted to its string representation.
813     Contains one of QVariant::LongLong, QVariant::ULongLong or QVariant::Double
814     types.
815 */
816 /*!
817     \variable QSystemLocale::CurrencyToStringArgument::symbol
818
819     An optional argument containing a currency symbol to be used in the
820     currency string.
821 */
822
823
824 /*!
825 \fn QString QLocale::toString(short i) const
826
827 \overload
828
829 \sa toShort()
830 */
831
832 /*!
833 \fn QString QLocale::toString(ushort i) const
834
835 \overload
836
837 \sa toUShort()
838 */
839
840 /*!
841 \fn QString QLocale::toString(int i) const
842
843 \overload
844
845 \sa toInt()
846 */
847
848 /*!
849 \fn QString QLocale::toString(uint i) const
850
851 \overload
852
853 \sa toUInt()
854 */
855
856 /*
857 \fn QString QLocale::toString(long i) const
858
859 \overload
860
861 \sa  toLong()
862 */
863
864 /*
865 \fn QString QLocale::toString(ulong i) const
866
867 \overload
868
869 \sa toULong()
870 */
871
872 /*!
873 \fn QString QLocale::toString(float i, char f = 'g', int prec = 6) const
874
875 \overload
876
877 \a f and \a prec have the same meaning as in QString::number(double, char, int).
878
879 \sa toDouble()
880 */
881
882 /*!
883     \fn QString QLocale::toCurrencyString(short value, const QString &symbol) const
884     \since 4.8
885     \overload
886 */
887
888 /*!
889     \fn QString QLocale::toCurrencyString(ushort value, const QString &symbol) const
890     \since 4.8
891     \overload
892 */
893
894 /*!
895     \fn QString QLocale::toCurrencyString(int value, const QString &symbol) const
896     \since 4.8
897     \overload
898 */
899
900 /*!
901     \fn QString QLocale::toCurrencyString(uint value, const QString &symbol) const
902     \since 4.8
903     \overload
904 */
905 /*!
906     \fn QString QLocale::toCurrencyString(float value, const QString &symbol) const
907     \since 4.8
908     \overload
909 */