IEntityCodec

Abstract entity codec template class. Provides

Constructors

this
this()

Constructor.

Members

Functions

containsEncoded
bool containsEncoded(const(char)[] text)

Abstract methods to tell whether a string contains any encoded entities.

containsEncoded
bool containsEncoded(const(wchar)[] text)
Undocumented in source.
containsEncoded
bool containsEncoded(const(dchar)[] text)
Undocumented in source.
containsUnencoded
bool containsUnencoded(const(char)[] text)

Abstract methods to tell whether a string contains any unencoded entities.

containsUnencoded
bool containsUnencoded(const(wchar)[] text)
Undocumented in source.
containsUnencoded
bool containsUnencoded(const(dchar)[] text)
Undocumented in source.
decode
char[] decode(const(char)[] text, char[] decoded)

Abstract methods to decode any encoded entities in a string.

decode
wchar[] decode(const(wchar)[] text, wchar[] decoded)
Undocumented in source.
decode
dchar[] decode(const(dchar)[] text, dchar[] decoded)
Undocumented in source.
encode
char[] encode(const(char)[] text, char[] encoded)

Abstract methods to encode any unencoded entities in a string.

encode
wchar[] encode(const(wchar)[] text, wchar[] encoded)
Undocumented in source.
encode
dchar[] encode(const(dchar)[] text, dchar[] encoded)
Undocumented in source.
encoded
bool encoded(Char[] text)

Tells whether a string is fully encoded (ie contains no unencoded entities).

unencoded
bool unencoded(Char[] text)

Tells whether a string is unencoded (ie contains one or more unencoded entities).

Static functions

charTo
Char[] charTo(char c)

Static template method to convert from a char to another type.

charTo
Char[] charTo(char[] text, Char[] output)

Static template method to convert from a char[] to another type.

dcharTo
Char[] dcharTo(dchar c, Char[] output)

Static template method to convert from a dchar to another type.

dcharTo
Char[] dcharTo(dchar[] text, Char[] output)

Static template method to convert from a dchar[] to another type.

Variables

entities
E entities;

Internal entity set

Parameters

E

entity set the codec deals with

Meta