mirror of
https://github.com/rclone/rclone.git
synced 2025-06-05 03:34:35 +08:00
lib/encoder: move definitions here and remove uint casts
This commit is contained in:
@ -7,9 +7,16 @@ package encoder
|
||||
// List of replaced characters:
|
||||
// (0x00) -> '␀' // SYMBOL FOR NULL
|
||||
// / (slash) -> '/' // FULLWIDTH SOLIDUS
|
||||
const Standard = MultiEncoder(
|
||||
EncodeZero |
|
||||
EncodeSlash |
|
||||
EncodeCtl |
|
||||
EncodeDel |
|
||||
EncodeDot)
|
||||
const Standard = (EncodeZero |
|
||||
EncodeSlash |
|
||||
EncodeCtl |
|
||||
EncodeDel |
|
||||
EncodeDot)
|
||||
|
||||
// Base only encodes the zero byte and slash
|
||||
const Base = (EncodeZero |
|
||||
EncodeSlash |
|
||||
EncodeDot)
|
||||
|
||||
// Display is the internal encoding for logging and output
|
||||
const Display = Standard
|
||||
|
Reference in New Issue
Block a user