Lines Matching refs:prevSrc
537 const char16_t *prevSrc=src; in copyLowPrefixFromNulTerminated() local
542 if(--src!=prevSrc) { in copyLowPrefixFromNulTerminated()
544 buffer->appendZeroCC(prevSrc, src, errorCode); in copyLowPrefixFromNulTerminated()
598 const char16_t *prevSrc; in decompose() local
608 for(prevSrc=src; src!=limit;) { in decompose()
631 if(src!=prevSrc) { in decompose()
633 if(!buffer->appendZeroCC(prevSrc, src, errorCode)) { in decompose()
683 const char16_t *prevSrc = src; in decomposeShort() local
688 return prevSrc; in decomposeShort()
753 const uint8_t *prevSrc; in decomposeUTF8() local
767 prevSrc = src; in decomposeUTF8()
778 if (prevSrc != fastStart) { in decomposeUTF8()
781 !ByteSinkUtil::appendUnchanged(prevBoundary, prevSrc, in decomposeUTF8()
785 prevBoundary = prevSrc; in decomposeUTF8()
812 if (prevBoundary != prevSrc && norm16HasDecompBoundaryBefore(norm16)) { in decomposeUTF8()
813 if (!ByteSinkUtil::appendUnchanged(prevBoundary, prevSrc, in decomposeUTF8()
817 prevBoundary = prevSrc; in decomposeUTF8()
833 if ((src - prevSrc) > INT32_MAX) { // guard before buffer.equals() in decomposeUTF8()
864 const uint8_t *prevSrc = src; in decomposeShort() local
874 return prevSrc; in decomposeShort()
876 c = codePointFromValidUTF8(prevSrc, src); in decomposeShort()
887 return prevSrc; in decomposeShort()
889 c = codePointFromValidUTF8(prevSrc, src); in decomposeShort()
893 return prevSrc; in decomposeShort()
904 c = codePointFromValidUTF8(prevSrc, src); in decomposeShort()
913 c = codePointFromValidUTF8(prevSrc, src); in decomposeShort()
932 return prevSrc; in decomposeShort()
1466 const char16_t *prevSrc; in compose() local
1481 prevSrc = src++; in compose()
1515 … if (prevBoundary != prevSrc && !buffer.appendZeroCC(prevBoundary, prevSrc, errorCode)) { in compose()
1528 … if (prevBoundary != prevSrc && !buffer.appendZeroCC(prevBoundary, prevSrc, errorCode)) { in compose()
1544 hasCompBoundaryAfter(prevBoundary, prevSrc, onlyContiguous)) { in compose()
1545 … if (prevBoundary != prevSrc && !buffer.appendZeroCC(prevBoundary, prevSrc, errorCode)) { in compose()
1554 } else if (isJamoVT(norm16) && prevBoundary != prevSrc) { in compose()
1555 char16_t prev=*(prevSrc-1); in compose()
1580 --prevSrc; // Replace the Jamo L as well. in compose()
1581 … if (prevBoundary != prevSrc && !buffer.appendZeroCC(prevBoundary, prevSrc, errorCode)) { in compose()
1605 --prevSrc; // Replace the Hangul LV as well. in compose()
1606 … if (prevBoundary != prevSrc && !buffer.appendZeroCC(prevBoundary, prevSrc, errorCode)) { in compose()
1622 if (onlyContiguous /* FCC */ && getPreviousTrailCC(prevBoundary, prevSrc) > cc) { in compose()
1669 if (prevBoundary != prevSrc && !norm16HasCompBoundaryBefore(norm16)) { in compose()
1670 const char16_t *p = prevSrc; in compose()
1673 prevSrc = p; in compose()
1676 …if (doCompose && prevBoundary != prevSrc && !buffer.appendZeroCC(prevBoundary, prevSrc, errorCode)… in compose()
1681 decomposeShort(prevSrc, src, false /* !stopAtCompBoundary */, onlyContiguous, in compose()
1689 if ((src - prevSrc) > INT32_MAX) { // guard before buffer.equals() in compose()
1695 if(!buffer.equals(prevSrc, src)) { in compose()
1730 const char16_t *prevSrc; in composeQuickCheck() local
1742 prevSrc = src++; in composeQuickCheck()
1765 if (prevBoundary != prevSrc) { in composeQuickCheck()
1767 prevBoundary = prevSrc; in composeQuickCheck()
1769 const char16_t *p = prevSrc; in composeQuickCheck()
1773 prevBoundary = prevSrc; in composeQuickCheck()
1878 const uint8_t *prevSrc; in composeUTF8() local
1891 prevSrc = src; in composeUTF8()
1916 if (prevBoundary != prevSrc && in composeUTF8()
1917 !ByteSinkUtil::appendUnchanged(prevBoundary, prevSrc, in composeUTF8()
1921 appendCodePointDelta(prevSrc, src, getAlgorithmicDelta(norm16), *sink, edits); in composeUTF8()
1929 if (prevBoundary != prevSrc && in composeUTF8()
1930 !ByteSinkUtil::appendUnchanged(prevBoundary, prevSrc, in composeUTF8()
1936 if (!ByteSinkUtil::appendChange(prevSrc, src, (const char16_t *)mapping, length, in composeUTF8()
1948 hasCompBoundaryAfter(prevBoundary, prevSrc, onlyContiguous)) { in composeUTF8()
1949 if (prevBoundary != prevSrc && in composeUTF8()
1950 !ByteSinkUtil::appendUnchanged(prevBoundary, prevSrc, in composeUTF8()
1955 edits->addReplace((int32_t)(src - prevSrc), 0); in composeUTF8()
1967 U_ASSERT((src - prevSrc) == 3 && *prevSrc == 0xe1); in composeUTF8()
1968 UChar32 prev = previousHangulOrJamo(prevBoundary, prevSrc); in composeUTF8()
1969 if (prevSrc[1] == 0x85) { in composeUTF8()
1987 (l*Hangul::JAMO_V_COUNT + (prevSrc[2]-0xa1)) * in composeUTF8()
1989 prevSrc -= 3; // Replace the Jamo L as well. in composeUTF8()
1990 if (prevBoundary != prevSrc && in composeUTF8()
1991 !ByteSinkUtil::appendUnchanged(prevBoundary, prevSrc, in composeUTF8()
1995 ByteSinkUtil::appendCodePoint(prevSrc, src, syllable, *sink, edits); in composeUTF8()
2013 UChar32 syllable = prev + getJamoTMinusBase(prevSrc, src); in composeUTF8()
2014 prevSrc -= 3; // Replace the Hangul LV as well. in composeUTF8()
2015 if (prevBoundary != prevSrc && in composeUTF8()
2016 !ByteSinkUtil::appendUnchanged(prevBoundary, prevSrc, in composeUTF8()
2020 ByteSinkUtil::appendCodePoint(prevSrc, src, syllable, *sink, edits); in composeUTF8()
2031 if (onlyContiguous /* FCC */ && getPreviousTrailCC(prevBoundary, prevSrc) > cc) { in composeUTF8()
2079 if (prevBoundary != prevSrc && !norm16HasCompBoundaryBefore(norm16)) { in composeUTF8()
2080 const uint8_t *p = prevSrc; in composeUTF8()
2083 prevSrc = p; in composeUTF8()
2091 decomposeShort(prevSrc, src, STOP_AT_LIMIT, onlyContiguous, in composeUTF8()
2099 if ((src - prevSrc) > INT32_MAX) { // guard before buffer.equals() in composeUTF8()
2104 if (!buffer.equals(prevSrc, src)) { in composeUTF8()
2108 if (prevBoundary != prevSrc && in composeUTF8()
2109 !ByteSinkUtil::appendUnchanged(prevBoundary, prevSrc, in composeUTF8()
2113 if (!ByteSinkUtil::appendChange(prevSrc, src, buffer.getStart(), buffer.length(), in composeUTF8()
2303 const char16_t *prevSrc; in makeFCD() local
2309 for(prevSrc=src; src!=limit;) { in makeFCD()
2332 if(src!=prevSrc) { in makeFCD()
2333 if(buffer!=nullptr && !buffer->appendZeroCC(prevSrc, src, errorCode)) { in makeFCD()
2354 if(U16_IS_TRAIL(*p) && prevSrc<p && U16_IS_LEAD(*(p-1))) { in makeFCD()
2366 prevSrc=src; in makeFCD()
2392 buffer->removeSuffix((int32_t)(prevSrc-prevBoundary)); in makeFCD()