MCPcopy
hub / github.com/AlistGo/alist / encode

Function encode

drivers/ftp/meta.go:9–15  ·  view source on GitHub ↗
(str string, encoding string)

Source from the content-addressed store, hash-verified

7)
8
9func encode(str string, encoding string) string {
10 if encoding == "" {
11 return str
12 }
13 encoder := mahonia.NewEncoder(encoding)
14 return encoder.ConvertString(str)
15}
16
17func decode(str string, encoding string) string {
18 if encoding == "" {

Callers 7

ListMethod · 0.70
LinkMethod · 0.70
MakeDirMethod · 0.70
MoveMethod · 0.70
RenameMethod · 0.70
RemoveMethod · 0.70
PutMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected