diff options
author | Zeno Albisser <zeno.albisser@nokia.com> | 2011-02-16 13:18:22 (GMT) |
---|---|---|
committer | Zeno Albisser <zeno.albisser@nokia.com> | 2011-02-22 11:54:16 (GMT) |
commit | aa9bc750eb72a180f15be144d2cc6621289f59f5 (patch) | |
tree | b562ff99bb9d7d201d75e66948c7dd9caab02a1b /src/corelib/tools/qlocale.h | |
parent | 42ce38bc4db41ece082fba963f483a4ebfd78a01 (diff) | |
download | Qt-aa9bc750eb72a180f15be144d2cc6621289f59f5.zip Qt-aa9bc750eb72a180f15be144d2cc6621289f59f5.tar.gz Qt-aa9bc750eb72a180f15be144d2cc6621289f59f5.tar.bz2 |
Implemented QLocale::quoteString(...)
Reviewed-by: Denis Dzyubenko
Task-number: QTBUG-17096
Diffstat (limited to 'src/corelib/tools/qlocale.h')
-rw-r--r-- | src/corelib/tools/qlocale.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/corelib/tools/qlocale.h b/src/corelib/tools/qlocale.h index 225ae9c..924cb7b 100644 --- a/src/corelib/tools/qlocale.h +++ b/src/corelib/tools/qlocale.h @@ -97,7 +97,9 @@ public: PMText, // QString FirstDayOfWeek, // Qt::DayOfWeek CurrencySymbol, // QString in: format - FormatCurrency // QString in: qlonglong, qulonglong or double + FormatCurrency, // QString in: qlonglong, qulonglong or double + QuotationBegin, // QString in: StandardQuotation or AlternateQuotation + QuotationEnd // QString in: StandardQuotation or AlternateQuotation }; virtual QVariant query(QueryType type, QVariant in) const; virtual QLocale fallbackLocale() const; @@ -707,6 +709,10 @@ public: void setNumberOptions(NumberOptions options); NumberOptions numberOptions() const; + enum QuotationStyle { StandardQuotation, AlternateQuotation }; + QString quoteString(const QString &str, QuotationStyle qs = StandardQuotation) const; + QString quoteString(const QStringRef &str, QuotationStyle qs = StandardQuotation) const; + //private: // this should be private, but can't be struct Data { quint16 index; |