{
if (glyphs[i - 1] + 1 != glyphs[i])
{
+ rangeRecord[range].end = glyphs[i - 1];
range++;
rangeRecord[range].start = glyphs[i];
rangeRecord[range].value = i;
}
- rangeRecord[range].end = glyphs[i];
}
+ rangeRecord[range].end = glyphs[count - 1];
return_trace (true);
}
return_trace (true);
}
+ unsigned int count = glyphs.len ();
unsigned int num_ranges = 1;
- for (unsigned int i = 1; i < glyphs.length; i++)
+ for (unsigned int i = 1; i < count; i++)
if (glyphs[i - 1] + 1 != glyphs[i] ||
klasses[i - 1] != klasses[i])
num_ranges++;
unsigned int range = 0;
rangeRecord[range].start = glyphs[0];
rangeRecord[range].value = klasses[0];
- for (unsigned int i = 1; i < glyphs.length; i++)
+ for (unsigned int i = 1; i < count; i++)
{
if (glyphs[i - 1] + 1 != glyphs[i] ||
klasses[i - 1] != klasses[i])
{
+ rangeRecord[range].end = glyphs[i - 1];
range++;
rangeRecord[range].start = glyphs[i];
rangeRecord[range].value = klasses[i];
}
- rangeRecord[range].end = glyphs[i];
}
+ rangeRecord[range].end = glyphs[count - 1];
return_trace (true);
}
hb_codepoint_t glyph_min = glyphs[0];
hb_codepoint_t glyph_max = glyphs[glyphs.length - 1];
+ unsigned int count = glyphs.len ();
unsigned int num_ranges = 1;
- for (unsigned int i = 1; i < glyphs.length; i++)
+ for (unsigned int i = 1; i < count; i++)
if (glyphs[i - 1] + 1 != glyphs[i] ||
klasses[i - 1] != klasses[i])
num_ranges++;