From 2b093450c3ee1b280681b9a84d8753f75b97843e Mon Sep 17 00:00:00 2001 From: Edward Welbourne Date: Tue, 9 Nov 2021 18:46:40 +0100 Subject: [PATCH] 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 --- src/corelib/text/qlocale_tools_p.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/corelib/text/qlocale_tools_p.h b/src/corelib/text/qlocale_tools_p.h index 61351eba6e8..a4dbcf209bd 100644 --- a/src/corelib/text/qlocale_tools_p.h +++ b/src/corelib/text/qlocale_tools_p.h @@ -99,10 +99,11 @@ template 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; }