diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-07-01 23:21:17 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-07-01 23:21:17 +0200 |
commit | 4f90623dba6a211e7b4c9e98def91605627c5072 (patch) | |
tree | dfd149b4a968abe9a9c30fb59910387d0e8a30f3 /sal/rtl/ustring.cxx | |
parent | a402fd0d520108ec62b170415b6bc7b04716e3b4 (diff) |
Clean up surrogates.hxx
Change-Id: I0eae089be1bde9db822a77bea482c10650c8a137
Diffstat (limited to 'sal/rtl/ustring.cxx')
-rw-r--r-- | sal/rtl/ustring.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sal/rtl/ustring.cxx b/sal/rtl/ustring.cxx index a79c9177a3ee..c7622bd246be 100644 --- a/sal/rtl/ustring.cxx +++ b/sal/rtl/ustring.cxx @@ -1010,8 +1010,8 @@ sal_uInt32 SAL_CALL rtl_uString_iterateCodePoints( while (incrementCodePoints < 0) { assert(n > 0); cu = string->buffer[--n]; - if (SAL_RTL_IS_LOW_SURROGATE(cu) && n != 0 && - SAL_RTL_IS_HIGH_SURROGATE(string->buffer[n - 1])) + if (isLowSurrogate(cu) && n != 0 && + isHighSurrogate(string->buffer[n - 1])) { --n; } @@ -1019,18 +1019,18 @@ sal_uInt32 SAL_CALL rtl_uString_iterateCodePoints( } assert(n >= 0 && n < string->length); cu = string->buffer[n]; - if (SAL_RTL_IS_HIGH_SURROGATE(cu) && string->length - n >= 2 && - SAL_RTL_IS_LOW_SURROGATE(string->buffer[n + 1])) + if (isHighSurrogate(cu) && string->length - n >= 2 && + isLowSurrogate(string->buffer[n + 1])) { - cp = SAL_RTL_COMBINE_SURROGATES(cu, string->buffer[n + 1]); + cp = combineSurrogates(cu, string->buffer[n + 1]); } else { cp = cu; } while (incrementCodePoints > 0) { assert(n < string->length); cu = string->buffer[n++]; - if (SAL_RTL_IS_HIGH_SURROGATE(cu) && n != string->length && - SAL_RTL_IS_LOW_SURROGATE(string->buffer[n])) + if (isHighSurrogate(cu) && n != string->length && + isLowSurrogate(string->buffer[n])) { ++n; } |