⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qlocale.3qt

📁 qt专门用于嵌入式的图形开发GUI
💻 3QT
📖 第 1 页 / 共 3 页
字号:
.TP\fCQLocale::Italian\fR.TP\fCQLocale::Japanese\fR.TP\fCQLocale::Javanese\fR.TP\fCQLocale::Kannada\fR.TP\fCQLocale::Kashmiri\fR.TP\fCQLocale::Kazakh\fR.TP\fCQLocale::Kinyarwanda\fR.TP\fCQLocale::Kirghiz\fR.TP\fCQLocale::Korean\fR.TP\fCQLocale::Kurdish\fR.TP\fCQLocale::Kurundi\fR.TP\fCQLocale::Laothian\fR.TP\fCQLocale::Latin\fR.TP\fCQLocale::Latvian\fR.TP\fCQLocale::Lingala\fR.TP\fCQLocale::Lithuanian\fR.TP\fCQLocale::Macedonian\fR.TP\fCQLocale::Malagasy\fR.TP\fCQLocale::Malay\fR.TP\fCQLocale::Malayalam\fR.TP\fCQLocale::Maltese\fR.TP\fCQLocale::Maori\fR.TP\fCQLocale::Marathi\fR.TP\fCQLocale::Moldavian\fR.TP\fCQLocale::Mongolian\fR.TP\fCQLocale::NauruLanguage\fR.TP\fCQLocale::Nepali\fR.TP\fCQLocale::Norwegian\fR.TP\fCQLocale::Occitan\fR.TP\fCQLocale::Oriya\fR.TP\fCQLocale::Pashto\fR.TP\fCQLocale::Persian\fR.TP\fCQLocale::Polish\fR.TP\fCQLocale::Portuguese\fR.TP\fCQLocale::Punjabi\fR.TP\fCQLocale::Quechua\fR.TP\fCQLocale::RhaetoRomance\fR.TP\fCQLocale::Romanian\fR.TP\fCQLocale::Russian\fR.TP\fCQLocale::Samoan\fR.TP\fCQLocale::Sangho\fR.TP\fCQLocale::Sanskrit\fR.TP\fCQLocale::Serbian\fR.TP\fCQLocale::SerboCroatian\fR.TP\fCQLocale::Sesotho\fR.TP\fCQLocale::Setswana\fR.TP\fCQLocale::Shona\fR.TP\fCQLocale::Sindhi\fR.TP\fCQLocale::Singhalese\fR.TP\fCQLocale::Siswati\fR.TP\fCQLocale::Slovak\fR.TP\fCQLocale::Slovenian\fR.TP\fCQLocale::Somali\fR.TP\fCQLocale::Spanish\fR.TP\fCQLocale::Sundanese\fR.TP\fCQLocale::Swahili\fR.TP\fCQLocale::Swedish\fR.TP\fCQLocale::Tagalog\fR.TP\fCQLocale::Tajik\fR.TP\fCQLocale::Tamil\fR.TP\fCQLocale::Tatar\fR.TP\fCQLocale::Telugu\fR.TP\fCQLocale::Thai\fR.TP\fCQLocale::Tibetan\fR.TP\fCQLocale::Tigrinya\fR.TP\fCQLocale::TongaLanguage\fR.TP\fCQLocale::Tsonga\fR.TP\fCQLocale::Turkish\fR.TP\fCQLocale::Turkmen\fR.TP\fCQLocale::Twi\fR.TP\fCQLocale::Uigur\fR.TP\fCQLocale::Ukrainian\fR.TP\fCQLocale::Urdu\fR.TP\fCQLocale::Uzbek\fR.TP\fCQLocale::Vietnamese\fR.TP\fCQLocale::Volapuk\fR.TP\fCQLocale::Welsh\fR.TP\fCQLocale::Wolof\fR.TP\fCQLocale::Xhosa\fR.TP\fCQLocale::Yiddish\fR.TP\fCQLocale::Yoruba\fR.TP\fCQLocale::Zhuang\fR.TP\fCQLocale::Zulu\fR.SH MEMBER FUNCTION DOCUMENTATION.SH "QLocale::QLocale ()"Constructs a QLocale object initialized with the default locale..PPSee also setDefault()..SH "QLocale::QLocale ( const QString & name )"Constructs a QLocale object with the specified \fIname\fR, which has the format" language[_country][.codeset][@modifier]" or "C", where:.TPlanguage is a lowercase, two-letter, ISO 639 language code,.TPterritory is an uppercase, two-letter, ISO 3166 country code,.TPand codeset and modifier are ignored..PPIf 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..PPThe language and country codes are converted to their respective Language and Country enums. After this conversion is performed the constructor behaves exactly like QLocale(Country, Language)..PPThis constructor is much slower than QLocale(Country, Language)..PPSee also name()..SH "QLocale::QLocale ( Language language, Country country = AnyCountry )"Constructs a QLocale object with the specified \fIlanguage\fR and \fIcountry\fR..TPIf the language/country pair is found in the database, it is used..TPIf the language is found but the country is not, or if the country is AnyCountry, the language is used with the most appropriate available country (for example, Germany for German),.TPIf neither the language nor the country are found, QLocale defaults to the default locale (see setDefault())..PPThe language and country that are actually used can be queried using language() and country()..PPSee also setDefault(), language(), and country()..SH "QLocale::QLocale ( const QLocale & other )"Constructs a QLocale object as a copy of \fIother\fR..SH "QLocale QLocale::c ()\fC [static]\fR"Returns a QLocale object initialized to the "C" locale..PPSee also system()..SH "Country QLocale::country () const"Returns the country of this locale..PPSee also QLocale()..SH "QString QLocale::countryToString ( Country country )\fC [static]\fR"Returns a QString containing the name of \fIcountry\fR..SH "Language QLocale::language () const"Returns the language of this locale..PPSee also QLocale()..SH "QString QLocale::languageToString ( Language language )\fC [static]\fR"Returns a QString containing the name of \fIlanguage\fR..SH "QString QLocale::name () const"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..PPSee also QLocale()..SH "QLocale & QLocale::operator= ( const QLocale & other )"Assigns \fIother\fR to this QLocale object and returns a reference to this QLocale object..SH "void QLocale::setDefault ( const QLocale & locale )\fC [static]\fR"\fBWarning:\fR This function is \fInot\fR reentrant.</p>.PPSets the global default locale to \fIlocale\fR. These values are used when a QLocale object is constructed with no arguments. If this function is not called, the system's locale is used..PP\fBWarning:\fR In a multithreaded application, the default locale should be set at application startup, before any non-GUI threads are created..PPSee also system() and c()..SH "QLocale QLocale::system ()\fC [static]\fR"Returns a QLocale object initialized to the system locale..SH "double QLocale::toDouble ( const QString & s, bool * ok = 0 ) const"Returns the double represented by the localized string \fIs\fR, or 0.0 if the conversion failed..PPIf \fIok\fR is not 0, reports failure by setting *ok to false and success by setting *ok to true..PPUnlike QString::toDouble(), this function does not fall back to the "C" locale if the string cannot be interpreted in this locale..PP.nf.br        bool ok;.br        double d;.br.br        QLocale c(QLocale::C);.br        d = c.toDouble( "1234.56", &ok );  // ok == true, d == 1234.56.br        d = c.toDouble( "1,234.56", &ok ); // ok == true, d == 1234.56.br        d = c.toDouble( "1234,56", &ok );  // ok == false.br.br        QLocale german(QLocale::German);.br        d = german.toDouble( "1234,56", &ok );  // ok == true, d == 1234.56.br        d = german.toDouble( "1.234,56", &ok ); // ok == true, d == 1234.56.br        d = german.toDouble( "1234.56", &ok );  // ok == false.br.br        d = german.toDouble( "1.234", &ok );    // ok == true, d == 1234.0.br.fi.PPNotice that the last conversion returns 1234.0, because '.' is the thousands group separator in the German locale..PPThis function ignores leading and trailing whitespace..PPSee also toString() and QString::toDouble()..SH "float QLocale::toFloat ( const QString & s, bool * ok = 0 ) const"Returns the float represented by the localized string \fIs\fR, or 0.0 if the conversion failed..PPIf \fIok\fR is not 0, reports failure by setting *ok to false and success by setting *ok to true..PPThis function ignores leading and trailing whitespace..PPSee also toString()..SH "int QLocale::toInt ( const QString & s, bool * ok = 0 ) const"Returns the int represented by the localized string \fIs\fR, or 0 if the conversion failed..PPIf \fIok\fR is not 0, reports failure by setting *ok to false and success by setting *ok to true..PPThis function ignores leading and trailing whitespace..PPSee also toString()..SH "Q_LONG QLocale::toLong ( const QString & s, bool * ok = 0 ) const"Returns the long int represented by the localized string \fIs\fR, or 0 if the conversion failed..PPIf \fIok\fR is not 0, reports failure by setting *ok to false and success by setting *ok to true..PPThis function ignores leading and trailing whitespace..PPSee also toString()..SH "Q_LLONG QLocale::toLongLong ( const QString & s, bool * ok = 0 ) const"Returns the long long int represented by the localized string \fIs\fR, or 0 if the conversion failed..PPIf \fIok\fR is not 0, reports failure by setting *ok to false and success by setting *ok to true..PPThis function ignores leading and trailing whitespace..PPSee also toString()..SH "short QLocale::toShort ( const QString & s, bool * ok = 0 ) const"Returns the short int represented by the localized string \fIs\fR, or 0 if the conversion failed..PPIf \fIok\fR is not 0, reports failure by setting *ok to false and success by setting *ok to true..PPThis function ignores leading and trailing whitespace..PPSee also toString()..SH "QString QLocale::toString ( Q_LLONG i ) const"Returns a localized string representation of \fIi\fR..PPSee also toLongLong()..SH "QString QLocale::toString ( short i ) const"This is an overloaded member function, provided for convenience. It behaves essentially like the above function..PPSee also toShort()..SH "QString QLocale::toString ( ushort i ) const"This is an overloaded member function, provided for convenience. It behaves essentially like the above function..PPSee also toUShort()..SH "QString QLocale::toString ( int i ) const"This is an overloaded member function, provided for convenience. It behaves essentially like the above function..PPSee also toInt()..SH "QString QLocale::toString ( uint i ) const"This is an overloaded member function, provided for convenience. It behaves essentially like the above function..PPSee also toUInt()..SH "QString QLocale::toString ( Q_LONG i ) const"This is an overloaded member function, provided for convenience. It behaves essentially like the above function..PPSee also toLong()..SH "QString QLocale::toString ( Q_ULONG i ) const"This is an overloaded member function, provided for convenience. It behaves essentially like the above function..PPSee also toULong()..SH "QString QLocale::toString ( Q_ULLONG i ) const"This is an overloaded member function, provided for convenience. It behaves essentially like the above function..PPSee also toULongLong()..SH "QString QLocale::toString ( float i, char f = 'g', int prec = 6 ) const"This is an overloaded member function, provided for convenience. It behaves essentially like the above function..PP\fIf\fR and \fIprec\fR have the same meaning as in QString::number(double, char, int)..PPSee also toDouble()..SH "QString QLocale::toString ( double i, char f = 'g', int prec = 6 ) const"This is an overloaded member function, provided for convenience. It behaves essentially like the above function..PP\fIf\fR and \fIprec\fR have the same meaning as in QString::number(double, char, int)..PPSee also toDouble()..SH "uint QLocale::toUInt ( const QString & s, bool * ok = 0 ) const"Returns the unsigned int represented by the localized string \fIs\fR, or 0 if the conversion failed..PPIf \fIok\fR is not 0, reports failure by setting *ok to false and success by setting *ok to true..PPThis function ignores leading and trailing whitespace..PPSee also toString()..SH "Q_ULONG QLocale::toULong ( const QString & s, bool * ok = 0 ) const"Returns the unsigned long int represented by the localized string \fIs\fR, or 0 if the conversion failed..PPIf \fIok\fR is not 0, reports failure by setting *ok to false and success by setting *ok to true..PPThis function ignores leading and trailing whitespace..PPSee also toString()..SH "Q_ULLONG QLocale::toULongLong ( const QString & s, bool * ok = 0 ) const"Returns the unsigned long long int represented by the localized string \fIs\fR, or 0 if the conversion failed..PPIf \fIok\fR is not 0, reports failure by setting *ok to false and success by setting *ok to true..PPThis function ignores leading and trailing whitespace..PPSee also toString()..SH "ushort QLocale::toUShort ( const QString & s, bool * ok = 0 ) const"Returns the unsigned short int represented by the localized string \fIs\fR, or 0 if the conversion failed..PPIf \fIok\fR is not 0, reports failure by setting *ok to false and success by setting *ok to true..PPThis function ignores leading and trailing whitespace..PPSee also toString()..SH "SEE ALSO".BR http://doc.trolltech.com/qlocale.html.BR http://www.trolltech.com/faq/tech.html.SH COPYRIGHTCopyright 1992-2001 Trolltech AS, http://www.trolltech.com.  See thelicense file included in the distribution for a complete licensestatement..SH AUTHORGenerated automatically from the source code..SH BUGSIf you find a bug in Qt, please report it as described in.BR http://doc.trolltech.com/bughowto.html .Good bug reports help us to help you. Thank you..PThe definitive Qt documentation is provided in HTML format; it islocated at $QTDIR/doc/html and can be read using Qt Assistant or witha web browser. This man page is provided as a convenience for thoseusers who prefer man pages, although this format is not officiallysupported by Trolltech. .PIf you find errors in this manual page, please report them to.BR qt-bugs@trolltech.com .Please include the name of the manual page (qlocale.3qt) and the Qtversion (3.3.5).

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -