[]
Provides a set of static methods to work with Japanese encodings.
public static class CharHelper
Shows how to use CharHelper in KeyPress event handler for conditioning filtering inputs.
private void c1TextBox1_KeyPress(object sender, KeyPressEventArgs e)
{
if (CharHelper.IsKatakana(e.KeyChar))
e.KeyChar = CharHelper.ToHiragana(e.KeyChar);
}
Name | Description |
---|---|
Backspace | Defines the control char: Backspace |
MaxValue | Represents the largest possible value of a Char. This field is constant. |
MinValue | Represents the smallest possible value of a Char. This field is constant. |
Null | Defines the Null char. |
Space | Defines the control char: Space. |
Tab | Defines the control char: Tab. |
Name | Description |
---|---|
FromAnsi(char) | Converts the value of an ANSI character to it's Unicode equivalent. |
FromAnsi(char, CultureInfo) | Converts the value of a ANSI character to it's Unicode equivalent using the specified culture information. |
GetCharType(char) | Retrieves the type of character. |
HasLowerKana(char) | Determines whether the related kana has a related lower case. |
IsAlphaOrDigit(char) | Indicates whether the specified Unicode character is categorized as a alphabet letter or digit. |
IsAlphaOrDigit(string, int) | Indicates whether the character at the specified position in the specified string is a alphabet letter or digit. |
IsAlphabet(char) | Indicates whether the specified Unicode character is categorized as a alphabet letter. |
IsAlphabet(string, int) | Indicates whether the character at the specified position in the specified string is a alphabet letter. |
IsBigKana(char) | Indicates whether the specified Unicode character is categorized as a big (capital) case kana. |
IsCharOfType(char, CharTypes) | Determines whether the specified character is of the specified type. |
IsControl(char) | Indicates whether the specified Unicode character is categorized as a control code. |
IsControl(string, int) | Indicates whether the character at the specified position in the specified string is a control code. |
IsDigit(char) | Indicates whether the specified Unicode character is categorized as a Numeric digit. |
IsDigit(string, int) | Indicates whether the character at the specified position in the specified string is a Numeric digit. |
IsDigitOrSymbol(char) | Indicates whether the specified Unicode character is categorized as a Numeric or a Math symbol. |
IsDigitOrSymbol(string, int) | Indicates whether the character at the specified position in the specified string is a Numeric or a Math symbol. |
IsFullWidth(char) | Indicates whether the specified Unicode character is a full width character. Usually CJK characters are considers as full widths. |
IsFullWidth(string, int) | Indicates whether the character at the specified position in the specified string is a full width character. Usually CJK characters are considers as full widths. |
IsHiragana(char) | Indicates whether the specified Unicode character is categorized as a Hiragana letter. |
IsHiragana(string, int) | Indicates whether the character at the specified position in the specified string is a Hiragana character. |
IsKatakana(char) | Indicates whether the specified Unicode character is categorized as a Katakana letter. |
IsKatakana(string, int) | Indicates whether the character at the specified position in the specified string is a Katakana character. |
IsLower(char) | Indicates whether the specified Unicode character is categorized as a Lowercase letter. |
IsLower(string, int) | Indicates whether the character at the specified position in the specified string is a Lowercase letter. |
IsLowerKana(char) | Indicates whether the specified Unicode character is categorized as a lower (normal) case kana. |
IsMathSymbol(char) | Indicates whether the specified Unicode character is categorized as a mathematical symbol. |
IsMathSymbol(string, int) | Indicates whether the character at the specified position in the specified string is a mathematical symbol. |
IsMultiWidth(char) | Indicates whether the specified Unicode character is categorized as a multi-width character. |
IsMultiWidth(string, int) | Indicates whether the character at the specified position in a specified string is categorized as a multi-width character. |
IsOther(char) | Indicates whether a Unicode character doesn't belong to any specific letter. |
IsPunctuation(char) | Indicates whether the specified Unicode character is categorized as a Punctuation character. |
IsPunctuation(string, int) | Indicates whether the character at the specified position in the specified string is a Punctuation character. |
IsSymbol(char) | Indicates whether the specified Unicode character is categorized as a Symbol character. |
IsSymbol(string, int) | Indicates whether the character at the specified position in the specified string is a Symbol character. |
IsUpper(char) | Indicates whether the specified Unicode character is categorized as a Uppercase letter. |
IsUpper(string, int) | Indicates whether the character at the specified position in the specified string is a Uppercase letter. |
IsUpperKana(char) | Indicates whether the specified Unicode character is categorized as a upper (capital) case kana. |
ToAnsi(char) | Converts the value of a Unicode character to it's ANSI equivalent. |
ToAnsi(char, CultureInfo) | Converts the value of a Unicode character to it's ANSI equivalent using the specified culture information. |
ToFullWidth(out bool, params char[]) | Tansforms the specified character to a full width character if possible. This method differs from the other where it takes on an array of characters. In FarEast country there are times when multiple half width characters make a one full width character. |
ToFullWidth(char) | Transforms the specified character to a full width character if possible. Ranges are Latin basic, Katakana and Hangul characters. |
ToHalfWidth(char) | Converts the value of a Unicode character to it's half width equivalent. Ranges are Latin basic, Katakana and Hangul characters. |
ToHalfWidthEx(char) | Transforms the specified character to a half width character if possible. This method differs from the ToHalfWidth method where it tries to return the accurate half width character - which most likely happens in FarEast countries. |
ToHiragana(char) | Converts the value of a Unicode character to it's "Hiragana" equivalent. Special character handling for the Japanese language. |
ToJIS(char) | Converts the value of a Shift-JIS (Japanese encoding) character to it's JIS equivalent. |
ToKatakana(char) | Converts the value of a Unicode character to it's "Katakana" equivalent. Special character handling for the Japanese language. |
ToKatakana(char, bool) | Converts the value of a Unicode character to it's "Katakana" equivalent with an optional setting of full or half width. Special character handling for the Japanese language |
ToLowerKana(char) | Converts an upper (capital) case kana into a lower case (normal). |
ToSJIS(char) | Converts the value of a JIS (Japanese encoding) character to it's Shift-JIS equivalent. |
ToUpperKana(char) | Converts an lower (normal) case kana into a upper (capital) case. |