We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9694206 + f148d46 commit 060fdb1Copy full SHA for 060fdb1
src/java.desktop/share/native/libharfbuzz/hb-utf.hh
@@ -458,19 +458,21 @@ struct hb_ascii_t
458
template <typename utf_t>
459
static inline const typename utf_t::codepoint_t *
460
hb_utf_offset_to_pointer (const typename utf_t::codepoint_t *start,
461
+ const typename utf_t::codepoint_t *text,
462
+ unsigned text_len,
463
signed offset)
464
{
465
hb_codepoint_t unicode;
466
467
while (offset-- > 0)
468
start = utf_t::next (start,
- start + utf_t::max_len,
469
+ text + text_len,
470
&unicode,
471
HB_BUFFER_REPLACEMENT_CODEPOINT_DEFAULT);
472
473
while (offset++ < 0)
474
start = utf_t::prev (start,
- start - utf_t::max_len,
475
+ text,
476
477
478
0 commit comments