Table of Contents

Class StringUtilities

Namespace
Alternet.Common
Assembly
Alternet.Common.v10.dll
public static class StringUtilities
Inheritance
StringUtilities

Methods

EscapeControlChars(string?)

Returns a string with all non-printable ASCII control characters escaped. This mimics how Visual Studio displays control characters in debugger views.

IsHexChar(char)

Determines whether the specified character is a valid hexadecimal digit.

NeedEscapeControlChars(string?)

Determines whether the input string contains any control characters (ASCII < 32).

NeedRestoreControlChars(string?)

Determines whether the input string contains escape sequences like \r, \n, \t, \xNN, or \uNNNN that would be interpreted by RestoreControlChars(string?).

RestoreControlChars(string?)

Replaces escaped sequences (like \n, \t, \x1F) with their actual control characters.