Character Manipulation
Tools that manipulate with characters
Character management tools can be found in the CharManager class under the Textify.General namespace. They make it easier for you to manipulate with individual characters.
NewLine
public static string NewLineThis property returns a new line that is returned by the Environment.NewLine property. This changes depending on the operating system, such as CR + LF on Windows and LF on Unix systems.
GetAllAsciiChars()
public static char[] GetAllAsciiChars() { }Gets all 256 ASCII characters. You can refer to the ASCII table here.
GetAllChars()
public static char[] GetAllChars() { }Gets all Unicode characters ranging from \u0000 to \uFFFF in hexadecimal representation.
GetAllLettersAndNumbers()
public static char[] GetAllLettersAndNumbers(bool unicode = true) { }Gets all letter and number characters. If unicode is set to true, it returns all letter and number characters found within Unicode. Otherwise, it uses the ASCII table to look up letters and numbers.
GetAllLetters()
public static char[] GetAllLetters(bool unicode = true) { }Gets all letter characters. If unicode is set to true, it returns all letter characters found within Unicode. Otherwise, it uses the ASCII table to look up letters.
GetAllNumbers()
Gets all number characters. If unicode is set to true, it returns all number characters found within Unicode. Otherwise, it uses the ASCII table to look up numbers.
GetAllDigitChars()
Gets all characters that represent a digit. If unicode is set to true, it returns all such characters found within Unicode. Otherwise, it uses the ASCII table to look up such characters.
GetAllControlChars()
Gets all control characters from the whole Unicode table, such as escape character, bell character, and more.
GetAllRealControlChars()
Gets all control characters from the whole Unicode table, such as escape character, bell character, and more.
GetAllLowerChars()
Gets all lower case characters. If unicode is set to true, it returns all such characters found within Unicode. Otherwise, it uses the ASCII table to look up such characters.
GetAllUpperChars()
Gets all upper case characters. If unicode is set to true, it returns all such characters found within Unicode. Otherwise, it uses the ASCII table to look up such characters.
GetAllPunctuationChars()
Gets all punctuation characters. If unicode is set to true, it returns all such characters found within Unicode. Otherwise, it uses the ASCII table to look up such characters.
GetAllSeparatorChars()
Gets all separator characters. If unicode is set to true, it returns all such characters found within Unicode. Otherwise, it uses the ASCII table to look up such characters.
GetAllSymbolChars()
Gets all symbol characters. If unicode is set to true, it returns all such characters found within Unicode. Otherwise, it uses the ASCII table to look up such characters.
GetAllWhitespaceChars()
Gets all whitespace characters. If unicode is set to true, it returns all such characters found within Unicode. Otherwise, it uses the ASCII table to look up such characters.
IsControlChar()
Checks whether the specified character is a real control character. This checks to see if the following conditions are true:
The character is greater than the NULL character (
\u0000) and less than the BACKSPACE character (\u0008)The character is greater than the CARRIAGE RETURN character (
\u000D) and less than the SUBSTITUTE character (\u001A)
Mathematically, the algorithm that this function uses can be described as:
f(c)=⎩⎨⎧110016<c<816D16<c<1A16other
Last updated