mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Bring .gyb files in line with rest of code base in terms of PEP8 compliance.
This commit is contained in:
@@ -19,8 +19,7 @@
|
||||
|
||||
from GYBUnicodeDataUtils import GraphemeClusterBreakPropertyTable, get_extended_grapheme_cluster_rules_matrix
|
||||
|
||||
grapheme_cluster_break_property_table = \
|
||||
GraphemeClusterBreakPropertyTable(unicodeGraphemeBreakPropertyFile)
|
||||
break_table = GraphemeClusterBreakPropertyTable(unicodeGraphemeBreakPropertyFile)
|
||||
|
||||
}%
|
||||
|
||||
@@ -30,8 +29,7 @@ swift::unicode::GraphemeClusterBreakProperty
|
||||
swift::unicode::getGraphemeClusterBreakProperty(uint32_t C) {
|
||||
// FIXME: replace linear search with a trie lookup.
|
||||
|
||||
% for start_code_point,end_code_point,value in \
|
||||
% grapheme_cluster_break_property_table.property_value_ranges:
|
||||
% for start_code_point, end_code_point, value in break_table.property_value_ranges:
|
||||
% if start_code_point == 0:
|
||||
if (C <= ${end_code_point})
|
||||
% else:
|
||||
@@ -44,7 +42,7 @@ swift::unicode::getGraphemeClusterBreakProperty(uint32_t C) {
|
||||
}
|
||||
|
||||
const uint16_t swift::unicode::ExtendedGraphemeClusterNoBoundaryRulesMatrix[] = {
|
||||
% for row in get_extended_grapheme_cluster_rules_matrix(grapheme_cluster_break_property_table):
|
||||
% for row in get_extended_grapheme_cluster_rules_matrix(break_table):
|
||||
${row},
|
||||
% end
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user