diff options
author | Edward Welbourne <eddy@chaos.org.uk> | 2020-03-16 12:31:38 +0100 |
---|---|---|
committer | Edward Welbourne <eddy@chaos.org.uk> | 2020-04-02 19:43:43 +0100 |
commit | 963931550d42d08a4cb734b8c0a82becf7b0a91c (patch) | |
tree | b1acdf5824d73d5db2d3abe0d83761b08e91a361 /util/locale_database/qlocalexml2cpp.py | |
parent | 89bd12b9ad3e4c265ddf537e845330f76ca2d399 (diff) |
Check all matches for each XPath when searching
Previously, if we found one element with required attributes, we would
search into it and ignore any later elements also with those required
attributes. This meant that, if the first didn't contain the child
elements we were looking for, we'd fail to find what we sought, if it
was in a later matching element (e.g. with some ignored attributes).
We would then go on to look for a match in a later file, where there
might have been a match we should have found in the earlier file.
Check all matches, rather than only the first match in each file. Do
the search in each file "in parallel" to save reparsing the XPath.
This clears the search code of rather hard-to-follow break/else
handling in loops; and currently makes no change to the generated
data.
Change-Id: I86b010e65b9a1fc1b79e5fdd45a5aeff1ed5d5d5
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'util/locale_database/qlocalexml2cpp.py')
0 files changed, 0 insertions, 0 deletions