parseMarkup
fn
bool parseMarkup(string markupText, dchar accelMarker, out pango.attr_list.AttrList attrList, out string text, out dchar accelChar)Parses marked-up text to create a plain-text string and an attribute list.
See the Pango Markup docs for details about the supported markup.
If accel_marker is nonzero, the given character will mark the character following it as an accelerator. For example, accel_marker might be an ampersand or underscore. All characters marked as an accelerator will receive a [pango.types.Underline.Low] attribute, and the first character so marked will be returned in accel_char. Two accel_marker characters following each other produce a single literal accel_marker character.
To parse a stream of pango markup incrementally, use funcmarkup_parser_new.
If any error happens, none of the output arguments are touched except for error.
Parameters
markupText | markup to parse (see the Pango Markup docs) |
accelMarker | character that precedes an accelerator, or 0 for none |
attrList | address of return location for a [pango.attr_list.AttrList] |
text | address of return location for text with tags stripped |
accelChar | address of return location for accelerator char |
Returns
false if error is set, otherwise true
Throws
[ErrorWrap]