Lines Matching refs:UChar32
67 * Modify the given UChar32 variable so that it is in range, by
72 static inline UChar32 pinCodePoint(UChar32& c) {
169 UnicodeSet::UnicodeSet(UChar32 start, UChar32 end) {
188 uprv_memcpy(list, o.list, (size_t)len*sizeof(UChar32));
244 uprv_memcpy(list, o.list, (size_t)len*sizeof(UChar32));
358 UBool UnicodeSet::contains(UChar32 c) const {
388 int32_t UnicodeSet::findCodePoint(UChar32 c) const {
431 UBool UnicodeSet::contains(UChar32 start, UChar32 end) const {
452 return contains((UChar32) cp);
493 UBool UnicodeSet::containsNone(UChar32 start, UChar32 end) const {
549 UChar32 low = getRangeStart(i);
550 UChar32 high = getRangeEnd(i);
567 UChar32 c = s.char32At(0);
723 int32_t UnicodeSet::indexOf(UChar32 c) const {
730 UChar32 start = list[i++];
734 UChar32 limit = list[i++];
745 * out of range, return (UChar32)-1. The inverse of this method is
748 * @return the character at the given index, or (UChar32)-1.
750 UChar32 UnicodeSet::charAt(int32_t index) const {
757 UChar32 start = list[i++];
760 return (UChar32)(start + index);
765 return (UChar32)-1;
776 UnicodeSet& UnicodeSet::set(UChar32 start, UChar32 end) {
793 UnicodeSet& UnicodeSet::add(UChar32 start, UChar32 end) {
795 UChar32 limit = end + 1;
800 UChar32 lastLimit = len == 1 ? -2 : list[len - 2];
827 UChar32 range[3] = { start, limit, UNICODESET_HIGH };
839 void dump(UChar32 c) {
846 void dump(const UChar32* list, int32_t len) {
861 UnicodeSet& UnicodeSet::add(UChar32 c) {
912 UChar32* dst = list + i - 1;
913 UChar32* src = dst + 2;
914 UChar32* srclimit = list + len;
945 UChar32 *p = list + i;
987 add((UChar32)cp);
1031 UChar32 cp = s.char32At(0);
1045 UChar32 cp;
1139 UnicodeSet& UnicodeSet::retain(UChar32 start, UChar32 end) {
1141 UChar32 range[3] = { start, end+1, UNICODESET_HIGH };
1149 UnicodeSet& UnicodeSet::retain(UChar32 c) {
1164 UnicodeSet& UnicodeSet::remove(UChar32 start, UChar32 end) {
1166 UChar32 range[3] = { start, end+1, UNICODESET_HIGH };
1177 UnicodeSet& UnicodeSet::remove(UChar32 c) {
1196 remove((UChar32)cp, (UChar32)cp);
1212 UnicodeSet& UnicodeSet::complement(UChar32 start, UChar32 end) {
1217 UChar32 range[3] = { start, end+1, UNICODESET_HIGH };
1224 UnicodeSet& UnicodeSet::complement(UChar32 c) {
1237 uprv_memmove(list, list + 1, (size_t)(len-1)*sizeof(UChar32));
1243 uprv_memmove(list + 1, list, (size_t)len*sizeof(UChar32));
1270 complement((UChar32)cp, (UChar32)cp);
1406 UChar32 UnicodeSet::getRangeStart(int32_t index) const {
1416 UChar32 UnicodeSet::getRangeEnd(int32_t index) const {
1441 uprv_memcpy(stackList, list, len * sizeof(UChar32));
1447 UChar32* temp = (UChar32*) uprv_realloc(list, sizeof(UChar32) * len);
1506 list[i] = ((UChar32)data[headerSize+bmpLength+(i-bmpLength)*2+0] << 16) +
1507 ((UChar32)data[headerSize+bmpLength+(i-bmpLength)*2+1]);
1576 const UChar32 *p;
1660 UChar32* temp = (UChar32*) uprv_malloc(newCapacity * sizeof(UChar32));
1666 uprv_memcpy(temp, list, len * sizeof(UChar32));
1683 UChar32* temp = (UChar32*) uprv_malloc(newCapacity * sizeof(UChar32));
1703 UChar32* temp = list;
1721 static inline UChar32 max(UChar32 a, UChar32 b) {
1728 void UnicodeSet::exclusiveOr(const UChar32* other, int32_t otherLen, int8_t polarity) {
1737 UChar32 a = list[i++];
1738 UChar32 b;
1776 void UnicodeSet::add(const UChar32* other, int32_t otherLen, int8_t polarity) {
1785 UChar32 a = list[i++];
1786 UChar32 b = other[j++];
1887 void UnicodeSet::retain(const UChar32* other, int32_t otherLen, int8_t polarity) {
1896 UChar32 a = list[i++];
1897 UChar32 b = other[j++];
1983 UChar32 cp;
1993 void UnicodeSet::_appendToPat(UnicodeString& buf, UChar32 c, UBool
2038 UChar32 c;
2110 UChar32 start = getRangeEnd(i-1)+1;
2111 UChar32 end = getRangeStart(i)-1;
2125 UChar32 start = getRangeStart(i);
2126 UChar32 end = getRangeEnd(i);
2232 UChar32 c;
2269 UChar32 c;
2307 UChar32 c;
2345 UChar32 c;