func google.golang.org/protobuf/internal/strs.EnforceUTF8
19 uses
google.golang.org/protobuf/internal/strs (current package)
strings.go#L19: func EnforceUTF8(fd protoreflect.FieldDescriptor) bool {
google.golang.org/protobuf/internal/impl
codec_tables.go#L105: if ft.Kind() == reflect.String && strs.EnforceUTF8(fd) {
codec_tables.go#L111: if ft.Kind() == reflect.Slice && ft.Elem().Kind() == reflect.Uint8 && strs.EnforceUTF8(fd) {
codec_tables.go#L261: if ft.Kind() == reflect.String && strs.EnforceUTF8(fd) {
codec_tables.go#L267: if ft.Kind() == reflect.Slice && ft.Elem().Kind() == reflect.Uint8 && strs.EnforceUTF8(fd) {
codec_tables.go#L341: if ft.Kind() == reflect.String && strs.EnforceUTF8(fd) {
codec_tables.go#L411: if ft.Kind() == reflect.String && strs.EnforceUTF8(fd) {
codec_tables.go#L417: if ft.Kind() == reflect.Slice && ft.Elem().Kind() == reflect.Uint8 && strs.EnforceUTF8(fd) {
codec_tables.go#L544: if strs.EnforceUTF8(fd) {
validate.go#L129: if strs.EnforceUTF8(fd) {
validate.go#L178: if strs.EnforceUTF8(fd) {
validate.go#L195: if strs.EnforceUTF8(fd) {
validate.go#L206: if strs.EnforceUTF8(fd) {
validate.go#L220: if strs.EnforceUTF8(fd) {
google.golang.org/protobuf/encoding/prototext
decode.go#L327: if strs.EnforceUTF8(fd) && !utf8.ValidString(s) {
encode.go#L224: if !e.opts.allowInvalidUTF8 && strs.EnforceUTF8(fd) && !utf8.ValidString(s) {
google.golang.org/protobuf/proto
decode_gen.go#L158: if strs.EnforceUTF8(fd) && !utf8.Valid(v) {
decode_gen.go#L554: if strs.EnforceUTF8(fd) && !utf8.Valid(v) {
encode_gen.go#L71: if strs.EnforceUTF8(fd) && !utf8.ValidString(v.String()) {
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)