diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2021-11-09 18:46:40 +0100 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2021-11-10 14:10:20 +0100 |
commit | 2b093450c3ee1b280681b9a84d8753f75b97843e (patch) | |
tree | 1314d606ccad285856d95ee2016fb78faec33413 /src | |
parent | 670570708829ac506de8e48e40ed196b451a7ba1 (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.h | 5 |
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; } |