Raxol.UI.Components.Input.TextWrapping (Raxol v0.5.0)

View Source

Utility functions for text wrapping.

Summary

Functions

Wraps a single line of text by character count using recursion.

Wraps a single line of text by word boundaries.

Functions

wrap_line_by_char(line, width)

Wraps a single line of text by character count using recursion.

Handles multi-byte characters correctly.

wrap_line_by_word(line, width)

Wraps a single line of text by word boundaries.