[OTLayout] Whitespace
This commit is contained in:
parent
3276c354da
commit
54f84a6b85
|
@ -1196,38 +1196,38 @@ struct SubstLookup : Lookup
|
||||||
|
|
||||||
if (likely (!is_reverse ()))
|
if (likely (!is_reverse ()))
|
||||||
{
|
{
|
||||||
/* in/out forward substitution */
|
/* in/out forward substitution */
|
||||||
c->buffer->clear_output ();
|
c->buffer->clear_output ();
|
||||||
c->buffer->idx = 0;
|
c->buffer->idx = 0;
|
||||||
|
|
||||||
while (c->buffer->idx < c->buffer->len)
|
while (c->buffer->idx < c->buffer->len)
|
||||||
{
|
{
|
||||||
if (digest->may_have (c->buffer->cur().codepoint) &&
|
if (digest->may_have (c->buffer->cur().codepoint) &&
|
||||||
(c->buffer->cur().mask & c->lookup_mask) &&
|
(c->buffer->cur().mask & c->lookup_mask) &&
|
||||||
apply_once (c))
|
apply_once (c))
|
||||||
ret = true;
|
ret = true;
|
||||||
else
|
else
|
||||||
c->buffer->next_glyph ();
|
c->buffer->next_glyph ();
|
||||||
}
|
}
|
||||||
if (ret)
|
if (ret)
|
||||||
c->buffer->swap_buffers ();
|
c->buffer->swap_buffers ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* in-place backward substitution */
|
/* in-place backward substitution */
|
||||||
c->buffer->remove_output ();
|
c->buffer->remove_output ();
|
||||||
c->buffer->idx = c->buffer->len - 1;
|
c->buffer->idx = c->buffer->len - 1;
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
if (digest->may_have (c->buffer->cur().codepoint) &&
|
if (digest->may_have (c->buffer->cur().codepoint) &&
|
||||||
(c->buffer->cur().mask & c->lookup_mask) &&
|
(c->buffer->cur().mask & c->lookup_mask) &&
|
||||||
apply_once (c))
|
apply_once (c))
|
||||||
ret = true;
|
ret = true;
|
||||||
else
|
else
|
||||||
c->buffer->idx--;
|
c->buffer->idx--;
|
||||||
|
|
||||||
}
|
}
|
||||||
while ((int) c->buffer->idx >= 0);
|
while ((int) c->buffer->idx >= 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in New Issue