MCPcopy Create free account
hub / github.com/apache/fory / ComputeEncoding

Method ComputeEncoding

go/fory/meta/meta_string_encoder.go:159–162  ·  view source on GitHub ↗
(input string)

Source from the content-addressed store, hash-verified

157}
158
159func (e *Encoder) ComputeEncoding(input string) Encoding {
160 allEncodings := []Encoding{LOWER_SPECIAL, LOWER_UPPER_DIGIT_SPECIAL, FIRST_TO_LOWER_SPECIAL, ALL_TO_LOWER_SPECIAL, UTF_8}
161 return e.ComputeEncodingWith(input, allEncodings)
162}
163
164// EncodePackage encodes a package/namespace string using Java-compatible encodings.
165// Java uses: UTF_8, ALL_TO_LOWER_SPECIAL, LOWER_UPPER_DIGIT_SPECIAL for packages.

Callers 1

EncodeMethod · 0.95

Calls 1

ComputeEncodingWithMethod · 0.95

Tested by

no test coverage detected