提交 d748dc76 编写于 作者: B Behdad Esfahbod

More iter inits

上级 d9867497
......@@ -506,21 +506,21 @@ struct hb_ot_apply_context_t :
auto_zwnj (true),
auto_zwj (true),
random (false),
random_state (1) {}
random_state (1) { init_iters (); }
inline void reinit_iters (void)
inline void init_iters (void)
{
iter_input.init (this, false);
iter_context.init (this, true);
}
inline void set_lookup_mask (hb_mask_t mask) { lookup_mask = mask; }
inline void set_auto_zwj (bool auto_zwj_) { auto_zwj = auto_zwj_; reinit_iters (); }
inline void set_auto_zwnj (bool auto_zwnj_) { auto_zwnj = auto_zwnj_; reinit_iters (); }
inline void set_lookup_mask (hb_mask_t mask) { lookup_mask = mask; init_iters (); }
inline void set_auto_zwj (bool auto_zwj_) { auto_zwj = auto_zwj_; init_iters (); }
inline void set_auto_zwnj (bool auto_zwnj_) { auto_zwnj = auto_zwnj_; init_iters (); }
inline void set_random (bool random_) { random = random_; }
inline void set_recurse_func (recurse_func_t func) { recurse_func = func; }
inline void set_lookup_index (unsigned int lookup_index_) { lookup_index = lookup_index_; }
inline void set_lookup_props (unsigned int lookup_props_) { lookup_props = lookup_props_; reinit_iters (); }
inline void set_lookup_props (unsigned int lookup_props_) { lookup_props = lookup_props_; init_iters (); }
inline uint32_t random_number (void)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册