Lines Matching refs:UChar32
67 * Modify the given UChar32 variable so that it is in range, by
72 static inline UChar32 pinCodePoint(UChar32& c) {
155 list = (UChar32*) uprv_malloc(sizeof(UChar32) * capacity);
172 UnicodeSet::UnicodeSet(UChar32 start, UChar32 end) :
182 list = (UChar32*) uprv_malloc(sizeof(UChar32) * capacity);
209 list = (UChar32*) uprv_malloc(sizeof(UChar32) * capacity);
233 list = (UChar32*) uprv_malloc(sizeof(UChar32) * capacity);
237 uprv_memcpy(list, o.list, len*sizeof(UChar32));
289 uprv_memcpy(list, o.list, len*sizeof(UChar32));
402 UBool UnicodeSet::contains(UChar32 c) const {
432 int32_t UnicodeSet::findCodePoint(UChar32 c) const {
475 UBool UnicodeSet::contains(UChar32 start, UChar32 end) const {
496 return contains((UChar32) cp);
538 UBool UnicodeSet::containsNone(UChar32 start, UChar32 end) const {
595 UChar32 low = getRangeStart(i);
596 UChar32 high = getRangeEnd(i);
613 UChar32 c = s.char32At(0);
769 int32_t UnicodeSet::indexOf(UChar32 c) const {
776 UChar32 start = list[i++];
780 UChar32 limit = list[i++];
791 * out of range, return (UChar32)-1. The inverse of this method is
794 * @return the character at the given index, or (UChar32)-1.
796 UChar32 UnicodeSet::charAt(int32_t index) const {
803 UChar32 start = list[i++];
806 return (UChar32)(start + index);
811 return (UChar32)-1;
822 UnicodeSet& UnicodeSet::set(UChar32 start, UChar32 end) {
839 UnicodeSet& UnicodeSet::add(UChar32 start, UChar32 end) {
841 UChar32 range[3] = { start, end+1, UNICODESET_HIGH };
853 void dump(UChar32 c) {
860 void dump(const UChar32* list, int32_t len) {
875 UnicodeSet& UnicodeSet::add(UChar32 c) {
927 UChar32* dst = list + i - 1;
928 UChar32* src = dst + 2;
929 UChar32* srclimit = list + len;
964 UChar32* src = list + len;
965 UChar32* dst = src + 2;
966 UChar32* srclimit = list + i;
1009 add((UChar32)cp);
1049 UChar32 cp = s.char32At(0);
1063 UChar32 cp;
1154 UnicodeSet& UnicodeSet::retain(UChar32 start, UChar32 end) {
1156 UChar32 range[3] = { start, end+1, UNICODESET_HIGH };
1164 UnicodeSet& UnicodeSet::retain(UChar32 c) {
1179 UnicodeSet& UnicodeSet::remove(UChar32 start, UChar32 end) {
1181 UChar32 range[3] = { start, end+1, UNICODESET_HIGH };
1192 UnicodeSet& UnicodeSet::remove(UChar32 c) {
1210 remove((UChar32)cp, (UChar32)cp);
1226 UnicodeSet& UnicodeSet::complement(UChar32 start, UChar32 end) {
1231 UChar32 range[3] = { start, end+1, UNICODESET_HIGH };
1238 UnicodeSet& UnicodeSet::complement(UChar32 c) {
1256 uprv_memcpy(buffer, list + 1, (len-1)*sizeof(UChar32));
1263 uprv_memcpy(buffer + 1, list, len*sizeof(UChar32));
1291 complement((UChar32)cp, (UChar32)cp);
1421 UChar32 UnicodeSet::getRangeStart(int32_t index) const {
1431 UChar32 UnicodeSet::getRangeEnd(int32_t index) const {
1460 UChar32* temp = (UChar32*) uprv_realloc(list, sizeof(UChar32) * newCapacity);
1511 list = (UChar32*) uprv_malloc(sizeof(UChar32) * capacity);
1526 list[i] = ((UChar32)data[headerSize+bmpLength+(i-bmpLength)*2+0] << 16) +
1527 ((UChar32)data[headerSize+bmpLength+(i-bmpLength)*2+1]);
1593 const UChar32 *p;
1657 UChar32* temp = (UChar32*) uprv_realloc(list, sizeof(UChar32) * (newLen + GROW_EXTRA));
1671 UChar32* temp = (UChar32*) uprv_realloc(buffer, sizeof(UChar32) * (newLen + GROW_EXTRA));
1687 UChar32* temp = list;
1705 static inline UChar32 max(UChar32 a, UChar32 b) {
1712 void UnicodeSet::exclusiveOr(const UChar32* other, int32_t otherLen, int8_t polarity) {
1723 UChar32 a = list[i++];
1724 UChar32 b;
1762 void UnicodeSet::add(const UChar32* other, int32_t otherLen, int8_t polarity) {
1773 UChar32 a = list[i++];
1774 UChar32 b = other[j++];
1875 void UnicodeSet::retain(const UChar32* other, int32_t otherLen, int8_t polarity) {
1886 UChar32 a = list[i++];
1887 UChar32 b = other[j++];
1973 UChar32 cp;
1983 void UnicodeSet::_appendToPat(UnicodeString& buf, UChar32 c, UBool
2028 UChar32 c;
2100 UChar32 start = getRangeEnd(i-1)+1;
2101 UChar32 end = getRangeStart(i)-1;
2115 UChar32 start = getRangeStart(i);
2116 UChar32 end = getRangeEnd(i);
2179 list = (UChar32*) uprv_realloc(list, sizeof(UChar32) * capacity);
2236 UChar32 c;
2273 UChar32 c;
2311 UChar32 c;
2349 UChar32 c;