From 488584c944e10c191038970d5a79e24eee0cb9d2 Mon Sep 17 00:00:00 2001 From: Edward Welbourne Date: Wed, 14 Oct 2020 16:39:23 +0200 Subject: 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 --- src/corelib/text/qlocale.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/corelib') 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 -- cgit v1.2.3