File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed
Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -239,38 +239,39 @@ struct bool_trie {
239239 constexpr bool lookup(char32_t u) const {
240240 std::uint32_t c = u;
241241 if(c < 0x800) {
242- if constexpr(r1_s == 0){
242+ if constexpr(r1_s == 0) {
243243 return false;
244- }
245- else {
244+ } else {
246245 return trie_range_leaf(c, r1[c >> 6]);
247246 }
248247 } else if(c < 0x10000) {
249248 if constexpr(r3_s == 0) {
250249 return false;
251- }
252- else {
250+ } else {
253251 std::size_t i = ((c >> 6) - 0x20);
254252 auto child = 0;
255253 if(i >= r2_t_f && i < r2_t_f + r2_s)
256254 child = r2[i - r2_t_f];
257255 return trie_range_leaf(c, r3[child]);
258256 }
259257 } else {
260- if constexpr(r6_s == 0)
258+ if constexpr(r6_s == 0) {
261259 return false;
260+ }
262261 std::size_t i4 = (c >> 12) - 0x10;
263262 auto child = 0;
264263 if constexpr(r4_s > 0) {
265- if(i4 >= r4_t_f && i4 < r4_t_f + r4_s)
264+ if(i4 >= r4_t_f && i4 < r4_t_f + r4_s) {
266265 child = r4[i4 - r4_t_f];
266+ }
267267 }
268268
269269 std::size_t i5 = (child << 6) + ((c >> 6) & 0x3f);
270270 auto leaf = 0;
271271 if constexpr(r5_s > 0) {
272- if(i5 >= r5_t_f && i5 < r5_t_f + r5_s)
272+ if(i5 >= r5_t_f && i5 < r5_t_f + r5_s) {
273273 leaf = r5[i5 - r5_t_f];
274+ }
274275 }
275276 return trie_range_leaf(c, r6[leaf]);
276277 }
@@ -9689,4 +9690,4 @@ constexpr bool is_unknown(binary_prop s)
96899690 return s == binary_prop::unknown;
96909691}
96919692
9692- } // namespace uni::detail
9693+ } // namespace uni::detail
You can’t perform that action at this time.
0 commit comments