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

Method charToValueLowerSpecial

go/fory/meta/meta_string_encoder.go:275–290  ·  view source on GitHub ↗
(c byte)

Source from the content-addressed store, hash-verified

273}
274
275func (e *Encoder) charToValueLowerSpecial(c byte) (val byte, err error) {
276 if c >= 'a' && c <= 'z' {
277 val = c - 'a'
278 } else if c == '.' {
279 val = 26
280 } else if c == '_' {
281 val = 27
282 } else if c == '$' {
283 val = 28
284 } else if c == '|' {
285 val = 29
286 } else {
287 err = fmt.Errorf("Unsupported character for LOWER_SPECIAL encoding: %v\n", c)
288 }
289 return
290}
291
292func (e *Encoder) charToValueLowerUpperDigitSpecial(c byte) (val byte, err error) {
293 if c >= 'a' && c <= 'z' {

Callers 1

EncodeGenericMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected