(Inherits from MfPrimitive)
Represents a character as a UTF-16 code unit.
Fields, Properties, Methods, Example
Name |
Description |
|
Initializes a new instance of the MfChar class optionally setting the Value property and the ReturnAsObject property and the Readonly property. |
Name |
Description |
|
Gets the largest possible value of an MfChar. |
||
Gets the smallest possible value of an MfChar. |
Name |
Description |
|
Gets or sets the CharCode associated with the this instance of MfChar |
||
Gets or sets if the MfChar instance should Ignore case or not. |
||
Gets the if the derived class will allow the underlying value to be altered after the constructor has been called. Inherited from MfPrimitive |
||
Gets or sets the if the class will return objects as their return value for various functions. Inherited from MfPrimitive |
||
Gets or sets the value associated with the class. Overrides MfPrimitive.Value. |
Name |
Description |
|
Compares this instance to a specified MfChar object.. Overrides MfObject.CompareTo() |
||
Gets if this instance Value is the same as the value. Overrides MfObject.Equals() |
||
Get a new instance of MfChar from an integer char value |
||
Gets A hash code for the current MfChar. Overrides MfObject.GetHashCode() |
||
Converts the specified numeric Unicode character to a decimal number for c. |
||
Converts the specified numeric Unicode character to a decimal number for the character in string s at the location of Zero-based index. Index can be instance of MfInteger or var containing integer. |
||
Gets the Type for the for the Class .Inherited from MfObject. |
||
Get an enumeration value of MfTypeCode the represents MfChar Type Code. |
||
Categorizes a specified Unicode character into a group identified by one of the MfUnicodeCategory values for c. |
||
Categorizes a specified Unicode character into a group identified by one of the MfUnicodeCategory values for the character in string s at the location of Zero-based index. |
||
Gets the string value from MfChar instance or MfString instance or var containing a string. If string has more then one character then the first character is returned. |
||
Gets the string value from MfString instance or var containing a string at the location of Zero-based index. |
||
Indicates whether the specified Unicode character is categorized as a control character for c. |
||
Indicates whether the specified character of c is categorized as a decimal digit. |
||
Indicates whether the specified character is categorized as a decimal digit for the character at position index in s. |
||
Indicates whether the specified Unicode character is categorized as a control character from MfString instance or var containing a string at the location of Zero-based index. |
||
Indicates whether the specified character of c is a high surrogate. |
||
Indicates whether the specified character is a high surrogate that ranges from U+D800 through U+DBFF for the character at position index in s. |
||
Get if the current class is an instance. Inherited from MfObject. |
||
Indicates whether the specified character of c is categorized as a Unicode letter. |
||
Indicates whether the specified character is categorized as a Unicode letter for the character at position index in s. |
||
Indicates whether the specified character of c is categorized as a letter or a decimal digit. |
||
Indicates whether the specified character is categorized as a letter or a decimal digit for the character at position index in s. |
||
Indicates whether the specified character of c is categorized as a lowercase letter. |
||
Indicates whether the specified character is categorized as a lowercase letter for the character at position index in s. |
||
Indicates whether the specified character of c is a low surrogate. |
||
Indicates whether the specified character is a low surrogate for the character at position index in s. |
||
Indicates whether the specified character of c is categorized as a Unicode number. |
||
Indicates whether the specified character is categorized as a Unicode number for the character at position index in s. |
||
Indicates whether the specified character of c is categorized as a punctuation mark. |
||
Indicates whether the specified character is categorized as a punctuation mark for the character at position index in s. |
||
Indicates whether the specified character of c is categorized as a separator character. |
||
Indicates whether the specified character is categorized as a separator character for the character at position index in s. |
||
Indicates whether the two specified MfChar objects form a surrogate pair. |
||
Indicates whether two adjacent characters in a string at a specified position form a surrogate pair. |
||
Indicates whether the specified character of c is categorized as a symbol character. |
||
Indicates whether the specified character is categorized as a symbol character for the character at position index in s. |
||
Indicates whether the specified character of c is categorized as a uppercase letter. |
||
Indicates whether the specified character is categorized as a uppercase letter for the character at position index in s. |
||
Indicates whether the specified character of c is categorized as white space. |
||
Indicates whether the specified character is categorized as white space for the character at position index in s. |
||
Creates a shallow copy of the current MfObject instance. Inherited from MfObject. |
||
Converts the specified string representation of a logical value to its Boolean equivalent, or throws an exception if the string is not equal to the value of TrueString or FalseString. |
||
Returns the lowercase equivalent of c, or the unchanged value of c, if c is already lowercase or not alphabetic. |
||
Returns the lowercase equivalent of the character at position index in s or the unchanged value of character at position index if character is already lowercase or not alphabetic. |
||
Gets a string representation of the MfChar instance.. Overrides MfPrimitive.ToString() |
||
Indicates whether the specified character of c is categorized as a uppercase letter. |
||
Indicates whether the specified character is categorized as a uppercase letter for the character at position index in s. |
||
Converts the value of the specified string to its equivalent Unicode character. A return code indicates whether the conversion succeeded or failed. |
UserInput := Mfunc.InputBox("Byte Value", "Enter a single character", , 300, 140)
if (ErrorLevel)
{
MsgBox, CANCEL was pressed.
}
else
{
try
{
ch := new MfChar(UserInput)
if (MfChar.IsDigit(ch))
{
MsgBox, 64, Digit, You entered a Digit
}
else if (MfChar.IsLetter(ch))
{
if (MfChar.IsUpper(ch))
{
MsgBox, 64, Upper, You entered an upper case letter
}
else if (MfChar.IsLower(ch))
{
MsgBox, 64, Lower, You entered a lower case letter
}
}
else if (MfChar.IsWhiteSpace(ch))
{
MsgBox, 64,, Whitespace, You entered a whitespace character
}
else
{
MsgBox, 64, Char Code, % MfString.Format("You enter a character with a char code of {0}", ch.CharCode)
}
}
catch
{
MsgBox, 16, Bad Input, The input was not acceptable.
}
}