View Source BackBreeze.Utils (BackBreeze v0.2.1)

This module contains functions for dealing with strings containing escape codes.

Summary

Functions

Return the string length without escape sequences, factoring in glyph width.

Strip escape characters from a string.

Functions

Return the string length without escape sequences, factoring in glyph width.

iex> BackBreeze.Utils.string_length("1;38;5;3m123🍏")
5

Strip escape characters from a string.

iex> BackBreeze.Utils.strip_escape_chars("1;38;5;3m123🍏")
"123🍏"