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#L125: if strs.EnforceUTF8(fd) {
validate.go#L162: if strs.EnforceUTF8(fd) {
validate.go#L179: if strs.EnforceUTF8(fd) {
validate.go#L190: if strs.EnforceUTF8(fd) {
validate.go#L206: if strs.EnforceUTF8(fd) {
google.golang.org/protobuf/encoding/prototext
decode.go#L350: if strs.EnforceUTF8(fd) && !utf8.ValidString(s) {
encode.go#L235: 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.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |