- hb_unicode_funcs_t *unicode = c->buffer->unicode;
- hb_glyph_info_t *info = c->buffer->info;
-
- unsigned int count = c->buffer->len;
- for (unsigned int i = 1; i < count; i++) {
- info[i].general_category() = hb_unicode_general_category (unicode, info[i].codepoint);
- info[i].combining_class() = hb_unicode_combining_class (unicode, info[i].codepoint);
- }
+ unsigned int count = buffer->len;
+ for (unsigned int i = 1; i < count; i++)
+ hb_glyph_info_set_unicode_props (&buffer->info[i], buffer->unicode);