Lines Matching refs:str
60 * we'd need to read past str+length) then we'll set the Rune
67 charntorune(Rune *rune, const char *str, int length)
81 c = *(uchar*)str;
96 c1 = *(uchar*)(str+1) ^ Tx;
118 c2 = *(uchar*)(str+2) ^ Tx;
138 c3 = *(uchar*)(str+3) ^ Tx;
170 chartorune(Rune *rune, const char *str)
179 c = *(uchar*)str;
189 c1 = *(uchar*)(str+1) ^ Tx;
206 c2 = *(uchar*)(str+2) ^ Tx;
223 c3 = *(uchar*)(str+3) ^ Tx;
248 isvalidcharntorune(const char* str, int length, Rune* rune, int* consumed)
250 *consumed = charntorune(rune, str, length);
255 runetochar(char *str, const Rune *rune)
266 str[0] = (char)c;
275 str[0] = (char)(T2 | (c >> 1*Bitx));
276 str[1] = (char)(Tx | (c & Maskx));
296 str[0] = (char)(T3 | (c >> 2*Bitx));
297 str[1] = (char)(Tx | ((c >> 1*Bitx) & Maskx));
298 str[2] = (char)(Tx | (c & Maskx));
306 str[0] = (char)(T4 | (c >> 3*Bitx));
307 str[1] = (char)(Tx | ((c >> 2*Bitx) & Maskx));
308 str[2] = (char)(Tx | ((c >> 1*Bitx) & Maskx));
309 str[3] = (char)(Tx | (c & Maskx));
316 char str[10];
318 return runetochar(str, &rune);
342 fullrune(const char *str, int n)
345 int c = *(uchar*)str;