(Inherits from MfPrimitive)
Represents string object
Fields, Properties, Methods, Related, Example
Name |
Description |
|
Initializes a new instance of the MfString class optionally setting the Value property, ReturnAsObject property and the Readonly property. |
Name |
Description |
|
Gets the value associated with empty string |
Name |
Description |
|
Gets or sets if the MfString instance should Ignore case or not. |
||
Gets a single character from the MfString at zero-based index i. |
||
Gets the length of the Value property. |
||
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 MfString class will return objects as their return value for various functions. Inherited from MfPrimitive |
||
Gets or sets the value associated with the this instance. Overrides MfPrimitive.Value. |
Name |
Description |
|
Appends value string to current MfString instance. |
||
Appends a new line represented by MfEnvironment.NewLine to current MfString instance. |
||
Append value followed by a new line represented by MfEnvironment.NewLine to current MfString instance. |
||
Compares two string base up the Parameters passed into the MfParams object. |
||
Compares two specified MfString objects and returns an Integer that indicates their relative position in the sort order. |
||
Compares two specified MfString objects, ignoring or honoring their case, and returns an Integer that indicates their relative position in the sort order. |
||
Compares two specified MfString objects using the specified rules, and returns an Integer that indicates their relative position in the sort order. |
||
Compares substrings of two specified MfString objects and returns an Integer that indicates their relative position in the sort order. |
||
Compares substrings of two specified MfString objects, ignoring or honoring their case, and returns an Integer that indicates their relative position in the sort order. |
||
Compares this instance to a specified MfString object. Overrides MfObject.CompareTo() |
||
Creates the string representation of a specified objects. |
||
Reports if there is an occurrence of a character specified by searchChar within this instance. |
||
Reports if there is an occurrence of a character specified by searchChar within this instance. The search starts at a character position specified by startIndex. |
||
Reports if there is an occurrence of a character specified by searchChar within this instance. The search starts at a character position specified by startIndex and examines a number of character positions specified by count. |
||
Reports if there is an occurrence of a string specified by strSearch within this instance. |
||
Reports if there is an occurrence of a string specified by strSearch within this instance. The search starts at a character specified by startIndex position. |
||
Reports if there is an occurrence of a string specified by strSearch within this instance. The search starts at a character specified by startIndex position and examines a number of character positions specified by count. |
||
Reports if there is an occurrence of a character specified by searchChar within strMain. |
||
Reports if there is an occurrence of a character specified by searchChar within strMain. The search starts at a character specified by startIndex position. |
||
Reports if there is an occurrence of a character specified by searchChar within strMain. The search starts at a character specified by startIndex position and examines a number of character positions specified by count. |
||
Reports if there is an occurrence of a string specified by strSearch within strMain. |
||
Reports if there is an occurrence of a string specified by strSearch within strMain. The search starts at character position specified by startIndex. |
||
Reports if there is an occurrence of a string specified by strSearch within strMain. The search starts at character position specified by startIndex and examines a number of character positions specified by count. |
||
Cuts a copy of this instance of MfString if it is longer than a given length and returns the result of the copy. |
||
Cuts a copy of this instance of MfString if it is longer than a given length, replaces cut with the value of trailChars and returns the result of the copy |
||
Gets the Difference between MfString instance and the strFirst argument |
||
Gets the Difference between MfString instance and the strFirst argument with an included Max Distance. |
||
Gets the Difference between argument strFirst and argument strSecond |
||
Gets the Difference between argument strFirst and argument strSecond argument with an included Max Distance. |
||
Determines whether the end of MfString instance matches str. Case is Ignored |
||
Determines whether the end of MfString instance matches str and uses case rules set by comparisonType |
||
Gets if an instance of MfString equals strA. Overrides MfObject.Equals() |
||
Gets if an strA equals strB |
||
Escapes current instance of MfString for use with AutoHotkey and returns a copy. |
||
Escapes current instance of MfString for use with AutoHotkey and returns a copy. |
||
Escape current instance of MfString for use with the send command and returns a copy. |
||
Formats a variable number of input values according to a format string. |
||
Create a new instance of MfString from an instance of MfCharList. |
||
Gets an enumerator that can enumerate through the string as chars or integer char codes. |
||
Gets A hash code for the current MfString. Overrides MfObject.GetHashCode() |
||
Gets the Type for the for the Class .Inherited from MfObject. |
||
Get an enumeration value of MfTypeCode the represents MfString Type Code. |
||
Gets the string value as var from MfString object or var containing a String. Overrides MfPrimitive.GetValue() |
||
Reports the zero-based index position of the first occurrence of a character specified by searchChar within this instance. |
||
Reports the zero-based index position of the first occurrence of a character specified by searchChar within this instance. The search starts at a character position specified by startIndex. |
||
Reports the zero-based index position of the first occurrence of a character specified by searchChar within this instance. The search starts at a character position specified by startIndex and examines a number of character positions specified by count. |
||
Reports the zero-based index position of the first occurrence of a string specified by strSearch within this instance. |
||
Reports the zero-based index position of the first occurrence of a string specified by strSearch within this instance. The search starts at a character specified by startIndex position. |
||
Reports the zero-based index position of the first occurrence of a string specified by strSearch within this instance. The search starts at a character specified by startIndex position and examines a number of character positions specified by count. |
||
Reports the zero-based index position of the first occurrence of a character specified by searchChar within strMain. |
||
Reports the zero-based index position of the first occurrence of a character specified by searchChar within strMain. The search starts at a character specified by startIndex position. |
||
Reports the zero-based index position of the first occurrence of a character specified by searchChar within strMain. The search starts at a character specified by startIndex position and examines a number of character positions specified by count. |
||
Reports the zero-based index position of the first occurrence strSearch within strMain. |
||
Reports the zero-based index position of the first occurrence strSearch within this strMain. The search starts at character position specified by startIndex. |
||
Reports the zero-based index position of the first occurrence strSearch within this strMain. The search starts at character position specified by startIndex and examines a number of character positions specified by count. |
||
Gets if current instance of object is of the same type. Inherited from MfObject. Inherited from MfObject. |
||
Get if the current class is an instance. Inherited from MfObject. |
||
Gets if MfString instance or var is null or empty |
||
Reports the zero-based index position of the last occurrence of a character specified by searchChar within this instance. |
||
Reports the zero-based index position of the last occurrence of a character specified by searchChar within this instance. The search starts at a character position specified by startIndex. |
||
Reports the zero-based index position of the last occurrence of a character specified by searchChar within this instance. The search starts at a character position specified by startIndex and examines a number of character positions specified by count. |
||
Reports the zero-based index position of the last occurrence of a string specified by strSearch within this instance. |
||
Reports the zero-based index position of the last occurrence of a string specified by strSearch within this instance. The search starts at a character specified by startIndex position. |
||
Reports the zero-based index position of the last occurrence of a string specified by strSearch within this instance. The search starts at a character specified by startIndex position and examines a number of character positions specified by count. |
||
Reports the zero-based index position of the last occurrence of a character specified by searchChar within strMain. |
||
Reports the zero-based index position of the last occurrence of a character specified by searchChar within strMain. The search starts at a character specified by startIndex position. |
||
Reports the zero-based index position of the last occurrence of a character specified by searchChar within strMain. The search starts at a character specified by startIndex position and examines a number of character positions specified by count. |
||
Reports the zero-based index position of the last occurrence strSearch within strMain. |
||
Reports the zero-based index position of the last occurrence strSearch within this strMain. The search starts at character position specified by startIndex. |
||
Reports the zero-based index position of the last occurrence strSearch within this strMain. The search starts at character position specified by startIndex and examines a number of character positions specified by count. |
||
Creates a shallow copy of the current MfObject instance. Inherited from MfObject. |
||
Returns a new MfString that right-aligns the characters in this instance of MfString by padding them with spaces on the left, for a specified total length. |
||
Returns a new MfString that right-aligns the characters in this instance of MfString by padding them on the left with a specified character, for a specified total length. |
||
Returns new MfString that right-aligns the characters in the str of MfString by padding them with spaces on the left, for a specified total length. |
||
Returns a new MfString that left-aligns the characters in this instance of MfString by padding them with spaces on the right, for a specified total length. |
||
Returns a new MfString that left-aligns the characters in this instance of MfString by padding them on the right with a specified character, for a specified total length. |
||
Returns a new MfString that left-aligns the characters in the str of MfString by padding them with spaces on the right, for a specified total length. |
||
Returns a new MfString that left-aligns the characters in the str of MfString by padding them on the right with a specified character, for a specified total length. |
||
Returns a new MfString in which all the characters in the current instance, beginning at a specified position and continuing through the last position, have been deleted. |
||
Returns a new MfString with n characters removed from the zero-base startIndex forward, where n is count. |
||
Gets a string with all Unicode whitespace chars removed |
||
Reverses the value of the MfString instance into a string. |
||
Reverses the value of str into a string. |
||
Splits the current string into all it characters. |
||
Splits the string into part by characters in separator. |
||
Splits the string into parts by characters with options. |
||
Determines whether the start of MfString instance matches str. Case is Ignored |
||
Determines whether the start of MfString instance matches str and uses case rules set by comparisonType |
||
Retrieves a substring from this instance. The substring starts at a specified character position. |
||
Retrieves a substring from this instance. The substring starts at a specified character position and has a specified length. |
||
Retrieves a substring from the str. The substring starts at a specified character position. |
||
Retrieves a substring from the str. The substring starts at a specified character position and has a specified length. |
||
Copies the characters in a specified substring in this instance to a MfList of MfChar. |
||
Copies the characters in a specified substring in this instance to a MfList of MfChar starting at the positing of startIndex. |
||
Copies the characters in a specified substring in this instance to a MfList of MfChar starting at the positing of startIndex and stopping at length position. |
||
Convert current instance of MfString to instance of MfCharList. |
||
Gets a copy of the current Value and returns it converted to lower-case. |
||
Gets a string representation of the Value of the MfString instance. Overrides MfPrimitive.ToString() |
||
Gets a copy of the current Value and returns it converted to title-case. |
||
Gets a copy of the current Value and returns it converted to upper-case. |
||
Removes all leading and trailing white-space characters from the current MfString object. |
||
Removes all leading and trailing occurrences of a set of characters specified in trimChars from the current MfString object. |
||
Removes all trailing occurrences of white-space from the current MfString. |
||
Removes all trailing occurrences of a set of characters specified in trimchars from the current MfString. |
||
Removes all leading occurrences of white-space from the current MfString. |
||
Removes all leading occurrences of a set of characters specified in trimchars from the current MfString. |
||
UnEscapes current instance of MfString that is encoded for AutoHotkey and returns a copy. |
||
UnEscapes current instance of MfString that is encoded for AutoHotkey and returns a copy. |
mfsMsg := new MfString("What are your favorite pets names")
mfsMsg.AppendLine()
mfsMsg.Append("Separate names with commas")
UserInput := Mfunc.InputBox("Favorite pets", mfsMsg, , 450, 180)
if MfString.IsNullOrEmpty(UserInput)
{
MsgBox, No Input was given
}
else
{
try
{
strResult := new MfString(UserInput)
col := strResult.Split(",", MfStringSplitOptions.Instance.RemoveEmptyEntries)
MsgBox, 64, Value, % MfString.Format("You entered {0} Favorite Pets", col.Count)
strList := new MfString()
for i, pet in col
{
if (i < (col.Count -1))
{
strList.AppendLine(pet)
}
else
{
strList.Append(pet)
}
}
MsgBox, 64, List, % strList.Value
}
catch
{
MsgBox, 16, Bad Input, The input was not acceptable.
}
}