mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
BreakIterator: fix compat with old ICU versions
This commit is contained in:
parent
5a9dca458a
commit
d8b067e66f
5 changed files with 22 additions and 2 deletions
|
@ -212,6 +212,10 @@ int32_t CodePointBreakIterator::next(int32_t n)
|
|||
{
|
||||
UBool res = utext_moveIndex32(this->fText, n);
|
||||
|
||||
#ifndef UTEXT_CURRENT32
|
||||
#define UTEXT_CURRENT32 utext_current32
|
||||
#endif
|
||||
|
||||
if (res) {
|
||||
this->lastCodePoint = UTEXT_CURRENT32(this->fText);
|
||||
return (int32_t)UTEXT_GETNATIVEINDEX(this->fText);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue