Skip to main content

Module string_utils

Module string_utils 

Source
Expand description

Utility functions for text manipulation and wrapping.

Structs§

StringUtils

Functions§

html_entities
normalize
Expands tab characters into 4 spaces and HTML-escapes the result, matching java-diff-utils’ StringUtils.normalize.
wrap_text
Wraps text to column_width, joining wrapped segments with <br/> tags. A column_width of 0 leaves the line untouched (no wrapping is possible).
wrap_text_list