Returns the application file path (including application file name). Does not work on Android. CAUTION: this function works only in release mode. In debug mode, the path of MFLib.jar library will be returned.
Check if file exists in directory, the filename can use wildcard characters (*, ?). Set ignoreCase to True to ignore case sensitivity on compare. If extendedCompare is True the filename can also contains the wildcard + and character ranges ([a,b,c] or [a-z]). Wildcard + is same as * but at least one character must exist (* accepts empty strings).
Returns the real file name if the file exists in directory or an empty string if not. The filename can use wildcard characters (*, ?). Set ignoreCase to True to ignore case sensitivity on compare. If extendedCompare is True the filename can also contains the wildcard + and character ranges ([a,b,c] or [a-z]). Wildcard + is same as * but at least one character must exist (* accepts empty strings).
Returns a list of matching files from directory, the filename can use wildcard characters (*, ?). Set ignoreCase to True to ignore case sensitivity on compare. If extendedCompare is True the filename can also contains the wildcard + and character ranges ([a,b,c] or [a-z]). Wildcard + is same as * but at least one character must exist (* accepts empty strings).
Returns a list of matching files from directory, the filename can use wildcard characters (*, ?). Set ignoreCase to True to ignore case sensitivity on compare. If extendedCompare is True the filename can also contains the wildcard + and character ranges ([a,b,c] or [a-z]). Wildcard + is same as * but at least one character must exist (* accepts empty strings). If resursive is True then subfolders will also scanned. If listFiles is True then files will included in the result list. If listDirs is True then directories will included in the result list.
Compare the levenshtein distance between a word and all entries in a wordlist. All entries with a score >= threshold (between 0.0 and 1.0) are part of the result list. Set ignoreCase to true to ignore case sensitivity on compare.
Compares string with pattern, the pattern can use wildcard characters (*, ?). Set ignoreCase to true to ignore case sensitivity on compare. If extendedCompare ist true the pattern can also contains the wildcard + and character ranges ([a,b,c] or [a-z]). Wildcard + is same as * but at least one character must exist (* accepts empty strings).
SubActivity_Create(FirstTimeAsBoolean)
DimresultAsBoolean result = MF_String.Compare("This is a test string", "*TEST*", true, false)
result = MF_String.Compare("This is my best string", "*[B,T]EST*", true, true)
EndSub
SubActivity_Create(FirstTimeAsBoolean)
DimresultAsInt result = MF_String.LevenshteinDistance("This is the first string", "This is the second string", True)
EndSub
Mid (strAsString, posAsInt, numAsInt) AsString
Get num chars from the given string starting at pos.
Set the length of the given string. The empty space is filled with the fill char. If rightAdjust is True, the source string is right adjusted in the target string.
Split a string at given delimiters. If repeater is true then following delimiters will inspected as one delimiter. If ignoreFirst is True then a empty string before the first delimiter will be ignored. If ignoreLast is True then a empty string after the last delimiter will be ignored.
Split a string at given delimiters. If startQuotas and endQuotas are not empty, delimiters between quotas will be ignored. If repeater is true then following delimiters will inspected as one delimiter. If ignoreFirst is True then a empty string before the first delimiter will be ignored. If ignoreLast is True then a empty string after the last delimiter will be ignored. If includeQuotas is true then available quotas will included in the result.
Split a list of strings at given delimiters. If repeater is true then following delimiters will inspected as one delimiter. If ignoreFirst is True then a empty string before the first delimiter will be ignored. If ignoreLast is True then a empty string after the last delimiter will be ignored.
Split a list of strings at given delimiters. If startQuotas and endQuotas are not empty, delimiters between quotas will be ignored. If repeater is true then following delimiters will inspected as one delimiter. If ignoreFirst is True then a empty string before the first delimiter will be ignored. If ignoreLast is True then a empty string after the last delimiter will be ignored. If includeQuotas is true then available quotas will included in the result.
Translate or erase characters in string. Reimplementation of the 'translate' function from REXX. The string will be searched for the characters in 'translateIn' and replaced with the characters in 'translateOut'. If 'translateOut' is shorter as 'translateIn' or a empty string, the found characters are replaced with the 'fill' char. If the 'fill' char is Zero, the characters will be deleted. If 'translageIn' is a empty string, the string will be filled with 'fill' char or set to uppercase if 'fill' is zero.