CharHelper Class
Helper class for handling characters.
public static class CharHelperMethods
| Name | Description |
|---|---|
| AddTab(int) | Adds tab. |
| CheckOpenCloseDelimiter(char, char, bool, bool, bool) | Performs the check open close delimiter operation. |
| CheckOpenCloseDelimiter(Rune, Rune, bool, bool, bool) | Performs the check open close delimiter operation. |
| CheckUnicodeCategory(char, bool, bool) | Checks the Unicode category of the given character and determines whether it is a whitespace or punctuation character. |
| CheckUnicodeCategory(Rune, bool, bool) | Check if a character is a Unicode whitespace or punctuation character. |
| EscapeInsecure(char) | Performs the escape insecure operation. |
| IsAcrossTab(int) | Determines whether across tab. |
| IsAlpha(char) | Determines whether alpha. |
| IsAlphaNumeric(char) | Determines whether alpha numeric. |
| IsAlphaUpper(char) | Determines whether alpha upper. |
| IsAsciiPunctuation(char) | Determines whether ascii punctuation. |
| IsControl(char) | Determines whether control. |
| IsDigit(char) | Determines whether digit. |
| IsEmailUsernameSpecialChar(char) | Determines whether email username special char. |
| IsEscapableSymbol(char) | Determines whether escapable symbol. |
| IsHighSurrogate(char) | Determines whether high surrogate. |
| IsLeftToRight(int) | Determines whether left to right. |
| IsLowSurrogate(char) | Determines whether low surrogate. |
| IsNewLineOrLineFeed(char) | Determines whether new line or line feed. |
| IsRightToLeft(int) | Determines whether right to left. |
| IsRomanLetterLowerPartial(char) | Determines whether roman letter lower partial. |
| IsRomanLetterPartial(char) | Determines whether roman letter partial. |
| IsRomanLetterUpperPartial(char) | Determines whether roman letter upper partial. |
| IsSpace(char) | Returns true if the character is a space (U+0020). |
| IsSpaceOrTab(char) | Returns true if the character is a space (U+0020) or tab (U+0009). |
| IsTab(char) | Returns true if the character is a tab (U+0009). |
| IsWhiteSpaceOrZero(char) | Determines whether white space or zero. |
| IsWhitespace(char) | true if the character is a Unicode whitespace character. |
| IsWhitespace(Rune) | true if the character is a Unicode whitespace character. |
| IsZero(char) | Determines whether zero. |
| RomanToArabic(ReadOnlySpan<char>) | Performs the roman to arabic operation. |
AddTab(int)
CharHelper.csCheckOpenCloseDelimiter overloads
CheckOpenCloseDelimiter(char, char, bool, bool, bool)
CharHelper.csCheckOpenCloseDelimiter(Rune, Rune, bool, bool, bool)
CharHelper.csCheckUnicodeCategory overloads
CheckUnicodeCategory(char, bool, bool)
CharHelper.csChecks the Unicode category of the given character and determines whether it is a whitespace or punctuation character.
CheckUnicodeCategory(Rune, bool, bool)
CharHelper.csCheck if a character is a Unicode whitespace or punctuation character.
Parameters
rRune- The character to evaluate. A supplementary character is also accepted.
spacebooltrueif the character is an Unicode whitespace characterpunctuationbooltrueif the character is a Unicode punctuation character
EscapeInsecure(char)
CharHelper.csIsAcrossTab(int)
CharHelper.csIsAlpha(char)
CharHelper.csIsAlphaNumeric(char)
CharHelper.csIsAlphaUpper(char)
CharHelper.csIsAsciiPunctuation(char)
CharHelper.csIsControl(char)
CharHelper.csIsDigit(char)
CharHelper.csIsEmailUsernameSpecialChar(char)
CharHelper.csIsEscapableSymbol(char)
CharHelper.csIsHighSurrogate(char)
CharHelper.csIsLeftToRight(int)
CharHelper.csIsLowSurrogate(char)
CharHelper.csIsNewLineOrLineFeed(char)
CharHelper.csIsRightToLeft(int)
CharHelper.csIsRomanLetterLowerPartial(char)
CharHelper.csIsRomanLetterPartial(char)
CharHelper.csIsRomanLetterUpperPartial(char)
CharHelper.csIsSpace(char)
CharHelper.csIsSpaceOrTab(char)
CharHelper.csIsTab(char)
CharHelper.csIsWhiteSpaceOrZero(char)
CharHelper.csIsWhitespace overloads
IsWhitespace(char)
CharHelper.cstrue if the character is a Unicode whitespace character.
IsWhitespace(Rune)
CharHelper.cstrue if the character is a Unicode whitespace character.
IsZero(char)
CharHelper.csRomanToArabic(ReadOnlySpan<char>)
CharHelper.csPerforms the roman to arabic operation.
public static int RomanToArabic(ReadOnlySpan<char> text)Constants
| Name | Description |
|---|---|
| ReplacementChar | Represents the replacement char. |
| ReplacementCharString | Represents the replacement char string. |
| TabSize | Represents the tab size. |
ReplacementChar
Represents the replacement char.
public const char ReplacementChar = '�'ReplacementCharString
Represents the replacement char string.
public const string ReplacementCharString = "�"TabSize
Represents the tab size.
public const int TabSize = 4