summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2021-11-09 18:46:40 +0100
committerEdward Welbourne <edward.welbourne@qt.io>2021-11-10 14:10:20 +0100
commit2b093450c3ee1b280681b9a84d8753f75b97843e (patch)
tree1314d606ccad285856d95ee2016fb78faec33413 /src
parent670570708829ac506de8e48e40ed196b451a7ba1 (diff)
Improve unicodeForDigit()'s comments
I'd typo'd the Suzhou one-digit. Record that our CLDR scanner verifies this is the only number system with non-contiguous digits, rather than merely recording a (now old) CLDR version in which that was true. Change-Id: I6f5b5d1f0a5aa1cd0557f62f296777b90b603087 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/text/qlocale_tools_p.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/corelib/text/qlocale_tools_p.h b/src/corelib/text/qlocale_tools_p.h
index 61351eba6e..a4dbcf209b 100644
--- a/src/corelib/text/qlocale_tools_p.h
+++ b/src/corelib/text/qlocale_tools_p.h
@@ -99,10 +99,11 @@ template <typename UcsInt>
if (!digit)
return zero;
- // See QTBUG-85409: Suzhou's digits are U+3007, U+2021, ..., U+3029
+ // See QTBUG-85409: Suzhou's digits are U+3007, U+3021, ..., U+3029
if (zero == u'\u3007')
return u'\u3020' + digit;
- // At CLDR 36.1, no other number system's digits were discontinuous.
+ // In util/locale_database/ldml.py, LocaleScanner.numericData() asserts no
+ // other number system in CLDR has discontinuous digits.
return zero + digit;
}