MarkupEntityCodec

Class to en/decode xml / html style entities.

Members

Aliases

This
alias This = typeof(this)

This alias.

Functions

appendEncodedEntity
Char[] appendEncodedEntity(Char[] text, dchar c)

Appends an encoded entity to a string (in the form "&entity_name;").

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

Checks whether the input string contains any encoded entities.

containsEncoded
bool containsEncoded(const(wchar)[] text)
Undocumented in source. Be warned that the author may not have intended to support it.
containsEncoded
bool containsEncoded(const(dchar)[] text)
Undocumented in source. Be warned that the author may not have intended to support it.
containsEncoded_
bool containsEncoded_(Char[] text)

Internal method for checking whether the passed string contains any encoded entities.

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

Checks whether the input string contains any unencoded entities.

containsUnencoded
bool containsUnencoded(const(wchar)[] text)
Undocumented in source. Be warned that the author may not have intended to support it.
containsUnencoded
bool containsUnencoded(const(dchar)[] text)
Undocumented in source. Be warned that the author may not have intended to support it.
containsUnencoded_
bool containsUnencoded_(Char[] text)

Internal method for checking whether the passed string contains any unencoded entities.

decode
mstring decode(const(char)[] text, mstring decoded)

Decode any encoded entities in the input string.

decode
wchar[] decode(const(wchar)[] text, wchar[] decoded)
Undocumented in source. Be warned that the author may not have intended to support it.
decode
dchar[] decode(const(dchar)[] text, dchar[] decoded)
Undocumented in source. Be warned that the author may not have intended to support it.
decodeCharacterEntity
dchar decodeCharacterEntity(Char[] entity)

Converts an encoded entity to a unicode character.

decodeEntity
dchar decodeEntity(Char[] entity)

Converts an encoded entity to a unicode character. The entity may be either: - a numeric character reference (eg "á" for 'á'), or - a named ISO8859-1/15 (Latin 1/9) entity (eg "ß" for 'ß').

decodeNumericCharacterRef
dchar decodeNumericCharacterRef(Char[] entity)

Converts an encoded numeric character reference entity to a unicode character. Numeric character references are either:

decode_
MutChar[] decode_(ConstChar[] text, MutChar[] decoded)

Internal method for decoding any encoded entities in a string.

encode
char[] encode(const(char)[] text, char[] encoded)

Encode any unencoded entities in the input string.

encode
wchar[] encode(const(wchar)[] text, wchar[] encoded)
Undocumented in source. Be warned that the author may not have intended to support it.
encode
dchar[] encode(const(dchar)[] text, dchar[] encoded)
Undocumented in source. Be warned that the author may not have intended to support it.
encode_
MutChar[] encode_(ConstChar[] text, MutChar[] encoded)

Internal method for encoding any unencoded entities in a string.

isEncodedEntity
bool isEncodedEntity(Char[] text, bool exact_match)

Checks whether the input string begins with an encoded entity.

isSpace
bool isSpace(Char c)

Checks whether the given character is a space.

isUnencodedEntity
bool isUnencodedEntity(Char[] text)

Checks whether the input string begins with an unencoded entity.

sliceEncodedEntity
Char[] sliceEncodedEntity(Char[] text)

Parses content to see if it's an encoded entity string. The criteria are:

Meta