const unicode/utf8.RuneError

100 uses

	unicode/utf8 (current package)
		utf8.go#L16: 	RuneError = '\uFFFD'     // the "error" Rune or "Unicode replacement character"
		utf8.go#L154: 		return RuneError, 0
		utf8.go#L163: 		return rune(p[0])&^mask | RuneError&mask, 1
		utf8.go#L168: 		return RuneError, 1
		utf8.go#L172: 		return RuneError, 1
		utf8.go#L179: 		return RuneError, 1
		utf8.go#L186: 		return RuneError, 1
		utf8.go#L202: 		return RuneError, 0
		utf8.go#L211: 		return rune(s[0])&^mask | RuneError&mask, 1
		utf8.go#L216: 		return RuneError, 1
		utf8.go#L220: 		return RuneError, 1
		utf8.go#L227: 		return RuneError, 1
		utf8.go#L234: 		return RuneError, 1
		utf8.go#L250: 		return RuneError, 0
		utf8.go#L274: 		return RuneError, 1
		utf8.go#L290: 		return RuneError, 0
		utf8.go#L314: 		return RuneError, 1
		utf8.go#L354: 		r = RuneError

	archive/zip
		writer.go#L239: 			if !utf8.ValidRune(r) || (r == utf8.RuneError && size == 1) {

	bufio
		scan.go#L296: var errorRune = []byte(string(utf8.RuneError))

	bytes
		bytes.go#L159: 	case r == utf8.RuneError:
		bytes.go#L162: 			if r1 == utf8.RuneError {
		bytes.go#L191: 				if r == utf8.RuneError {
		bytes.go#L205: 			r = utf8.RuneError
		bytes.go#L230: 		if r != utf8.RuneError {
		bytes.go#L278: 				if r == utf8.RuneError {
		bytes.go#L292: 			cr = utf8.RuneError
		bytes.go#L314: 		if r != utf8.RuneError {
		bytes.go#L567: 				rl = len(string(utf8.RuneError))

	contrib.go.opencensus.io/exporter/stackdriver
		trace_proto.go#L269: 			if r == utf8.RuneError && size == 1 {

	crypto/x509
		verify.go#L1016: 		if c == utf8.RuneError {

	encoding/json
		decode.go#L1207: 		if rr == utf8.RuneError && size == 1 {
		encode.go#L1066: 		if c == utf8.RuneError && size == 1 {
		encode.go#L1138: 		if c == utf8.RuneError && size == 1 {

	encoding/xml
		xml.go#L1126: 		if r == utf8.RuneError && size == 1 {
		xml.go#L1226: 	if c == utf8.RuneError && n == 1 {
		xml.go#L1235: 		if c == utf8.RuneError && n == 1 {
		xml.go#L1250: 	if c == utf8.RuneError && n == 1 {
		xml.go#L1259: 		if c == utf8.RuneError && n == 1 {

	fmt
		format.go#L466: 		r = utf8.RuneError
		format.go#L478: 		r = utf8.RuneError

	github.com/evanw/esbuild/internal/js_lexer
		js_lexer.go#L2714: 		r = utf8.RuneError
		js_lexer.go#L2738: 		return utf8.RuneError, 0
		js_lexer.go#L2754: 		return utf8.RuneError, 1
		js_lexer.go#L2758: 		return utf8.RuneError, 0
		js_lexer.go#L2763: 		return utf8.RuneError, 1
		js_lexer.go#L2769: 			return utf8.RuneError, 1
		js_lexer.go#L2776: 		return utf8.RuneError, 1
		js_lexer.go#L2782: 			return utf8.RuneError, 1
		js_lexer.go#L2789: 		return utf8.RuneError, 1
		js_lexer.go#L2794: 		return utf8.RuneError, 1

	github.com/go-git/gcfg/scanner
		scanner.go#L72: 			if r == utf8.RuneError && w == 1 {

	github.com/go-git/go-git/v5/plumbing/format/index
		match.go#L178: 	if r == utf8.RuneError && n == 1 {

	github.com/golang/protobuf/proto
		text_decode.go#L684: 		if r == utf8.RuneError && n == 1 {
		text_decode.go#L709: 	if r == utf8.RuneError && n == 1 {

	github.com/google/go-cmp/cmp
		report_slices.go#L102: 			if !(unicode.IsPrint(r) || unicode.IsSpace(r)) || r == utf8.RuneError {

	github.com/google/licensecheck/old
		normalize.go#L106: 		if r == utf8.RuneError && wid == 1 {

	github.com/jackc/pgx/v4/internal/sanitize
		sanitize.go#L140: 		case utf8.RuneError:
		sanitize.go#L162: 		case utf8.RuneError:
		sanitize.go#L184: 		case utf8.RuneError:
		sanitize.go#L230: 		case utf8.RuneError:
		sanitize.go#L251: 		case utf8.RuneError:
		sanitize.go#L285: 		case utf8.RuneError:

	github.com/yuin/goldmark/text
		reader.go#L538: 	if rn == utf8.RuneError {

	github.com/yuin/goldmark/util
		util.go#L449: 		if r == utf8.RuneError {

	go/scanner
		scanner.go#L70: 			if r == utf8.RuneError && w == 1 {

	golang.org/x/net/idna
		idna10.0.0.go#L412: 			return s, bidi, runeError(utf8.RuneError)
		idna10.0.0.go#L460: 				err = runeError(utf8.RuneError)
		idna10.0.0.go#L603: 			return runeError(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#L96: 		case r == utf8.RuneError && n == 1:
		encode.go#L132: 		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:

	path
		match.go#L223: 	if r == utf8.RuneError && n == 1 {

	path/filepath
		match.go#L225: 	if r == utf8.RuneError && n == 1 {

	regexp/syntax
		parse.go#L1879: 		if rune == utf8.RuneError && size == 1 {
		parse.go#L1889: 	if c == utf8.RuneError && size == 1 {

	strconv
		quote.go#L42: 		if width == 1 && r == utf8.RuneError {
		quote.go#L57: 		r = utf8.RuneError
		quote.go#L215: 		if r == utf8.RuneError {
		quote.go#L411: 			if size == len(s) && (r != utf8.RuneError || size != 1) {

	strings
		strings.go#L29: 		if ch == utf8.RuneError {
		strings.go#L30: 			a[i] = string(utf8.RuneError)
		strings.go#L125: 	case r == utf8.RuneError:
		strings.go#L127: 			if r == utf8.RuneError {
		strings.go#L150: 			r = utf8.RuneError
		strings.go#L183: 			rc = utf8.RuneError
		strings.go#L203: 			rc = utf8.RuneError
		strings.go#L467: 		if r == c && c != utf8.RuneError {
		strings.go#L472: 		if c == utf8.RuneError {
		strings.go#L637: 		if c != utf8.RuneError {

	vendor/golang.org/x/net/idna
		idna10.0.0.go#L411: 			return s, bidi, runeError(utf8.RuneError)
		idna10.0.0.go#L459: 				err = runeError(utf8.RuneError)
		idna10.0.0.go#L602: 			return runeError(utf8.RuneError)