Lines Matching refs:cpStart
74 UChar32 codePointFromValidUTF8(const uint8_t *cpStart, const uint8_t *cpLimit) { in codePointFromValidUTF8() argument
76 U_ASSERT(cpStart < cpLimit); in codePointFromValidUTF8()
77 uint8_t c = *cpStart; in codePointFromValidUTF8()
78 switch(cpLimit-cpStart) { in codePointFromValidUTF8()
82 return ((c&0x1f)<<6) | (cpStart[1]&0x3f); in codePointFromValidUTF8()
85 return (UChar)((c<<12) | ((cpStart[1]&0x3f)<<6) | (cpStart[2]&0x3f)); in codePointFromValidUTF8()
87 return ((c&7)<<18) | ((cpStart[1]&0x3f)<<12) | ((cpStart[2]&0x3f)<<6) | (cpStart[3]&0x3f); in codePointFromValidUTF8()
137 appendCodePointDelta(const uint8_t *cpStart, const uint8_t *cpLimit, int32_t delta, in appendCodePointDelta() argument
141 int32_t cpLength = (int32_t)(cpLimit - cpStart); in appendCodePointDelta()
144 buffer[0] = (uint8_t)(*cpStart + delta); in appendCodePointDelta()
152 do { buffer[length++] = *cpStart++; } while (cpStart < cpLimit); in appendCodePointDelta()
156 UChar32 c = codePointFromValidUTF8(cpStart, cpLimit) + delta; in appendCodePointDelta()