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>
This commit is contained in:
Edward Welbourne 2021-11-09 18:46:40 +01:00
parent 6705707088
commit 2b093450c3

View File

@ -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;
}