mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2025-07-02 23:35:28 +08:00
qt 6.6.0 clean
This commit is contained in:
@ -288,7 +288,8 @@ class LocaleScanner (object):
|
||||
assert len(digits) == 10
|
||||
zero = digits[0]
|
||||
# Qt's number-formatting code assumes digits are consecutive
|
||||
# (except Suzhou, CLDR's hanidec - see QTBUG-85409):
|
||||
# (except Suzhou - see QTBUG-85409 - which shares its zero
|
||||
# with CLDR's very-non-contiguous hanidec):
|
||||
assert all(ord(c) == i + (0x3020 if ord(zero) == 0x3007 else ord(zero))
|
||||
for i, c in enumerate(digits[1:], 1))
|
||||
yield 'zero', zero
|
||||
|
@ -379,18 +379,8 @@ class LocaleDataWriter (LocaleSourceEditor):
|
||||
|
||||
def q(val: Optional[str], size: int) -> str:
|
||||
"""Quote the value and adjust the result for tabular view."""
|
||||
chars = []
|
||||
if val is not None:
|
||||
for c in val:
|
||||
chars.append(f"'{c}'")
|
||||
s = ', '.join(chars)
|
||||
s = f'{{{s}}}'
|
||||
else:
|
||||
s = ''
|
||||
if size == 0:
|
||||
return f'{{{s}}}'
|
||||
else:
|
||||
return f'{{{s}}},'.ljust(size * 5 + 4)
|
||||
s = '' if val is None else ', '.join(f"'{c}'" for c in val)
|
||||
return f'{{{s}}}' if size == 0 else f'{{{s}}},'.ljust(size * 5 + 2)
|
||||
|
||||
for key, value in languages.items():
|
||||
code = value[1]
|
||||
|
Reference in New Issue
Block a user