vxml_pipeline/handle_syntax
Shared encoding and recognition helpers for Writerly handle values.
Values
pub fn decode_value(encoded: String) -> Result(String, Nil)
Removes one surrounding << and >> pair from an encoded handle value.
pub const decorated_name_pattern: String
Regular-expression fragment matching a Writerly handle name followed by zero or more decorators.
pub fn encode_value(value: String) -> String
Encodes a handle value as <<value>> without otherwise escaping it.
pub fn take_explicit_value(
input: String,
closer_regexp: regexp.Regexp,
) -> #(option.Option(String), String)
Finds the first unescaped >>## closer. Backslash runs immediately
before a candidate use odd/even parity and are decoded in the value.
If there is no active closer, returns None and the original input.