Lines Matching refs:rune
58 * well-formed but incomplete (i.e., to get the whole Rune
59 * we'd need to read past str+length) then we'll set the Rune
66 charntorune(Rune *rune, const char *str, int length)
82 *rune = c;
104 *rune = l;
124 *rune = l;
142 *rune = l;
153 *rune = Bad;
156 *rune = Bad;
167 chartorune(Rune *rune, const char *str)
178 *rune = c;
195 *rune = l;
210 *rune = l;
225 *rune = l;
238 *rune = Bad;
243 isvalidcharntorune(const char* str, int length, Rune* rune, int* consumed) {
244 *consumed = charntorune(rune, str, length);
245 return *rune != Runeerror || *consumed == 3;
249 runetochar(char *str, const Rune *rune)
258 c = *rune;
275 * If the Rune is out of range, convert it to the error rune.
276 * Do this test here because the error rune encodes to three bytes.
278 * Rune wouldn't have fit in one or two bytes.
306 runelen(Rune rune)
310 return runetochar(str, &rune);
314 runenlen(const Rune *r, int nrune)