const unicode/utf8.RuneError
104 uses
unicode/utf8 (current package)
utf8.go#L16: RuneError = '\uFFFD' // the "error" Rune or "Unicode replacement character"
utf8.go#L65: runeErrorByte0 = t3 | (RuneError >> 12)
utf8.go#L66: runeErrorByte1 = tx | (RuneError>>6)&maskx
utf8.go#L67: runeErrorByte2 = tx | RuneError&maskx
utf8.go#L174: return RuneError, 0
utf8.go#L183: return rune(p[0])&^mask | RuneError&mask, 1
utf8.go#L188: return RuneError, 1
utf8.go#L192: return RuneError, 1
utf8.go#L199: return RuneError, 1
utf8.go#L206: return RuneError, 1
utf8.go#L234: return RuneError, 0
utf8.go#L243: return rune(s[0])&^mask | RuneError&mask, 1
utf8.go#L248: return RuneError, 1
utf8.go#L252: return RuneError, 1
utf8.go#L259: return RuneError, 1
utf8.go#L266: return RuneError, 1
utf8.go#L282: return RuneError, 0
utf8.go#L303: return RuneError, 1
utf8.go#L319: return RuneError, 0
utf8.go#L340: return RuneError, 1
bufio
scan.go#L304: var errorRune = []byte(string(utf8.RuneError))
bytes
bytes.go#L136: case r == utf8.RuneError:
bytes.go#L139: if r1 == utf8.RuneError {
bytes.go#L223: if r == utf8.RuneError {
bytes.go#L237: r = utf8.RuneError
bytes.go#L262: if r != utf8.RuneError {
bytes.go#L310: if r == utf8.RuneError {
bytes.go#L324: cr = utf8.RuneError
bytes.go#L346: if r != utf8.RuneError {
crypto/x509
verify.go#L913: if c == utf8.RuneError {
encoding/json/internal/jsonwire
decode.go#L221: } else if r = utf16.DecodeRune(rune(v1), rune(v2)); r == utf8.RuneError {
decode.go#L233: case r == utf8.RuneError:
decode.go#L344: r = utf8.RuneError // assume failure unless the following succeeds
decode.go#L352: } else if r = utf16.DecodeRune(rune(v1), rune(v2)); r == utf8.RuneError {
decode.go#L365: case r == utf8.RuneError:
encode.go#L45: if r == utf8.RuneError || r == '\u2028' || r == '\u2029' {
encode.go#L87: if r != utf8.RuneError && r != '\u2028' && r != '\u2029' {
wire.go#L64: if r == utf8.RuneError && n == 1 {
wire.go#L150: return r == '`' || r == utf8.RuneError || unicode.IsSpace(r) || !unicode.IsPrint(r)
wire.go#L208: return r == utf8.RuneError && rn == 1
encoding/xml
xml.go#L1147: if r == utf8.RuneError && size == 1 {
xml.go#L1248: if c == utf8.RuneError && n == 1 {
xml.go#L1257: if c == utf8.RuneError && n == 1 {
xml.go#L1272: if c == utf8.RuneError && n == 1 {
xml.go#L1281: if c == utf8.RuneError && n == 1 {
fmt
format.go#L468: r = utf8.RuneError
format.go#L479: r = utf8.RuneError
github.com/jackc/pgx/v5
named_args.go#L246: case utf8.RuneError:
named_args.go#L265: if r == utf8.RuneError {
named_args.go#L300: case utf8.RuneError:
named_args.go#L322: case utf8.RuneError:
named_args.go#L347: case utf8.RuneError:
named_args.go#L368: case utf8.RuneError:
named_args.go#L402: case utf8.RuneError:
github.com/jackc/pgx/v5/internal/sanitize
sanitize.go#L263: case utf8.RuneError:
sanitize.go#L287: case utf8.RuneError:
sanitize.go#L311: case utf8.RuneError:
sanitize.go#L408: case r >= 0x80 && r != utf8.RuneError:
sanitize.go#L429: case utf8.RuneError:
sanitize.go#L452: case utf8.RuneError:
sanitize.go#L488: case utf8.RuneError:
go.uber.org/zap/zapcore
json_encoder.go#L531: if r != utf8.RuneError || size != 1 {
go/scanner
scanner.go#L76: if r == utf8.RuneError && w == 1 {
golang.org/x/net/idna
idna.go#L493: return s, bidi, runeError{utf8.RuneError, "P1"}
idna.go#L544: err = runeError{utf8.RuneError, "P1"}
idna.go#L699: return runeError{utf8.RuneError, "P1"}
idna.go#L804: return runeError{utf8.RuneError, "P1"}
golang.org/x/net/internal/httpsfv
httpsfv.go#L565: if r == utf8.RuneError {
golang.org/x/text/runes
runes.go#L89: const runeErrorString = string(utf8.RuneError)
runes.go#L147: if !t(utf8.RuneError) {
runes.go#L235: if replacement = t(utf8.RuneError); replacement == utf8.RuneError {
runes.go#L294: if r != utf8.RuneError || size != 1 {
google.golang.org/protobuf/internal/encoding/json
decode_string.go#L29: case r == utf8.RuneError && n == 1:
encode.go#L98: case r == utf8.RuneError && n == 1:
encode.go#L134: if r < ' ' || r == '\\' || r == '"' || r == utf8.RuneError {
google.golang.org/protobuf/internal/encoding/text
decode_string.go#L61: case r == utf8.RuneError && n == 1:
encode.go#L124: case r == utf8.RuneError && n == 1:
log/slog
json_handler.go#L220: if c == utf8.RuneError && size == 1 {
text_handler.go#L164: if r == utf8.RuneError || unicode.IsSpace(r) || !unicode.IsPrint(r) {
net/http/internal/httpsfv
httpsfv.go#L566: if r == utf8.RuneError {
path
match.go#L210: if r == utf8.RuneError && n == 1 {
path/filepath
match.go#L213: if r == utf8.RuneError && n == 1 {
regexp
onepass.go#L59: for iop(i) == syntax.InstRune && len(i.Rune) == 1 && syntax.Flags(i.Arg)&syntax.FoldCase == 0 && i.Rune[0] != utf8.RuneError {
regexp.go#L276: if r == utf8.RuneError {
regexp/syntax
parse.go#L2205: if rune == utf8.RuneError && size == 1 {
parse.go#L2215: if c == utf8.RuneError && size == 1 {
prog.go#L160: for i.op() == InstRune && len(i.Rune) == 1 && Flags(i.Arg)&FoldCase == 0 && i.Rune[0] != utf8.RuneError {
strconv
quote.go#L42: if width == 1 && r == utf8.RuneError {
quote.go#L57: r = utf8.RuneError
quote.go#L218: if r == utf8.RuneError {
quote.go#L436: valid = len("'")+n+len("'") == end && (r != utf8.RuneError || n != 1)
strings
strings.go#L115: case r == utf8.RuneError:
strings.go#L117: if r == utf8.RuneError {
strings.go#L193: r = utf8.RuneError
strings.go#L226: rc = utf8.RuneError
strings.go#L246: rc = utf8.RuneError
strings.go#L524: if r == c && c != utf8.RuneError {
strings.go#L529: if c == utf8.RuneError {
strings.go#L775: if c != utf8.RuneError {
vendor/golang.org/x/net/idna
idna.go#L489: return s, bidi, runeError{utf8.RuneError, "P1"}
idna.go#L540: err = runeError{utf8.RuneError, "P1"}
idna.go#L695: return runeError{utf8.RuneError, "P1"}
idna.go#L800: return runeError{utf8.RuneError, "P1"}