gitlabEdit

aCharacter 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.

chevron-rightNewLinehashtag
public static string NewLine

This property returns a new line that is returned by the Environment.NewLinearrow-up-right property. This changes depending on the operating system, such as CR + LF on Windows and LF on Unix systems.

chevron-rightGetAllAsciiChars()hashtag
public static char[] GetAllAsciiChars() { }

Gets all 256 ASCII characters. You can refer to the ASCII table herearrow-up-right.

chevron-rightGetAllChars()hashtag
public static char[] GetAllChars() { }

Gets all Unicode characters ranging from \u0000 to \uFFFF in hexadecimal representation.

chevron-rightGetAllLettersAndNumbers()hashtag
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.

chevron-rightGetAllLetters()hashtag
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.

chevron-rightGetAllNumbers()hashtag

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.

chevron-rightGetAllDigitChars()hashtag

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.

chevron-rightGetAllControlChars()hashtag

Gets all control characters from the whole Unicode table, such as escape character, bell character, and more.

chevron-rightGetAllRealControlChars()hashtag

Gets all control characters from the whole Unicode table, such as escape character, bell character, and more.

chevron-rightGetAllSurrogateChars()hashtag

Gets all high and low surrogate characters from the whole Unicode table.

chevron-rightGetAllHighSurrogateChars()hashtag

Gets all high surrogate characters from the whole Unicode table.

chevron-rightGetAllLowSurrogateChars()hashtag

Gets all low surrogate characters from the whole Unicode table.

chevron-rightGetAllLowerChars()hashtag

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.

chevron-rightGetAllUpperChars()hashtag

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.

chevron-rightGetAllPunctuationChars()hashtag

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.

chevron-rightGetAllSeparatorChars()hashtag

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.

chevron-rightGetAllSymbolChars()hashtag

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.

chevron-rightGetAllWhitespaceChars()hashtag

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.

chevron-rightGetEsc()hashtag

Gets an escape character. This function is a wrapper of the escape character, \u001b.

chevron-rightIsControlChar()hashtag

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)={1016<c<8161D16<c<1A160otherf(c) =\begin{cases}1 & 0_{16} < c < 8_{16}\\1 & D_{16} < c < 1A_{16}\\0 & other\end{cases}

Last updated