PercentEncoder

Abstract encoder

Constructors

this
this(cstring source_in)

Constructor

Members

Functions

encode
bool encode(char c)

Encodes all characters except the ASCII graphic, that is, encodes ASCII whitespace and control characters and non-ASCII characters.

opApply
int opApply(int delegate(ref cstring chunk) dg)

Encodes this.source in an 'foreach' iteration over encoded chunks. Each chunk is guaranteed not to be empty.

Variables

source
cstring source;

Source string, may be changed at any time except during encoding 'foreach' iteration.

Meta