pub fn parse_complete(
text: &str,
text_budget: usize,
) -> Result<Vec<Line>, ParseLimitExceeded>Expand description
Parses lyrics completely, refusing excessive timestamp expansion.
Unlike parse, this does not turn an over-budget timed chorus into
literal untimed text. This distinction lets an API promise complete timing
rather than silently downgrade it. Malformed timestamps remain literal
text under the same rules as the ordinary parser.
text_budget limits the combined UTF-8 bytes in all returned line texts,
including every expanded repetition; it does not include vector storage,
line separators or a transport’s serialization overhead. Callers reading
untrusted sources must also bound their input and encoded response size.