Home | History | Annotate | Download | only in runtime

Lines Matching refs:rune

18  * from a subset of ../lib9/utf/rune.c [which no longer exists]
54 runemax = 0x10FFFF /* maximum rune value */
68 * well-formed but incomplete (i.e., to get the whole Rune
69 * we'd need to read past str+length) then we'll set the Rune
75 func charntorune(s string) (rune, int) {
87 return rune(c), 1
107 l := ((rune(c) << bitx) | rune(c1)) & rune2
128 l := ((((rune(c) << bitx) | rune(c1)) << bitx) | rune(c2)) & rune3
151 l := ((((((rune(c) << bitx) | rune(c1)) << bitx) | rune(c2)) << bitx) | rune(c3)) & rune4
165 func runetochar(str []byte, r rune) int {
187 * If the rune is out of range or a surrogate half, convert it to the error rune.
188 * Do this test here because the error rune encodes to three bytes.
190 * rune wouldn't have fit in one or two bytes.