Lines Matching refs:ch
66 char ch; in set() local
67 while ((ch = *src++) != 0) { in set()
68 if ((ch & 0x80) == 0) { in set()
70 } else if ((ch & 0xE0) == 0xC0) { in set()
77 } else if ((ch & 0xF0) == 0xE0) { in set()
100 uint16_t ch; in set() local
103 while ((ch = *src++) != 0 && count < 255) { in set()
104 if (ch >= 0x0800) { in set()
105 *dest++ = (uint8_t)(0xE0 | (ch >> 12)); in set()
106 *dest++ = (uint8_t)(0x80 | ((ch >> 6) & 0x3F)); in set()
107 *dest++ = (uint8_t)(0x80 | (ch & 0x3F)); in set()
108 } else if (ch >= 0x80) { in set()
109 *dest++ = (uint8_t)(0xC0 | (ch >> 6)); in set()
110 *dest++ = (uint8_t)(0x80 | (ch & 0x3F)); in set()
112 *dest++ = ch; in set()
125 uint16_t ch = packet->getUInt16(); in readFromPacket() local
126 if (ch >= 0x0800) { in readFromPacket()
127 *dest++ = (uint8_t)(0xE0 | (ch >> 12)); in readFromPacket()
128 *dest++ = (uint8_t)(0x80 | ((ch >> 6) & 0x3F)); in readFromPacket()
129 *dest++ = (uint8_t)(0x80 | (ch & 0x3F)); in readFromPacket()
130 } else if (ch >= 0x80) { in readFromPacket()
131 *dest++ = (uint8_t)(0xC0 | (ch >> 6)); in readFromPacket()
132 *dest++ = (uint8_t)(0x80 | (ch & 0x3F)); in readFromPacket()
134 *dest++ = ch; in readFromPacket()
149 uint16_t ch; in writeToPacket() local
153 ch = ch1; in writeToPacket()
157 ch = ((ch1 & 0x1F) << 6) | (ch2 & 0x3F); in writeToPacket()
162 ch = ((ch1 & 0x0F) << 12) | ((ch2 & 0x3F) << 6) | (ch3 & 0x3F); in writeToPacket()
164 packet->putUInt16(ch); in writeToPacket()