[gsubgpos] Comment
This commit is contained in:
parent
7ec1c41a55
commit
c15efdec49
|
@ -535,6 +535,8 @@ struct hb_ot_apply_context_t :
|
||||||
bool next (unsigned *unsafe_to = nullptr)
|
bool next (unsigned *unsafe_to = nullptr)
|
||||||
{
|
{
|
||||||
assert (num_items > 0);
|
assert (num_items > 0);
|
||||||
|
/* The alternate condition below is faster at string boundaries,
|
||||||
|
* but produces subpar "unsafe-to-concat" values. */
|
||||||
while (idx + 1/*num_items*/ < end)
|
while (idx + 1/*num_items*/ < end)
|
||||||
{
|
{
|
||||||
idx++;
|
idx++;
|
||||||
|
@ -568,6 +570,8 @@ struct hb_ot_apply_context_t :
|
||||||
bool prev (unsigned *unsafe_from = nullptr)
|
bool prev (unsigned *unsafe_from = nullptr)
|
||||||
{
|
{
|
||||||
assert (num_items > 0);
|
assert (num_items > 0);
|
||||||
|
/* The alternate condition below is faster at string boundaries,
|
||||||
|
* but produces subpar "unsafe-to-concat" values. */
|
||||||
while (idx > 0/*num_items - 1*/)
|
while (idx > 0/*num_items - 1*/)
|
||||||
{
|
{
|
||||||
idx--;
|
idx--;
|
||||||
|
|
Loading…
Reference in New Issue