@@ -132,7 +132,7 @@ namespace sysstr
132
132
static constexpr uint16_t s_lf_offset = 7 ;
133
133
static constexpr uint16_t s_cr_offset = 8 ;
134
134
static constexpr uint16_t s_zwj_offset = 9 ;
135
- static constexpr uint16_t s_special_mask = 0b0000'0011'1000 '0000 ;
135
+ static constexpr uint16_t s_special_mask = 0b0000'0001'1100 '0000 ;
136
136
137
137
enum class special : uint16_t
138
138
{
@@ -152,7 +152,7 @@ namespace sysstr
152
152
};
153
153
154
154
static constexpr uint16_t s_state_offset = 10 ;
155
- static constexpr uint16_t s_state_mask = 0b0001'1100 '0000'0000 ;
155
+ static constexpr uint16_t s_state_mask = 0b000'1110 '0000'0000 ;
156
156
157
157
static constexpr special get_special (char32_t c)
158
158
{
@@ -164,10 +164,7 @@ namespace sysstr
164
164
}
165
165
166
166
static constexpr uint16_t pack (table::value props, special sp, state st)
167
- {
168
- return props | uint16_t (sp) | (uint16_t (st) << s_state_offset);
169
- }
170
-
167
+ { return props | uint16_t (sp) | (uint16_t (st) << s_state_offset); }
171
168
static constexpr table::value basic_props (table::value props)
172
169
{ return table::value (props & table::basic_mask); }
173
170
static constexpr table::value in_cb_props (table::value props)
@@ -283,7 +280,7 @@ namespace sysstr
283
280
284
281
if (current_basic_props == table::extend || current_special == special::zwj || // GB9
285
282
current_basic_props == table::spacing_mark || // GB9a
286
- prev_basic_props == table::prepend) // GB9b
283
+ prev_basic_props == table::prepend) // GB9b
287
284
break ;
288
285
289
286
0 commit comments