summaryrefslogtreecommitdiffstats
path: root/src/corelib/text/qlocale.cpp
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2020-10-14 16:39:23 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2020-10-19 17:45:39 +0200
commit488584c944e10c191038970d5a79e24eee0cb9d2 (patch)
tree9a771248141bfad3eeb2197d81fd3260dd2dbe06 /src/corelib/text/qlocale.cpp
parent5a948dd50bdd76d7a04380d6bf239cf2dae684be (diff)
Refine QLocale constructor documentation
Clarify that the "minus sign" is a plain ASCII U+002D dash, not U+2212 minus sign; and, for symmetry, that the underscore is U+005F. Change-Id: I7250959d36e56f960dac24a739a1a8826a6bc578 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'src/corelib/text/qlocale.cpp')
-rw-r--r--src/corelib/text/qlocale.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/corelib/text/qlocale.cpp b/src/corelib/text/qlocale.cpp
index 59dd3c589d..035e2c4724 100644
--- a/src/corelib/text/qlocale.cpp
+++ b/src/corelib/text/qlocale.cpp
@@ -940,7 +940,8 @@ QLocale::QLocale(QLocalePrivate &dd)
\li and codeset and modifier are ignored.
\endlist
- The separator can be either underscore or a minus sign.
+ The separator can be either underscore \c{'_'} (U+005F, "low line") or a
+ dash \c{'-'} (U+002D, "hyphen-minus").
If the string violates the locale format, or language is not
a valid ISO 639 code, the "C" locale is used instead. If country