Function rustfmt_nightly::string::break_string
source ยท fn break_string(
max_width: usize,
trim_end: bool,
line_end: &str,
input: &[&str],
) -> SnippetState
Expand description
Break the input string at a boundary character around the offset max_width
. A boundary
character is either a punctuation or a whitespace.
FIXME(issue#3281): We must follow UAX#14 algorithm instead of this.