Delimiter
@Js
class Delimiter : Obj
Delimiter (emphasis, strong emphasis, or custom emphasis)
can close emphasis, see spec
can open emphasis, see spec
The number of characters originally in this delimiter run
Return the innermost opening delimiter, e.g
The number of characters in this delimiter run (that are left for processing)
Get the opening delimiter nodes for the specified number of delimiters
Return the innermost closing delimiter, e.g
Get the closing delimiter nodes for the specified number of delimiters
const Bool : canClose
can close emphasis, see spec.
const Bool : canOpen
can open emphasis, see spec.
Text[] : chars
Text closer()
Return the innermost closing delimiter, e.g. for *** this is the first *
Text[] closers(Int len)
Get the closing delimiter nodes for the specified number of delimiters.
For example, for a delimiter run ***, calling this with 1 would return the first *, calling it with 2 would return the first * and the second *.
const Int : delimChar
new make(Text[] chars, Int delimChar, Bool canOpen, Bool canClose, Delimiter? prev)
Delimiter? : next
Text opener()
Return the innermost opening delimiter, e.g. for *** this is the last *
Text[] openers(Int len)
Get the opening delimiter nodes for the specified number of delimiters.
For example, for a delimiter run ***, calling this with 1 would return the last *. Calling it with 2 would return the second last * and last *.
const Int : origSize
The number of characters originally in this delimiter run; at the start of processing, this is the same as size
Delimiter? : prev
Int size()
The number of characters in this delimiter run (that are left for processing)
virtual Str toStr()