CopyingCursor

A cursor that wraps another cursor, copying all output strings.

The cursor specification (newxml.interfaces.isCursor) clearly states that a cursor (as the underlying parser and lexer) is free to reuse its internal buffers and thus invalidate every output. This wrapper returns freshly allocated strings, thus allowing references to its outputs to outlive calls to advancing methods.

This type should not be instantiated directly, but using the helper function copyingCursor.

Alias This

cursor

Members

Aliases

StringType
alias StringType = CursorType.StringType
Undocumented in source.

Functions

attributes
auto attributes()
Undocumented in source. Be warned that the author may not have intended to support it.
content
auto content()
Undocumented in source. Be warned that the author may not have intended to support it.
localName
auto localName()
Undocumented in source. Be warned that the author may not have intended to support it.
name
auto name()
Undocumented in source. Be warned that the author may not have intended to support it.
prefix
auto prefix()
Undocumented in source. Be warned that the author may not have intended to support it.
wholeContent
auto wholeContent()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

cursor
CursorType cursor;
Undocumented in source.
interned
Rebindable!(immutable StringType)[const StringType] interned;
Undocumented in source.

Meta