summaryrefslogtreecommitdiffstats
path: root/src/tools/windeployqt/utils.cpp
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2024-09-11 17:14:33 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2024-09-20 11:29:21 +0200
commitf6afd98e7e7f5fce1a498a2736e8b964e4d9a9bd (patch)
treeaa06ad4c9968d5e8f6c323aa76c281efa36f09d2 /src/tools/windeployqt/utils.cpp
parentd466b6deaf4d7a653c3f66a5d0bf2be3539b52ca (diff)
Purge some archaic complications from CLDR parsing
Apparently there used to be a mechanism where an alias element in a top-level LDML element could serve to provide a parent locale as its source attribute. That is long gone and, since at least a decade ago, alias elements only ever appear in root.xml, with source="locale" and a path that starts ../ (so is a relative XPath). Ditch some complications (that I transcribed faithfully five-ish years ago when transforming the scripts), replacing them with assertions that check what's now documented in the LDML spec and confirmed by my own grep-checks in the CLDR data. This incidentally made one prior (weaker) check redundant, so I've now removed that from the look-up for the tags that identify a locale. That look-up is only ever performed after the DOM root nodes it uses have come through the scan of locale roots that now does the stronger check. Makes no difference to generated data. Change-Id: I811ffbef5f5ecb69183d68fa8bda57281f2a579d Reviewed-by: Mate Barany <mate.barany@qt.io>
Diffstat (limited to 'src/tools/windeployqt/utils.cpp')
0 files changed, 0 insertions, 0 deletions