Documentation
¶
Index ¶
- Variables
- type Encoding
- func (e *Encoding) Decode(src []byte) ([]byte, error)
- func (e *Encoding) DecodeString(s string) ([]byte, error)
- func (e *Encoding) DecodedLen(n int) int
- func (e *Encoding) Encode(src []byte) ([]byte, error)
- func (e *Encoding) EncodeToString(src []byte) (string, error)
- func (e *Encoding) EncodedLen(n int) int
Constants ¶
This section is empty.
Variables ¶
View Source
var StdEncoding = NewEncoding(encodeStd)
StdEncoding is the standard quotedprintable encoding
Functions ¶
This section is empty.
Types ¶
type Encoding ¶
type Encoding struct {
// contains filtered or unexported fields
}
An Encoding is a quotedprintable encoding/decoding scheme defined by a 16-character alphabet.
func NewEncoding ¶
NewEncoding returns a new Encoding defined by the given alphabet
func (*Encoding) DecodeString ¶
DecodeString returns the bytes represented by the PunyEncoding string s.
func (*Encoding) DecodedLen ¶
func (*Encoding) EncodeToString ¶
EncodeToString returns the PunyEncoding encoding of src.
func (*Encoding) EncodedLen ¶
Click to show internal directories.
Click to hide internal directories.