Lines Matching refs:offset
29 Collation::incTwoBytePrimaryByOffset(uint32_t basePrimary, UBool isCompressible, int32_t offset) {
31 // plus the offset, modulo the number of usable byte values, plus the minimum.
35 offset += ((int32_t)(basePrimary >> 16) & 0xff) - 4;
36 primary = (uint32_t)((offset % 251) + 4) << 16;
37 offset /= 251;
39 offset += ((int32_t)(basePrimary >> 16) & 0xff) - 2;
40 primary = (uint32_t)((offset % 254) + 2) << 16;
41 offset /= 254;
44 return primary | ((basePrimary & 0xff000000) + (uint32_t)(offset << 24));
48 Collation::incThreeBytePrimaryByOffset(uint32_t basePrimary, UBool isCompressible, int32_t offset) {
50 // plus the offset, modulo the number of usable byte values, plus the minimum.
51 offset += ((int32_t)(basePrimary >> 8) & 0xff) - 2;
52 uint32_t primary = (uint32_t)((offset % 254) + 2) << 8;
53 offset /= 254;
57 offset += ((int32_t)(basePrimary >> 16) & 0xff) - 4;
58 primary |= (uint32_t)((offset % 251) + 4) << 16;
59 offset /= 251;
61 offset += ((int32_t)(basePrimary >> 16) & 0xff) - 2;
62 primary |= (uint32_t)((offset % 254) + 2) << 16;
63 offset /= 254;
66 return primary | ((basePrimary & 0xff000000) + (uint32_t)(offset << 24));
123 int32_t offset = (c - (lower32 >> 8)) * (lower32 & 0x7f); // delta * increment
125 return Collation::incThreeBytePrimaryByOffset(p, isCompressible, offset);