StringExtensions

Contains extension methods for .

Contains extension methods for String.

Methods

public static int GetCellWidth(string text)

Gets the cell width of the specified text.

Parameters:

text (string)
The text to get the cell width of.

Returns:

The cell width of the text.

public static string Mask(string value, char? mask)

"Masks" every character in a string.

Parameters:

value (string)
String value to mask.
mask (char?)
Character to use for masking.

Returns:

Masked string.