Press on the image to return to the main documentation page.
MMTools
Written by Mathew Mayne
List of types:
BaseTools
BooleanTools
ColourTools
ConversionTools
DateTools
FileTools
ListTools
MapTools
NumberTools
ObjectTools
RandomTools
StringBuilderTools
StringTools
BaseTools
Events:
None
Members:
Author
As
String
Copyright
As
String
IsInitialized
As
Boolean
Name
As
String
Version
As
String
Members description:
Author
As
String
Returns the author (ME!) of the library.
Copyright
As
String
Returns the copyright of the library.
IsInitialized
As
Boolean
Tests whether the object has been initialized.
Name
As
String
Returns the name of the library.
Version
As
String
Returns the version of the library.
BooleanTools
Events:
None
Members:
And2
(
Inputs
()
As
Boolean
)
As
Boolean
FromInt
(
Input
As
Int
)
As
Boolean
FromInt2
(
Input
As
Int
,
TrueValue
As
Int
,
FalseValue
As
Int
)
As
Boolean
Iif
(
Value
As
Boolean
,
Response1
As
String
,
Response2
As
String
)
As
String
IsFalse
(
Input
As
Boolean
)
As
Boolean
IsInitialized
As
Boolean
IsNotFalse
(
Input
As
Boolean
)
As
Boolean
IsNotTrue
(
Input
As
Boolean
)
As
Boolean
IsTrue
(
Input
As
Boolean
)
As
Boolean
Negate
(
Value
As
Boolean
)
As
Boolean
Or2
(
Inputs
()
As
Boolean
)
As
Boolean
ToInt
(
Input
As
Boolean
)
As
Int
ToInt2
(
Input
As
Boolean
,
TrueValue
As
Int
,
FalseValue
As
Int
)
As
Int
ToString
(
Input
As
Boolean
,
TrueValue
As
String
,
FalseValue
As
String
)
As
String
ToStringOnOff
(
Input
As
Boolean
)
As
String
ToStringTrueFalse
(
Value
As
Boolean
)
As
String
ToStringYesNo
(
Input
As
Boolean
)
As
String
Members description:
And2
(
Inputs
()
As
Boolean
)
As
Boolean
Performs an And on an array of booleans.
FromInt
(
Input
As
Int
)
As
Boolean
Returns True if input is 1, False otherwise
FromInt2
(
Input
As
Int
,
TrueValue
As
Int
,
FalseValue
As
Int
)
As
Boolean
Returns is True if Input is TrueValue, False otherwise
Iif
(
Value
As
Boolean
,
Response1
As
String
,
Response2
As
String
)
As
String
Single line If statement. If Value is true returns Reponse1 else Response2.
IsFalse
(
Input
As
Boolean
)
As
Boolean
Checks if input is false
IsInitialized
As
Boolean
Tests whether the object has been initialized.
IsNotFalse
(
Input
As
Boolean
)
As
Boolean
Checks if Input is not false
IsNotTrue
(
Input
As
Boolean
)
As
Boolean
Checks if input is not true
IsTrue
(
Input
As
Boolean
)
As
Boolean
Checks if input is true
Negate
(
Value
As
Boolean
)
As
Boolean
Or2
(
Inputs
()
As
Boolean
)
As
Boolean
Performs an Or on an array of booleans.
ToInt
(
Input
As
Boolean
)
As
Int
Returns 1 for true and 0 for false
ToInt2
(
Input
As
Boolean
,
TrueValue
As
Int
,
FalseValue
As
Int
)
As
Int
Returns TrueValue for true, FalseValue if false
ToString
(
Input
As
Boolean
,
TrueValue
As
String
,
FalseValue
As
String
)
As
String
Returns TrueValue for true, FalseValue if false
ToStringOnOff
(
Input
As
Boolean
)
As
String
Returns On for True, and Off for false
ToStringTrueFalse
(
Value
As
Boolean
)
As
String
ToStringYesNo
(
Input
As
Boolean
)
As
String
Returns Yes for True, and No for false
ColourTools
Events:
None
Members:
IsInitialized
As
Boolean
IsSameColour
(
Colour1
As
Int
,
Colour2
As
Int
)
As
Boolean
RandomColour
As
Int
RandomColour2
As
Int
Members description:
IsInitialized
As
Boolean
Tests whether the object has been initialized.
IsSameColour
(
Colour1
As
Int
,
Colour2
As
Int
)
As
Boolean
Returns true if Colour1 and Colour2 represent the same colour.
RandomColour
As
Int
Returns a random colour, with alpha set to 255.
RandomColour2
As
Int
Returns a random colour.
ConversionTools
Events:
None
Members:
CelsiusToKelvin
(
Celsius
As
Double
)
As
Double
IsInitialized
As
Boolean
KelvinToCelsius
(
Kelvin
As
Double
)
As
Double
KelvinToFahrenheit
(
Kelvin
As
Double
)
As
Double
KelvinToRankine
(
Kelvin
As
Double
)
As
Double
Members description:
CelsiusToKelvin
(
Celsius
As
Double
)
As
Double
IsInitialized
As
Boolean
Tests whether the object has been initialized.
KelvinToCelsius
(
Kelvin
As
Double
)
As
Double
KelvinToFahrenheit
(
Kelvin
As
Double
)
As
Double
KelvinToRankine
(
Kelvin
As
Double
)
As
Double
DateTools
Events:
None
Members:
AddDays
(
Date
As
Long
,
Amount
As
Int
)
As
Long
AddMonths
(
Date
As
Long
,
Amount
As
Int
)
As
Long
AddYears
(
Date
As
Long
,
Amount
As
Int
)
As
Long
CurrentDayOfMonth
As
Int
CurrentDayOfWeek
As
Int
CurrentDayOfYear
As
Int
CurrentHour
As
Int
CurrentMinute
As
Int
CurrentMonth
As
Int
CurrentSecond
As
Int
CurrentYear
As
Int
DayOfWeek
As
String
DayOfWeek2
(
Day
As
Int
)
As
String
DaysBetween
(
Date1
As
Long
,
Date2
As
Long
)
As
Int
DaysInMonth
(
Month
As
Int
,
Year
As
Int
)
As
Int
DaysInYear
As
Int
DaysInYear2
(
Year
As
Int
)
As
Int
DaysToDate
(
Days
As
Int
)
As
Long
Easter
As
Long
Easter2
(
Year
As
Int
)
As
Long
Epoch
As
Long
FirstDayOfYear
(
Year
As
Int
)
As
Long
FormatDate
(
Date
As
Long
,
Format
As
String
)
As
String
FormatDateTime
(
TimeDate
As
Long
,
Format
As
String
)
As
String
FormatTime
(
Time
As
Long
,
Format
As
String
)
As
String
GetDayOfWeekName
(
Ticks
As
Long
)
As
String
GetEra
(
Ticks
As
Long
)
As
String
GetMonthName
(
Ticks
As
Long
)
As
String
HoursInYear
As
Double
HoursInYear2
(
Year
As
Int
)
As
Double
IsAfter
(
Date1
As
Long
,
Date2
As
Long
)
As
Boolean
IsBefore
(
Date1
As
Long
,
Date2
As
Long
)
As
Boolean
IsEaster
(
Date
As
Long
)
As
Boolean
IsEaster2
(
Date
As
Long
,
Year
As
Int
)
As
Boolean
IsHourInInterval
(
Target
As
String
,
Start
As
String
,
End1
As
String
)
As
Boolean
IsInitialized
As
Boolean
IsLeapYear
As
Boolean
IsLeapYear2
(
Year
As
Int
)
As
Boolean
IsNow
(
Date
As
Long
)
As
Boolean
IsSameDate
(
Date1
As
Long
,
Date2
As
Long
)
As
Boolean
IsSameTime
(
Date1
As
Long
,
Date2
As
Long
)
As
Boolean
LastDayOfYear
(
Year
As
Int
)
As
Long
LeapYear
(
Year
As
Int
)
As
Long
MonthName
(
Month
As
Int
,
ZeroBased
As
Boolean
)
As
String
NextLeapYear
(
FromYear
As
Int
)
As
Int
ParseDate
(
Date
As
String
,
Format
As
String
)
As
Long
ParseDateTime
(
Date
As
String
,
Time
As
String
,
Format
As
String
)
As
Long
ParseTime
(
Time
As
String
,
Format
As
String
)
As
Long
ParseTimeToMinutes
(
HourFormat
As
String
)
As
Double
PreviousLeapYear
(
FromYear
As
Int
)
As
Int
SearchDate
(
Date1
As
Long
,
Date2
As
Long
,
DateRange
As
Int
)
As
Boolean
Tomorrow
As
Long
ToString
(
Ticks
As
Long
)
As
String
YearsBetween
(
Year1
As
Int
,
Year2
As
Int
)
As
Int
Yesterday
As
Long
Members description:
AddDays
(
Date
As
Long
,
Amount
As
Int
)
As
Long
Adds the specified number of days to Date.
AddMonths
(
Date
As
Long
,
Amount
As
Int
)
As
Long
Adds the specified number of months to Date.
AddYears
(
Date
As
Long
,
Amount
As
Int
)
As
Long
Adds the specified number of years to Date.
CurrentDayOfMonth
As
Int
Returs the current day of the month. Can be 1 to 31
CurrentDayOfWeek
As
Int
Returns the current day of the week. Can be 1 to 7. 1 is Sunday
CurrentDayOfYear
As
Int
Returns the current day of the year. Can be 1 to 366
CurrentHour
As
Int
Returns the current hour, can be 0 to 23
CurrentMinute
As
Int
Returns the current minute. Can be 0 to 59
CurrentMonth
As
Int
Returns the current month of the year. Can be 1 to 12
CurrentSecond
As
Int
Returns the current second. Can be 0 to 59
CurrentYear
As
Int
Returns the current year
DayOfWeek
As
String
Gets the name of the day of the week
DayOfWeek2
(
Day
As
Int
)
As
String
Gets the name of the day of the week
DaysBetween
(
Date1
As
Long
,
Date2
As
Long
)
As
Int
Returns the number of days Between Date1 as Date2
DaysInMonth
(
Month
As
Int
,
Year
As
Int
)
As
Int
Returns the number of days in the given month
DaysInYear
As
Int
Returns the number of days in the current year
DaysInYear2
(
Year
As
Int
)
As
Int
Returns the number of days in the given year.
DaysToDate
(
Days
As
Int
)
As
Long
Returns the date that is in Days days. Days can be negative or positive. The time will be equal to the current time.
Easter
As
Long
Returns Easter sunday for the current year.
Easter2
(
Year
As
Int
)
As
Long
Returns Easter sunday for the given year.
Epoch
As
Long
Returns the date and time of the epoch
FirstDayOfYear
(
Year
As
Int
)
As
Long
Returns the first day of the Year.
FormatDate
(
Date
As
Long
,
Format
As
String
)
As
String
Formats the date using the given format.
FormatDateTime
(
TimeDate
As
Long
,
Format
As
String
)
As
String
Formats the datetime using the given format.
FormatTime
(
Time
As
Long
,
Format
As
String
)
As
String
Formats the time using the given format.
GetDayOfWeekName
(
Ticks
As
Long
)
As
String
Returns the name of the day of the week of the ticks value.
GetEra
(
Ticks
As
Long
)
As
String
Gets the era of Ticks.
GetMonthName
(
Ticks
As
Long
)
As
String
Gets the name of the month represented by Ticks.
HoursInYear
As
Double
Returns the number of hours in the current year.
HoursInYear2
(
Year
As
Int
)
As
Double
Returns the number of hours in the given year.
IsAfter
(
Date1
As
Long
,
Date2
As
Long
)
As
Boolean
Returns true if Date1 as after Date2
IsBefore
(
Date1
As
Long
,
Date2
As
Long
)
As
Boolean
Returns true if Date1 is before Date2
IsEaster
(
Date
As
Long
)
As
Boolean
Tests whether Date is easter.
IsEaster2
(
Date
As
Long
,
Year
As
Int
)
As
Boolean
Tests whether date is easter.
IsHourInInterval
(
Target
As
String
,
Start
As
String
,
End1
As
String
)
As
Boolean
Return true if Target is between Start and End1.
IsInitialized
As
Boolean
Tests whether the object has been initialized.
IsLeapYear
As
Boolean
Returns true if this year is a leap year
IsLeapYear2
(
Year
As
Int
)
As
Boolean
Returns true if Year is a leap year
IsNow
(
Date
As
Long
)
As
Boolean
Returns true if Date is equal to the current date and time
IsSameDate
(
Date1
As
Long
,
Date2
As
Long
)
As
Boolean
Returns true if Date1 and Date2 represent the same date
IsSameTime
(
Date1
As
Long
,
Date2
As
Long
)
As
Boolean
Returns true if Date1 and Date2 represent the same time
LastDayOfYear
(
Year
As
Int
)
As
Long
Returns the last day of the Year.
LeapYear
(
Year
As
Int
)
As
Long
Returns the date of the leap day in the leap year.
MonthName
(
Month
As
Int
,
ZeroBased
As
Boolean
)
As
String
Returns the English name of the given month, ZeroBased in you want the first month to be 0.
NextLeapYear
(
FromYear
As
Int
)
As
Int
Returns the next leap year, counting up from FromYear.
ParseDate
(
Date
As
String
,
Format
As
String
)
As
Long
Parses the given date, using the specified format.
ParseDateTime
(
Date
As
String
,
Time
As
String
,
Format
As
String
)
As
Long
Parses the given datetime, using the specified format.
ParseTime
(
Time
As
String
,
Format
As
String
)
As
Long
Parses the given time, using the specified format.
ParseTimeToMinutes
(
HourFormat
As
String
)
As
Double
Turns a period of time into the number of minutes represented. Returns -1 on failure.
PreviousLeapYear
(
FromYear
As
Int
)
As
Int
Returns the previous leap year, counting down from FromYear.
SearchDate
(
Date1
As
Long
,
Date2
As
Long
,
DateRange
As
Int
)
As
Boolean
Returns true if Date1 and date2 are within DateRange days of each other.
Tomorrow
As
Long
Returns tomorrow's date, with the time set to the current time
ToString
(
Ticks
As
Long
)
As
String
Returns the date & time value of the ticks value
YearsBetween
(
Year1
As
Int
,
Year2
As
Int
)
As
Int
Returns the number of years between Year1 and Year2.
NOTE: This does not take into account dates.
Yesterday
As
Long
Returns yesterday's date, with the time set to the current time
FileTools
Events:
None
Members:
BytesToImage
(
Data
()
As
Byte
,
StartOffset
As
Int
,
MaxCount
As
Int
)
As
BitmapWrapper
ChangeExt
(
FileName
As
String
,
NewExt
As
String
)
As
String
Copy
(
Dir
As
String
,
FileName
As
String
,
OtherDir
As
String
,
OtherFileName
As
String
)
As
Boolean
CountFiles
(
Dir
As
String
)
As
Int
CreateNewFile
(
Dir
As
String
,
FileName
As
String
)
As
Boolean
DirectoryContains
(
Dir
As
String
,
Child
As
String
)
As
Boolean
FileBaseName
(
FileName
As
String
)
As
String
FileExtension
(
FileName
As
String
)
As
String
FormattedFileSize
(
Dir
As
String
,
FileName
As
String
)
As
String
GetFileName
(
FileName
As
String
)
As
String
IsDirectoryEmpty
(
Dir
As
String
)
As
Boolean
IsExtension
(
FileName
As
String
,
Extension
As
String
)
As
Boolean
IsExtension2
(
FileName
As
String
,
Extension
()
As
String
)
As
Boolean
IsFile
(
Dir
As
String
,
FileName
As
String
)
As
Boolean
IsFileNewer
(
Dir
As
String
,
FileName
As
String
,
Date
As
Long
)
As
Boolean
IsFileNewer2
(
Dir1
As
String
,
FileName1
As
String
,
Dir2
As
String
,
FileName2
As
String
)
As
Boolean
IsFileOlder
(
Dir
As
String
,
FileName
As
String
,
Date
As
Long
)
As
Boolean
IsFileOlder2
(
Dir1
As
String
,
FileName1
As
String
,
Dir2
As
String
,
FileName2
As
String
)
As
Boolean
IsHidden
(
Dir
As
String
,
FileName
As
String
)
As
Boolean
IsInitialized
As
Boolean
IsReadable
(
Dir
As
String
,
FileName
As
String
)
As
Boolean
IsSameDir
(
Dir1
As
String
,
Dir2
As
String
)
As
Boolean
IsSameFile
(
Dir1
As
String
,
FileName1
As
String
,
Dir2
As
String
,
FileName2
As
String
)
As
Boolean
IsTextFile
(
Dir
As
String
,
FileName
As
String
)
As
Boolean
LineCount
(
Dir
As
String
,
FileName
As
String
)
As
Int
ListDirs
(
Dir
As
String
)
As
List
ListFiles
(
Dir
As
String
)
As
List
Move
(
Dir
As
String
,
FileName
As
String
,
NewDir
As
String
,
NewFileName
As
String
)
As
Boolean
NoDirs
(
Dir
As
String
)
As
Int
NoFiles
(
Dir
As
String
)
As
Int
ReadAllBytes
(
Dir
As
String
,
FileName
As
String
)
As
Byte
()
ReadAllBytes2
(
Dir
As
String
,
FileName
As
String
,
Encoding
As
String
)
As
Byte
()
ReadCharArray
(
Dir
As
String
,
FileName
As
String
)
As
Char
()
ReadFirstLine
(
Dir
As
String
,
FileName
As
String
)
As
String
ReadLine
(
Dir
As
String
,
FileName
As
String
,
Line
As
Int
)
As
String
ReadLines
(
Dir
As
String
,
FileName
As
String
,
Line
As
Int
,
Count
As
Int
)
As
List
ReadStringArray
(
Dir
As
String
,
FileName
As
String
)
As
String
()
RemoveIllegalChars
(
FileName
As
String
)
As
String
RemoveLines
(
Dir
As
String
,
FileName
As
String
,
Line
As
Int
,
Count
As
Int
)
As
String
Rename
(
Dir
As
String
,
FileName
As
String
,
NewName
As
String
)
As
Boolean
SaveImage
(
Image
As
BitmapWrapper
,
Dir
As
String
,
FileName
As
String
)
As
String
SeparatorsToUnix
(
FileName
As
String
)
As
String
SeparatorsToWindows
(
FileName
As
String
)
As
String
SetLastModified
(
Dir
As
String
,
FileName
As
String
)
As
Boolean
StringToInputStream
(
Input
As
String
)
As
InputStreamWrapper
Touch
(
Dir
As
String
,
FileName
As
String
)
As
Boolean
WriteCharArray
(
Dir
As
String
,
FileName
As
String
,
Input
()
As
Char
)
As
String
WriteStringArray
(
Dir
As
String
,
FileName
As
String
,
Input
()
As
String
)
As
String
Members description:
BytesToImage
(
Data
()
As
Byte
,
StartOffset
As
Int
,
MaxCount
As
Int
)
As
BitmapWrapper
Returns the given bytes array as an image, or thors an exception if no image is stored.
ChangeExt
(
FileName
As
String
,
NewExt
As
String
)
As
String
Returns FileName with the extension replaced by NewExt
Copy
(
Dir
As
String
,
FileName
As
String
,
OtherDir
As
String
,
OtherFileName
As
String
)
As
Boolean
Copies FileName to OtherFileName. Works in the same way as Rename, but does not delete the original (obviously).
CountFiles
(
Dir
As
String
)
As
Int
Returns the number of files and directories in Dir.
CreateNewFile
(
Dir
As
String
,
FileName
As
String
)
As
Boolean
Creates a new file, if and only if the file does not already exist. Returns true if the file was created, false otherwise
DirectoryContains
(
Dir
As
String
,
Child
As
String
)
As
Boolean
Returns true if Dir has a file or folder called Child.
FileBaseName
(
FileName
As
String
)
As
String
Returns the file base name
FileExtension
(
FileName
As
String
)
As
String
Returns the file extension
FormattedFileSize
(
Dir
As
String
,
FileName
As
String
)
As
String
Returns the size of the file, formatted in a human readable string
GetFileName
(
FileName
As
String
)
As
String
Returns the filename
IsDirectoryEmpty
(
Dir
As
String
)
As
Boolean
Tests whether Dir has no files or directories in it. Returns false if the directory could be ne accessed.
IsExtension
(
FileName
As
String
,
Extension
As
String
)
As
Boolean
Returns true if Extension is the extension of the file
IsExtension2
(
FileName
As
String
,
Extension
()
As
String
)
As
Boolean
Returns true if any of the given extensions is the extension of the file
IsFile
(
Dir
As
String
,
FileName
As
String
)
As
Boolean
Tests whether the specified file is a file.
IsFileNewer
(
Dir
As
String
,
FileName
As
String
,
Date
As
Long
)
As
Boolean
Returns true if File is newer than Date
IsFileNewer2
(
Dir1
As
String
,
FileName1
As
String
,
Dir2
As
String
,
FileName2
As
String
)
As
Boolean
Returns true if file1 is newer than file2
IsFileOlder
(
Dir
As
String
,
FileName
As
String
,
Date
As
Long
)
As
Boolean
Returns true if File is older than date
IsFileOlder2
(
Dir1
As
String
,
FileName1
As
String
,
Dir2
As
String
,
FileName2
As
String
)
As
Boolean
Returns true if file1 is older than file2
IsHidden
(
Dir
As
String
,
FileName
As
String
)
As
Boolean
Returns true if the file is hidden.
This does not check if the file is hidden on Windows.
IsInitialized
As
Boolean
Tests whether the object has been initialized.
IsReadable
(
Dir
As
String
,
FileName
As
String
)
As
Boolean
Returns true if the specified file can be read.
IsSameDir
(
Dir1
As
String
,
Dir2
As
String
)
As
Boolean
Returns true if Dir1 is the same direcotry as Dir2.
IsSameFile
(
Dir1
As
String
,
FileName1
As
String
,
Dir2
As
String
,
FileName2
As
String
)
As
Boolean
Returns true if the contents of the files are equal.
NOTE: Can be slow at times, especially on large files!.
IsTextFile
(
Dir
As
String
,
FileName
As
String
)
As
Boolean
Returns True if the given file can be read as a text file
LineCount
(
Dir
As
String
,
FileName
As
String
)
As
Int
Returns the number of lines in the given file.
ListDirs
(
Dir
As
String
)
As
List
Lists only directories in the given directory
ListFiles
(
Dir
As
String
)
As
List
Lists only files in the given directory
Move
(
Dir
As
String
,
FileName
As
String
,
NewDir
As
String
,
NewFileName
As
String
)
As
Boolean
Moves FileName to NewFileName. Works in the same way as Rename.
NoDirs
(
Dir
As
String
)
As
Int
Returns the number of directories in Dir.
NoFiles
(
Dir
As
String
)
As
Int
Returns the number of files in Dir.
ReadAllBytes
(
Dir
As
String
,
FileName
As
String
)
As
Byte
()
Reads all bytes in the given file. Using UTF8 for the encoding
ReadAllBytes2
(
Dir
As
String
,
FileName
As
String
,
Encoding
As
String
)
As
Byte
()
Reads all bytes in the given file using Encoding for the encoding
ReadCharArray
(
Dir
As
String
,
FileName
As
String
)
As
Char
()
Reads the given file to a char array
ReadFirstLine
(
Dir
As
String
,
FileName
As
String
)
As
String
Reads and returns the first line in a file.
ReadLine
(
Dir
As
String
,
FileName
As
String
,
Line
As
Int
)
As
String
Reads line Line from FileName.
ReadLines
(
Dir
As
String
,
FileName
As
String
,
Line
As
Int
,
Count
As
Int
)
As
List
Reads count lines from FileName, starting at Line.
ReadStringArray
(
Dir
As
String
,
FileName
As
String
)
As
String
()
Reads the given file to a String array
RemoveIllegalChars
(
FileName
As
String
)
As
String
Removes illegal characters from a filename so that it can be saved.
RemoveLines
(
Dir
As
String
,
FileName
As
String
,
Line
As
Int
,
Count
As
Int
)
As
String
Removes lines from FileName, starting at Line and removing Count (exclusive) lines.
Rename
(
Dir
As
String
,
FileName
As
String
,
NewName
As
String
)
As
Boolean
Renames FileName to NewFileName.
This Is done by reading the contents of FileName and writing it To NewName and Then deleting the original.
SaveImage
(
Image
As
BitmapWrapper
,
Dir
As
String
,
FileName
As
String
)
As
String
Saves the given image as a PNG to the given directory and filename. Overwrites the file if it already exists
SeparatorsToUnix
(
FileName
As
String
)
As
String
Converts the separators to Unix separators.
SeparatorsToWindows
(
FileName
As
String
)
As
String
Converts the separators to Windows separators.
SetLastModified
(
Dir
As
String
,
FileName
As
String
)
As
Boolean
Updates the last modified date of the given file.
StringToInputStream
(
Input
As
String
)
As
InputStreamWrapper
Returns an InputStream for the given string.
Touch
(
Dir
As
String
,
FileName
As
String
)
As
Boolean
Same as touch command on Unix. Sets the last modified date of a file if it exists, creates a file with the current date and time.
WriteCharArray
(
Dir
As
String
,
FileName
As
String
,
Input
()
As
Char
)
As
String
Writes the given char array to a file
WriteStringArray
(
Dir
As
String
,
FileName
As
String
,
Input
()
As
String
)
As
String
Writes the String array to the given file. Items containing CRLF will be written to two lines
ListTools
Events:
None
Members:
AddFirst
(
List
As
List
,
Item
As
Object
)
As
List
AddLast
(
List
As
List
,
Item
As
Object
)
As
List
Equals
(
List1
As
List
,
List2
As
List
)
As
Boolean
Fill
(
List
()
As
String
,
FillWith
As
String
)
As
String
()
GetFirst
(
List
As
List
)
As
Object
GetLast
(
List
As
List
)
As
Object
IsEmpty
(
List
As
List
)
As
Boolean
IsEmpty2
(
List
()
As
Object
)
As
Boolean
IsIndexValid
(
Objects
()
As
Object
,
Index
As
Int
)
As
Boolean
IsIndexValid2
(
List
As
List
,
Index
As
Int
)
As
Boolean
IsInitialized
As
Boolean
IsNotEmpty
(
List
As
List
)
As
Boolean
IsNotEmpty2
(
List
()
As
Object
)
As
Boolean
IsSameLength
(
List
As
List
,
List2
As
List
)
As
Boolean
IsUnique
(
List
As
List
)
As
Boolean
ListIndexOf
(
List
As
List
,
LookFor
As
Object
)
As
Int
ListIndexOf2
(
List
As
List
,
LookFor
As
Object
,
StartAt
As
Int
)
As
Int
ListIndexOf3
(
List
As
List
,
LookFor
As
Object
)
As
Int
ListIndexOf4
(
List
As
List
,
LookFor
As
Object
,
StartAt
As
Int
)
As
Int
PickRandomElement
(
List
As
List
)
As
Object
PickRandomElement2
(
List
()
As
String
)
As
String
Push
(
Objects
()
As
Object
,
NewItem
As
Object
)
As
Object
()
RemoveFirst
(
List
As
List
)
As
List
RemoveLast
(
List
As
List
)
As
List
Reverse
(
List
As
List
)
As
List
RotateList
(
List
As
List
)
As
List
RotateList2
(
List
As
List
,
Index
As
Int
)
As
List
Search
(
List
As
List
,
SearchTerm
As
String
,
CaseSensitive
As
Boolean
)
As
List
Search2
(
List
As
List
,
SearchTerm
As
String
,
CaseSensitive
As
Boolean
)
As
List
Set
(
Objects
()
As
Object
,
NewItem
As
Object
,
Index
As
Int
)
As
Object
()
ShuffleArray
(
StringArray
()
As
String
)
As
String
()
ShuffleList
(
List
As
List
)
As
List
Sort
(
List
As
List
,
Ascending
As
Boolean
,
CaseSensitive
As
Boolean
)
As
List
SortArray
(
StringArray
()
As
String
,
Ascending
As
Boolean
,
CaseSensitive
As
Boolean
)
As
String
()
SubList
(
List
As
List
,
StartIndex
As
Int
)
As
List
SubList2
(
List
As
List
,
StartIndex
As
Int
,
EndIndex
As
Int
)
As
List
Swap
(
List
As
List
,
Index1
As
Int
,
Index2
As
Int
)
As
List
ToString
(
List
As
List
)
As
String
ToString2
(
List
As
List
)
As
String
ToString3
(
List
As
List
,
Separator
As
Char
)
As
String
ToString4
(
List
As
List
,
Separator
As
String
)
As
String
ToStringArray
(
List
As
List
)
As
String
()
Members description:
AddFirst
(
List
As
List
,
Item
As
Object
)
As
List
Adds Item to the first index
AddLast
(
List
As
List
,
Item
As
Object
)
As
List
Adds Item to the last index
Equals
(
List1
As
List
,
List2
As
List
)
As
Boolean
Returns true if both lists contains the same values, in the same order.
Fill
(
List
()
As
String
,
FillWith
As
String
)
As
String
()
Fills the given array with FillWith.
GetFirst
(
List
As
List
)
As
Object
Returns but does not remove the first item in the list
GetLast
(
List
As
List
)
As
Object
Returns but does not remove the last item in the list
IsEmpty
(
List
As
List
)
As
Boolean
Tests whether List is empty.
IsEmpty2
(
List
()
As
Object
)
As
Boolean
Tests whether List is empty.
IsIndexValid
(
Objects
()
As
Object
,
Index
As
Int
)
As
Boolean
Tests whether Index is valid in relation to Obects.
IsIndexValid2
(
List
As
List
,
Index
As
Int
)
As
Boolean
Tests whether Index is valid in relation to List.
IsInitialized
As
Boolean
Tests whether the object has been initialized.
IsNotEmpty
(
List
As
List
)
As
Boolean
Tests whether List is not empty.
IsNotEmpty2
(
List
()
As
Object
)
As
Boolean
Tests whether List is not empty.
IsSameLength
(
List
As
List
,
List2
As
List
)
As
Boolean
Tests whether the two lists are of the same size.
IsUnique
(
List
As
List
)
As
Boolean
Returns true if the list contains no more than 1 of each item.
ListIndexOf
(
List
As
List
,
LookFor
As
Object
)
As
Int
Retruns the index of LookFor, or -1 of it wasn't found
ListIndexOf2
(
List
As
List
,
LookFor
As
Object
,
StartAt
As
Int
)
As
Int
Returns the index of LookFor, starting from StartAt, or -1 if it wasn't found
ListIndexOf3
(
List
As
List
,
LookFor
As
Object
)
As
Int
Retruns the index of LookFor, or -1 of it wasn't found. Ignores the type of the objects
ListIndexOf4
(
List
As
List
,
LookFor
As
Object
,
StartAt
As
Int
)
As
Int
Returns the index of LookFor, starting from StartAt, or -1 if it wasn't found. Ignores the type of the objects
PickRandomElement
(
List
As
List
)
As
Object
Returns a random item from the list.
PickRandomElement2
(
List
()
As
String
)
As
String
Returns a random item from the array.
Push
(
Objects
()
As
Object
,
NewItem
As
Object
)
As
Object
()
Returns a new array that has NewItem pushed onto the end of Objects.
RemoveFirst
(
List
As
List
)
As
List
Removes the first item from the list
RemoveLast
(
List
As
List
)
As
List
Removes the last item from the list
Reverse
(
List
As
List
)
As
List
Reverses the list
RotateList
(
List
As
List
)
As
List
Rotates the given list, by removing the first item and adding it to the end of the list.
RotateList2
(
List
As
List
,
Index
As
Int
)
As
List
Similar to RotateList, but allows you to specifiy which item to move to the end.
Search
(
List
As
List
,
SearchTerm
As
String
,
CaseSensitive
As
Boolean
)
As
List
Returns the search results for the given searchterm.
Search2
(
List
As
List
,
SearchTerm
As
String
,
CaseSensitive
As
Boolean
)
As
List
Returns the search results for the given searchterm.
Set
(
Objects
()
As
Object
,
NewItem
As
Object
,
Index
As
Int
)
As
Object
()
Sets the object at Index to be NewItem. Throws an exception if the Inex is not valid.
ShuffleArray
(
StringArray
()
As
String
)
As
String
()
Shuffles the given String array
ShuffleList
(
List
As
List
)
As
List
Shuffles the given list
Sort
(
List
As
List
,
Ascending
As
Boolean
,
CaseSensitive
As
Boolean
)
As
List
Sorts the given list.
SortArray
(
StringArray
()
As
String
,
Ascending
As
Boolean
,
CaseSensitive
As
Boolean
)
As
String
()
Sorts the given string array.
SubList
(
List
As
List
,
StartIndex
As
Int
)
As
List
Returns the items in the list starting at StartIndex (Inclusive), and stopping at the end of the List.
SubList2
(
List
As
List
,
StartIndex
As
Int
,
EndIndex
As
Int
)
As
List
Similar to SubList, but you can also specify the EndIndex (exclusive)
Swap
(
List
As
List
,
Index1
As
Int
,
Index2
As
Int
)
As
List
ToString
(
List
As
List
)
As
String
Converts the given list, separating the items with ,
ToString2
(
List
As
List
)
As
String
Convets the list to a string, separating the items with a new line
ToString3
(
List
As
List
,
Separator
As
Char
)
As
String
Converts the list to a string, using separator as the separator
ToString4
(
List
As
List
,
Separator
As
String
)
As
String
Converts the list to a string, using separator as the separator
ToStringArray
(
List
As
List
)
As
String
()
Converts the given list to a string array.
MapTools
Events:
None
Members:
ContainsKey
(
Map
As
Map
,
Key
As
Object
)
As
Boolean
ContainsValue
(
Map
As
Map
,
Value
As
Object
)
As
Boolean
FromList
(
List
As
List
)
As
Map
GetFirst
(
Map
As
Map
)
As
Object
GetFirstKey
(
Map
As
Map
)
As
Object
GetLast
(
Map
As
Map
)
As
Object
GetLastKey
(
Map
As
Map
)
As
Object
IsEmpty
(
Map
As
Map
)
As
Boolean
IsInitialized
As
Boolean
Keys
(
Map
As
Map
)
As
List
PutAll
(
ToMap
As
Map
,
FromMap
As
Map
)
As
String
RemoveFirst
(
Map
As
Map
)
As
Object
RemoveLast
(
Map
As
Map
)
As
Object
ToList
(
Map
As
Map
)
As
List
ToString
(
Map
As
Map
)
As
String
ToString2
(
Map
As
Map
)
As
String
()
Values
(
Map
As
Map
)
As
List
Members description:
ContainsKey
(
Map
As
Map
,
Key
As
Object
)
As
Boolean
ContainsValue
(
Map
As
Map
,
Value
As
Object
)
As
Boolean
FromList
(
List
As
List
)
As
Map
GetFirst
(
Map
As
Map
)
As
Object
Gets, but does not remove the first entry, or null of the map is empty.
GetFirstKey
(
Map
As
Map
)
As
Object
Gets, but does not remove the first key, or null of the map is empty.
GetLast
(
Map
As
Map
)
As
Object
Returns but does not remove the last entry, or null if the map is empty.
GetLastKey
(
Map
As
Map
)
As
Object
Returns but does not remove the last key, or null if the map is empty.
IsEmpty
(
Map
As
Map
)
As
Boolean
Returns true if Map has no entries.
IsInitialized
As
Boolean
Tests whether the object has been initialized.
Keys
(
Map
As
Map
)
As
List
PutAll
(
ToMap
As
Map
,
FromMap
As
Map
)
As
String
Puts all the entries in FromMap in ToMap.
RemoveFirst
(
Map
As
Map
)
As
Object
Gets and removes the first entry, or null if the map is empty.
RemoveLast
(
Map
As
Map
)
As
Object
Gets and remove the last entry, or null if the map is emtpy.
ToList
(
Map
As
Map
)
As
List
ToString
(
Map
As
Map
)
As
String
Returns a string representation of the map in the format of Key: Entry.
ToString2
(
Map
As
Map
)
As
String
()
Same as ToString, but returns a string array.
Values
(
Map
As
Map
)
As
List
NumberTools
Events:
None
Members:
ArithmeticGeometicMean
(
A
As
Double
,
B
As
Double
)
As
Double
Cube
(
Input
As
Double
)
As
Double
DotProduct
(
A
()
As
Double
,
B
()
As
Double
)
As
Double
EqulibirimIndices
(
Sequence
()
As
Int
)
As
List
Fibonacci
(
N
As
Int
)
As
Long
FlipCoin
As
String
FlipCoin2
(
Heads
As
String
,
Tails
As
String
)
As
String
FuzzyEquals
(
A
As
Double
,
B
As
Double
,
Tolerance
As
Double
)
As
Boolean
GreatestCommonDivisor
(
A
As
Int
,
B
As
Int
)
As
Int
IsEmirp
(
Value
As
Int
)
As
Boolean
IsEven
(
Input
As
Int
)
As
Boolean
IsEvil
(
Input
As
Int
)
As
Boolean
IsHappy
(
Number
As
Int
)
As
Boolean
IsInitialized
As
Boolean
IsNarcissistic
(
Input
As
Long
)
As
Boolean
IsOdd
(
Input
As
Int
)
As
Boolean
IsOdious
(
Input
As
Int
)
As
Boolean
IsPerfect
(
N
As
Int
)
As
Boolean
IsPernicious
(
Input
As
Int
)
As
Boolean
IsPrime
(
a
As
Int
)
As
Boolean
IsSelfDescribing
(
Input
As
Int
)
As
Boolean
Luhn
(
Number
As
String
)
As
Boolean
Max2
(
Number1
As
Double
,
Number2
As
Double
,
Number3
As
Double
)
As
Double
Max3
(
Numbers
()
As
Double
)
As
Double
Mean
(
List
As
List
)
As
Double
Median
(
Doubles
()
As
Double
)
As
Double
MiddleThreeDigits
(
N
As
Int
)
As
Int
Min2
(
Number1
As
Double
,
Number2
As
Double
,
Number3
As
Double
)
As
Double
Min3
(
Numbers
()
As
Double
)
As
Double
NextDown
(
Value
As
Int
)
As
Int
NextUp
(
Value
As
Int
)
As
Int
PopulationCount
(
Input
As
Int
)
As
Int
PopulationCount2
(
Input
As
String
)
As
Int
Random
As
Int
Random2
(
UpperLimit
As
Int
)
As
Int
Random3
(
LowerLimit
As
Int
)
As
Int
RollDice
As
Int
RollDice2
(
NoDice
As
Int
,
Sides
As
Int
)
As
Int
()
StirlingGamma
(
X
As
Double
)
As
Double
Sums
(
Input
As
List
)
As
Double
TimesTable
(
Table
As
Int
)
As
String
TimesTable2
(
Table
As
Int
,
Upper
As
Int
)
As
String
TimesTable3
(
Table
As
Int
,
Lower
As
Int
,
Upper
As
Int
)
As
String
ToArabic
(
Input
As
String
)
As
Int
ToArabicSingle
(
Input
As
Char
)
As
Int
ToRoman
(
Input
As
Int
)
As
String
ToWords
(
Number
As
Int
)
As
String
ToWords2
(
Number
As
Int
)
As
String
TriangleNumbers
(
Limit
As
Int
)
As
Int
()
Variance
(
List
As
List
)
As
Double
Variance2
(
List
As
List
,
TheMean
As
Double
)
As
Double
Members description:
ArithmeticGeometicMean
(
A
As
Double
,
B
As
Double
)
As
Double
Returns the AGM of A and B
Cube
(
Input
As
Double
)
As
Double
Returns the cube of the given input.
DotProduct
(
A
()
As
Double
,
B
()
As
Double
)
As
Double
Calculates the dot product of a number. Throws an exception of the arrays are not of the same size.
EqulibirimIndices
(
Sequence
()
As
Int
)
As
List
An equilibrium index of a sequence is an index into the sequence such that the sum of elements at lower indices is equal to the sum of elements at higher indices.
Fibonacci
(
N
As
Int
)
As
Long
Calculates the Fibnacci sequence.
Dim
nt
as
NumberTools
For
i
=
1
To
16
Log
(
nt
.
Fibonacci
(
i
))
Next
FlipCoin
As
String
Flips a coin, returning heads or tails
FlipCoin2
(
Heads
As
String
,
Tails
As
String
)
As
String
Flips a coin, returning Heads or Tails
FuzzyEquals
(
A
As
Double
,
B
As
Double
,
Tolerance
As
Double
)
As
Boolean
Returns true if A and B are with in Tolerance of each other.
GreatestCommonDivisor
(
A
As
Int
,
B
As
Int
)
As
Int
Returns the greatest commond divisor of 2 numbers.
IsEmirp
(
Value
As
Int
)
As
Boolean
Tests whether a number is an emirp (A prime number that when reversed is a different prime number).
IsEven
(
Input
As
Int
)
As
Boolean
Tests whether Input is an even number.
IsEvil
(
Input
As
Int
)
As
Boolean
Returns true if Input is an evil number
IsHappy
(
Number
As
Int
)
As
Boolean
Returns whether or not Number is a happy number.
A happy number is defined by the following process. Starting with any positive integer, replace the number by the sum of the squares of its digits, and repeat the process until the number equals 1 (where it will stay), or it loops endlessly in a cycle which does not include 1.
IsInitialized
As
Boolean
Tests whether the object has been initialized.
IsNarcissistic
(
Input
As
Long
)
As
Boolean
Tests whether Input is a Narcissistic number.
IsOdd
(
Input
As
Int
)
As
Boolean
Tests whether Input is an odd number.
IsOdious
(
Input
As
Int
)
As
Boolean
Returns true if Input is an odious number.
IsPerfect
(
N
As
Int
)
As
Boolean
Calculates whether or not a number is perfect.
A perfect number is a positive integer that is the sum of its proper positive divisors excluding the number itself. Equivalently, a perfect number is a number that is half the sum of all of its positive divisors (including itself).
IsPernicious
(
Input
As
Int
)
As
Boolean
Tests whther a number is pernicious, that is has a population count that is a prime number.
IsPrime
(
a
As
Int
)
As
Boolean
Checks whether a is a prime.
IsSelfDescribing
(
Input
As
Int
)
As
Boolean
Calculates whether Input is a self describing number.
Luhn
(
Number
As
String
)
As
Boolean
Checks whether a credit card number is valid checking it using the Luhn method. This doesn't mean the number exists, just checks it is valid.
Max2
(
Number1
As
Double
,
Number2
As
Double
,
Number3
As
Double
)
As
Double
Similar to Max, but takes 3 numbers.
Max3
(
Numbers
()
As
Double
)
As
Double
Returns the largest number from an array of numbers.
Mean
(
List
As
List
)
As
Double
Calculates the mean from the given list
Median
(
Doubles
()
As
Double
)
As
Double
Returns the median of the given values
MiddleThreeDigits
(
N
As
Int
)
As
Int
Returns the middle 3 digits in N. Throws an exception if the number is not odd or the length is less than 3
Min2
(
Number1
As
Double
,
Number2
As
Double
,
Number3
As
Double
)
As
Double
Similar to Min, but takes 3 numbers.
Min3
(
Numbers
()
As
Double
)
As
Double
Returns the smallest number from an array of numbers.
NextDown
(
Value
As
Int
)
As
Int
Returns the next number down from Value.
NextUp
(
Value
As
Int
)
As
Int
Returns the next number up from Value.
PopulationCount
(
Input
As
Int
)
As
Int
Gets the population count of Input.
PopulationCount2
(
Input
As
String
)
As
Int
Gets the population count of Input, input being a binary string.
Random
As
Int
Returns a random number between 1 (inclusive) and 101 (exclusive)
Random2
(
UpperLimit
As
Int
)
As
Int
Returns a random number between 0 (inclusive) and UpperLimit (exclusive)
Random3
(
LowerLimit
As
Int
)
As
Int
Returns a randm number between LowerLimit (inclusive) and LowerLimit times by 9999 (exclusive)
RollDice
As
Int
Rolls a dice and returns the outcome of the roll.
RollDice2
(
NoDice
As
Int
,
Sides
As
Int
)
As
Int
()
Returns NoDice rolled dice, with Sides being the upper limit (inclusive).
StirlingGamma
(
X
As
Double
)
As
Double
Returns the Stirling Gamma of a number.
Sums
(
Input
As
List
)
As
Double
Returns the sum of the given list.
TimesTable
(
Table
As
Int
)
As
String
Generates a times table for the specified number.
TimesTable2
(
Table
As
Int
,
Upper
As
Int
)
As
String
Similar to TimesTable, but allows you to specify the upper limit.
TimesTable3
(
Table
As
Int
,
Lower
As
Int
,
Upper
As
Int
)
As
String
'Similar to TimesTable but allows you to specifiy the lower and upper limits.
ToArabic
(
Input
As
String
)
As
Int
Converts Input to an Arabic numeral
ToArabicSingle
(
Input
As
Char
)
As
Int
Converts Input to an Arabic numeral
ToRoman
(
Input
As
Int
)
As
String
Converts Input to a Roman numeral
ToWords
(
Number
As
Int
)
As
String
Converts Number to its English representation. the maximum number supported is 1000.
ToWords2
(
Number
As
Int
)
As
String
Converts Input to its English representation. The minimum number supported is -9999999. The maximum number supported is 9999999.
TriangleNumbers
(
Limit
As
Int
)
As
Int
()
Calculates the first Limit triangle numbers.
Variance
(
List
As
List
)
As
Double
Calculates the variance, when the mean is not known
Variance2
(
List
As
List
,
TheMean
As
Double
)
As
Double
Calculates the variance, when the mean is known.
ObjectTools
Events:
None
Members:
Clone
(
Obj
As
Object
)
As
Object
Equals
(
Obj
As
Object
,
Other
As
Object
)
As
Boolean
IsInitialized
As
Boolean
ToString
(
Obj
As
Object
)
As
String
Members description:
Clone
(
Obj
As
Object
)
As
Object
Returns a new copy of Obj
Equals
(
Obj
As
Object
,
Other
As
Object
)
As
Boolean
Determines whether Obj is equal to other.
IsInitialized
As
Boolean
Tests whether the object has been initialized.
ToString
(
Obj
As
Object
)
As
String
Returns Obj as a string
RandomTools
Events:
None
Members:
IsInitialized
As
Boolean
RandomBoolean
As
Boolean
RandomBooleans
(
Count
As
Int
)
As
Boolean
()
RandomBytes
(
Count
As
Int
)
As
Byte
()
RandomBytes2
(
Count
As
Int
)
As
Byte
()
Members description:
IsInitialized
As
Boolean
Tests whether the object has been initialized.
RandomBoolean
As
Boolean
Generates a random boolean value.
RandomBooleans
(
Count
As
Int
)
As
Boolean
()
Generates Count random boolean values.
RandomBytes
(
Count
As
Int
)
As
Byte
()
Rethrns random bytes.
RandomBytes2
(
Count
As
Int
)
As
Byte
()
Returns random bytes.
StringBuilderTools
Events:
None
Members:
AppendAll
(
StringBuilder
As
StringBuilderWrapper
,
Input
()
As
String
)
As
StringBuilderWrapper
AppendAll2
(
StringBuilder
As
StringBuilderWrapper
,
Input
()
As
String
,
Separator
As
String
)
As
StringBuilderWrapper
AppendLn
(
StringBuilder
As
StringBuilderWrapper
,
Text
As
String
)
As
StringBuilderWrapper
AppendNewLine
(
StringBuilder
As
StringBuilderWrapper
)
As
StringBuilderWrapper
AppendSeparator
(
StringBuilder
As
StringBuilderWrapper
,
Separator
As
Char
)
As
StringBuilderWrapper
AppendStringBuilder
(
StringBuilder
As
StringBuilderWrapper
,
StringBuilder2
As
StringBuilderWrapper
)
As
StringBuilderWrapper
CharAt
(
StringBuilder
As
StringBuilderWrapper
,
Index
As
Int
)
As
Char
Clear
(
SB
As
StringBuilderWrapper
)
As
StringBuilderWrapper
Contains
(
SearchFor
As
String
,
SB
As
StringBuilderWrapper
)
As
Boolean
EndsWith
(
Suffix
As
String
,
SB
As
StringBuilderWrapper
)
As
Boolean
IndexOf
(
SearchFor
As
String
,
SB
As
StringBuilderWrapper
)
As
Int
IndexOf2
(
SearchFor
As
String
,
StartAt
As
Int
,
SB
As
StringBuilderWrapper
)
As
Int
IsEmpty
(
StringBuilder
As
StringBuilderWrapper
)
As
Boolean
IsInitialized
As
Boolean
IsNumber1
(
SB
As
StringBuilderWrapper
)
As
Boolean
ReadToStringBuilder
(
Dir
As
String
,
FileName
As
String
,
SB
As
StringBuilderWrapper
)
As
String
ReadToStringBuilder2
(
Dir
As
String
,
FileName
As
String
)
As
StringBuilderWrapper
Repeat
(
SB
As
StringBuilderWrapper
,
Times
As
Int
)
As
StringBuilderWrapper
Replace
(
Target
As
String
,
Replacement
As
String
,
SB
As
StringBuilderWrapper
)
As
StringBuilderWrapper
SetCharAt
(
SB
As
StringBuilderWrapper
,
Index
As
Int
,
Input
As
Char
)
As
StringBuilderWrapper
StartsWith
(
Prefix
As
String
,
SB
As
StringBuilderWrapper
)
As
Boolean
StringToStringBuilder
(
Input
As
String
)
As
StringBuilderWrapper
ToCharArray
(
SB
As
StringBuilderWrapper
)
As
Char
()
ToCharArray2
(
SB
As
StringBuilderWrapper
,
StartIndex
As
Int
,
EndIndex
As
Int
)
As
Char
()
ToLowercase
(
SB
As
StringBuilderWrapper
)
As
StringBuilderWrapper
ToUppercase
(
SB
As
StringBuilderWrapper
)
As
StringBuilderWrapper
Trim
(
SB
As
StringBuilderWrapper
)
As
StringBuilderWrapper
WriteStringBuilder
(
Dir
As
String
,
FileName
As
String
,
SB
As
StringBuilderWrapper
)
As
String
Members description:
AppendAll
(
StringBuilder
As
StringBuilderWrapper
,
Input
()
As
String
)
As
StringBuilderWrapper
Appends an array of strings to StringBuilder.
AppendAll2
(
StringBuilder
As
StringBuilderWrapper
,
Input
()
As
String
,
Separator
As
String
)
As
StringBuilderWrapper
Similar to AppendAll, but allows you to specify a spearator.
AppendLn
(
StringBuilder
As
StringBuilderWrapper
,
Text
As
String
)
As
StringBuilderWrapper
Appends Text and a new line to StringBuilder.
AppendNewLine
(
StringBuilder
As
StringBuilderWrapper
)
As
StringBuilderWrapper
Appends a new line to the end of the StringBuilder.
AppendSeparator
(
StringBuilder
As
StringBuilderWrapper
,
Separator
As
Char
)
As
StringBuilderWrapper
Appends Spearator to the end of the StringBuilder, if StringBuilder is not empty.
AppendStringBuilder
(
StringBuilder
As
StringBuilderWrapper
,
StringBuilder2
As
StringBuilderWrapper
)
As
StringBuilderWrapper
Appends another StringBuilder to StringBuilder.
CharAt
(
StringBuilder
As
StringBuilderWrapper
,
Index
As
Int
)
As
Char
Returns the character at the specified index.
Clear
(
SB
As
StringBuilderWrapper
)
As
StringBuilderWrapper
Clears the given StringBuilder.
Contains
(
SearchFor
As
String
,
SB
As
StringBuilderWrapper
)
As
Boolean
Returns true if SB contains SearchFor
EndsWith
(
Suffix
As
String
,
SB
As
StringBuilderWrapper
)
As
Boolean
Returns true if SB ends with suffix.
IndexOf
(
SearchFor
As
String
,
SB
As
StringBuilderWrapper
)
As
Int
Returns the first index of SearchFor.
IndexOf2
(
SearchFor
As
String
,
StartAt
As
Int
,
SB
As
StringBuilderWrapper
)
As
Int
Returns the first index of SearchFor, starting from StartAt.
IsEmpty
(
StringBuilder
As
StringBuilderWrapper
)
As
Boolean
Tests whether StringBuilder is empty.
IsInitialized
As
Boolean
Tests whether the object has been initialized.
IsNumber1
(
SB
As
StringBuilderWrapper
)
As
Boolean
Returns true if SB is a number.
ReadToStringBuilder
(
Dir
As
String
,
FileName
As
String
,
SB
As
StringBuilderWrapper
)
As
String
Appends the contents of the specified file to the StringBuilder.
ReadToStringBuilder2
(
Dir
As
String
,
FileName
As
String
)
As
StringBuilderWrapper
Reads the contents of the specified file to the StringBuilder.
Repeat
(
SB
As
StringBuilderWrapper
,
Times
As
Int
)
As
StringBuilderWrapper
Repeats SB Times times.
Replace
(
Target
As
String
,
Replacement
As
String
,
SB
As
StringBuilderWrapper
)
As
StringBuilderWrapper
Returns SB, with Target replaced with Replacement.
SetCharAt
(
SB
As
StringBuilderWrapper
,
Index
As
Int
,
Input
As
Char
)
As
StringBuilderWrapper
Sets the character at the given index.
StartsWith
(
Prefix
As
String
,
SB
As
StringBuilderWrapper
)
As
Boolean
Returns true if SB starts with Prefix.
StringToStringBuilder
(
Input
As
String
)
As
StringBuilderWrapper
Converts a String to a StringBuilder.
ToCharArray
(
SB
As
StringBuilderWrapper
)
As
Char
()
Returns a char array containing the contents of SB.
ToCharArray2
(
SB
As
StringBuilderWrapper
,
StartIndex
As
Int
,
EndIndex
As
Int
)
As
Char
()
Converts SB to an array of chars.
ToLowercase
(
SB
As
StringBuilderWrapper
)
As
StringBuilderWrapper
Converts the StringBuilder to lowercase.
ToUppercase
(
SB
As
StringBuilderWrapper
)
As
StringBuilderWrapper
Converts the StringBuilder to uppercase.
Trim
(
SB
As
StringBuilderWrapper
)
As
StringBuilderWrapper
Trims the StringBuilder.
WriteStringBuilder
(
Dir
As
String
,
FileName
As
String
,
SB
As
StringBuilderWrapper
)
As
String
Writes the given StringBuilder to a file.
StringTools
Events:
None
Members:
Abbreviate
(
Input
As
String
)
As
String
Abbreviate2
(
Input
As
String
)
As
String
Abbreviate3
(
Input
As
String
,
Pattern
As
String
)
As
String
Abbreviate4
(
Input
As
String
,
Pattern
As
String
)
As
String
AddSpaces
(
HowMany
As
Int
)
As
String
AposCheck
(
Input
As
String
)
As
String
Append
(
Input
As
String
,
Input2
As
String
)
As
String
Append2
(
Input
As
String
,
Input2
As
String
,
AutoSpace
As
Boolean
)
As
String
AppendIfMissing
(
Input
As
String
,
Suffix
As
String
)
As
String
AppendIfMissingIgnoreCase
(
Input
As
String
,
Suffix
As
String
)
As
String
AppendIfMissingIgnoreCase2
(
Input
As
String
,
Suffixes
()
As
String
,
Suffix
As
String
)
As
String
AppendIfMisssing2
(
Input
As
String
,
Suffixes
()
As
String
,
Suffix
As
String
)
As
String
ASCIICodes
As
String
BestLevenshtein
(
Word
As
String
,
Input
()
As
String
)
As
String
BestLevenshtein2
(
Word
As
String
,
Input
As
List
,
Threshold
As
Int
)
As
List
CaeserCipherDecode
(
Enc
As
String
,
Offset
As
Int
)
As
String
CaeserCipherEncode
(
Enc
As
String
,
Offset
As
Int
)
As
String
CalculateLove
(
Name1
As
String
,
Name2
As
String
)
As
Int
CharacterCodes
(
Upper
As
Int
)
As
String
CharacterCodes2
(
Lower
As
Int
,
Upper
As
Int
)
As
String
CharToMorse
(
C
As
Char
)
As
String
CharToNATO
(
C
As
Char
)
As
String
CharToWesternUnion
(
C
As
Char
)
As
String
Chomp
(
Input
As
String
)
As
String
Chomp2
(
Input
As
String
,
Separator
As
String
)
As
String
Chop
(
Input
As
String
)
As
String
CodePointAfter
(
Input
As
String
,
Index
As
Int
)
As
String
CodePointAt
(
Input
As
String
,
Index
As
Int
)
As
String
CodePointBefore
(
Input
As
String
,
Index
As
Int
)
As
String
CommonPrefixLength
(
Input1
As
String
,
Input2
As
String
)
As
Int
CommonPrefixLength2
(
Inputs
()
As
String
)
As
Int
CompareToIgnoreCase
(
Input1
As
String
,
Input2
As
String
)
As
Int
Concat
(
Input1
As
String
,
Input2
As
String
)
As
String
Contains
(
Input
As
String
,
SearchFor
As
String
)
As
Boolean
Contains2
(
Input
As
String
,
SearchFor
As
String
,
CaseSensitive
As
Boolean
)
As
Boolean
ContainsAll
(
Input
As
String
,
SearchFor
()
As
String
)
As
Boolean
ContainsAny
(
Input
As
String
,
SearchFor
()
As
String
)
As
Boolean
ContainsAnyIgnoreCase
(
Input
As
String
,
SearchFor
()
As
String
)
As
Boolean
ContainsNone
(
Input
As
String
,
Inputs
()
As
String
)
As
Boolean
ContainsNumber
(
Input
As
String
)
As
Boolean
ContainsOnly
(
Input
As
String
,
C
As
Char
)
As
Boolean
ContainsRegex
(
Pattern
As
String
,
Text
As
String
,
CaseSensitive
As
Boolean
)
As
Boolean
ContainsRune
(
Input
As
String
,
CodePoint
As
Int
)
As
Boolean
ContentEquals
(
Input1
As
String
,
Input2
As
String
)
As
Boolean
ContentEquals2
(
Input1
As
String
,
Input2
As
StringBuilderWrapper
)
As
Boolean
ContentEquals3
(
Input1
As
StringBuilderWrapper
,
Input2
As
StringBuilderWrapper
)
As
Boolean
ContentEqualsIgnoreCase
(
Input1
As
String
,
Input2
As
String
)
As
Boolean
ContentEqualsIgnoreCase2
(
Input1
As
String
,
Input2
As
StringBuilderWrapper
)
As
Boolean
ContentEqualsIgnoreCase3
(
Input1
As
StringBuilderWrapper
,
Input2
As
StringBuilderWrapper
)
As
Boolean
ConvertToTimeFormat
(
MS
As
Int
)
As
String
Copy
(
Input
As
String
)
As
String
CountCharacters
(
Input
As
String
)
As
Map
CountLines
(
Input
As
String
)
As
Int
CountMatches
(
Input
As
String
,
C
As
Char
)
As
Int
CountMatches2
(
Input
As
String
,
SearchFor
As
String
)
As
Int
CountMatches3
(
Input
As
String
,
SearchFor
As
String
,
CaseSensitive
As
Boolean
)
As
Int
CountWords
(
Input
As
String
)
As
Int
Decrypt
(
Input
As
String
)
As
String
Decrypt2
(
Input
As
String
,
PassKey
As
Int
)
As
String
DeleteSpaces
(
Input
As
String
)
As
String
DeleteWhitespace
(
Input
As
String
)
As
String
Die
(
Message
As
String
)
As
String
Difference
(
Input1
As
String
,
Input2
As
String
)
As
String
()
Echo
(
Message
As
String
,
Times
As
Int
)
As
String
Echo2
(
Messages
()
As
String
,
Times
As
Int
)
As
String
Empty
As
String
Encrypt
(
Input
As
String
)
As
String
Encrypt2
(
Input
As
String
,
PassKey
As
Int
)
As
String
EndsWithAny
(
Input
As
String
,
Suffixes
()
As
String
)
As
Boolean
EndsWithAnyIgnoreCase
(
Input
As
String
,
Suffixes
()
As
String
)
As
Boolean
Equals
(
Str
As
String
,
Str2
As
String
)
As
Boolean
EqualsAny
(
Input
As
String
,
Comparator
()
As
String
)
As
Boolean
EqualsAny2
(
Input
As
String
,
Comparator
()
As
String
,
IgnoreCase
As
Boolean
)
As
Boolean
EqualsIgnoreCase
(
Str
As
String
,
Str2
As
String
)
As
Boolean
Escape
(
Input
As
String
)
As
String
ExpandTabs
(
Input
As
String
,
TabSize
As
Int
)
As
String
FromBytes
(
Bytes
()
As
Byte
)
As
String
FromBytes2
(
Bytes
()
As
Byte
,
Charset
As
String
)
As
String
FromChar
(
Input
As
Char
)
As
String
FromCharArray
(
Input
()
As
Char
)
As
String
FromInputStream
(
Input
As
InputStreamWrapper
)
As
String
FromList
(
List
As
List
,
Sorted
As
Boolean
,
Ascending
As
Boolean
)
As
String
FromList2
(
List
As
List
,
Sorted
As
Boolean
,
Ascending
As
Boolean
)
As
String
()
FromList3
(
List
As
List
,
Sorted
As
Boolean
,
Ascending
As
Boolean
)
As
String
FromList4
(
List
As
List
,
Sorted
As
Boolean
,
Ascending
As
Boolean
,
Separator
As
String
)
As
String
()
FromStringArray
(
Input
()
As
String
)
As
String
FromStringArray2
(
Input
()
As
String
,
Separator
As
String
)
As
String
FromStringBuilder
(
StringBuilder
As
StringBuilderWrapper
)
As
String
GetCommonPrefix
(
Inputs
()
As
String
)
As
String
GetCorrectForm
(
Number
As
Int
,
NonPlural
As
String
,
Plural
As
String
)
As
String
GetHexString
(
Input
()
As
Byte
)
As
String
GetJaroWinklerDistance
(
Input1
As
String
,
Input2
As
String
)
As
Double
GetLongest
(
Input1
As
String
,
Input2
As
String
)
As
Int
GetLongestWord
(
Input1
As
String
,
Input2
As
String
)
As
String
GetShortest
(
Input1
As
String
,
Input2
As
String
)
As
Int
GetShortestWord
(
Input1
As
String
,
Input2
As
String
)
As
String
GetSoundexCode
(
C
As
Char
)
As
String
GetWordList
(
Input
As
String
)
As
List
HTMLEncode
(
Input
As
String
)
As
String
Iif
(
TValue
As
Boolean
,
Response1
As
String
,
Response2
As
String
)
As
String
Implode
(
StringArray
()
As
String
,
Glue
As
String
)
As
String
Implode2
(
List
As
List
,
Glue
As
String
)
As
String
IndexOf
(
Str
As
String
,
LookFor
As
String
)
As
Int
IndexOf2
(
Str
As
String
,
LookFor
As
String
,
StartAt
As
Int
)
As
Int
IndexOfAny
(
Input
As
String
,
SearchFor
()
As
String
)
As
Int
IndexOfDifference
(
Input1
As
String
,
Input2
As
String
)
As
Int
IndexOfDifference2
(
Inputs
()
As
String
)
As
Int
Initials
(
Input
As
String
)
As
String
Initials2
(
Input
As
String
)
As
String
Insert
(
Input
As
String
,
ToInsert
As
String
,
Index
As
Int
)
As
String
IsAllLowercase
(
Input
As
String
)
As
Boolean
IsAllUppercase
(
Input
As
String
)
As
Boolean
IsAlpha
(
Input
As
String
)
As
Boolean
IsAlphanumeric
(
Input
As
String
)
As
Boolean
IsAlphanumericSpace
(
Input
As
String
)
As
Boolean
IsAlphaSpace
(
Input
As
String
)
As
Boolean
IsAnagram
(
Input1
As
String
,
Input2
As
String
)
As
Boolean
IsAnyBlank
(
Inputs
()
As
String
)
As
Boolean
IsAnyEmpty
(
Inputs
()
As
String
)
As
Boolean
IsASCII
(
Input
As
String
)
As
Boolean
IsASCIIPrintable
(
Input
As
String
)
As
Boolean
IsBlank
(
Input
As
String
)
As
Boolean
IsChar
(
Input
As
Char
)
As
Boolean
IsCharacter
(
C
As
Char
)
As
Boolean
IsEmpty
(
Str
As
String
)
As
Boolean
IsEmptyWithTrim
(
Input
As
String
)
As
Boolean
IsInitialized
As
Boolean
IsInString
(
Input
As
String
,
SearchFor
As
String
)
As
Boolean
IsInString2
(
Input
As
String
,
SearchFor
As
String
,
CaseSensitive
As
Boolean
)
As
Boolean
IsLowercase
(
Input
As
Char
)
As
Boolean
IsMatch
(
Input
As
String
,
Regexp
As
String
)
As
Boolean
IsMatch2
(
Input
As
String
,
Regexp
As
String
,
Options
As
Int
)
As
Boolean
IsMatchPartial
(
Input
As
String
,
Regexp
As
String
)
As
Boolean
IsMatchPartial2
(
Input
As
String
,
Regexp
As
String
,
Options
As
Int
)
As
Boolean
IsNoneBlank
(
Inputs
()
As
String
)
As
Boolean
IsNoneEmpty
(
Inputs
()
As
String
)
As
Boolean
IsNotBlank
(
Input
As
String
)
As
Boolean
IsNotEmpty
(
Str
As
String
)
As
Boolean
IsNull
(
Input
As
Object
)
As
Boolean
IsNumeric
(
Input
As
String
)
As
Boolean
IsNumericSpace
(
Input
As
String
)
As
Boolean
IsOrderedWord
(
Word
As
String
)
As
Boolean
IsPalindrome
(
Input
As
String
)
As
Boolean
IsPangram
(
Input
As
String
)
As
Boolean
IsPartialAnagram
(
Input1
As
String
,
Input2
As
String
)
As
Boolean
IsQuoted
(
Input
As
String
)
As
Boolean
IsQuoted2
(
Input
As
String
)
As
Boolean
IsReverseOrderedWord
(
Word
As
String
)
As
Boolean
IsUnique
(
Input
As
String
)
As
Boolean
IsUppercase
(
Input
As
Char
)
As
Boolean
IsValidEmailAddress
(
EmailAddress
As
String
)
As
Boolean
IsValidURL
(
Input
As
String
)
As
Boolean
IsValidURL2
(
Input
As
String
)
As
Boolean
IsWhiteSpace
(
Input
As
String
)
As
Boolean
Join
(
Separator
As
String
,
Input
()
As
String
)
As
String
Key
(
Input
As
String
)
As
String
Key2
(
Input
As
String
,
Delimeter
As
String
)
As
String
LastIndexOf
(
Str
As
String
,
LookFor
As
String
)
As
Int
LastIndexOf2
(
Str
As
String
,
LookFor
As
String
,
StartAt
As
Int
)
As
Int
LastIndexOfAny
(
Input
As
String
,
SearchFor
()
As
String
)
As
Int
Left
(
Input
As
String
,
Length
As
Int
)
As
String
Len
(
Input
As
String
)
As
Int
LevenshteinDistance
(
S
As
String
,
T
As
String
)
As
Int
Log2
(
Message
As
String
,
Title
As
String
)
As
String
LongestCommonSubstring
(
A
As
String
,
b
As
String
)
As
String
LowercaseFirst
(
Input
As
String
)
As
String
LowercaseLast
(
Input
As
String
)
As
String
LowercaseOnly
(
Input
As
String
,
Index
As
Int
)
As
String
LowercaseOnly2
(
Input
As
String
,
Index
()
As
Int
)
As
String
LowercaseSubString
(
Input
As
String
,
Index
As
Int
)
As
String
LowercaseSubString2
(
Input
As
String
,
BeginIndex
As
Int
,
EndIndex
As
Int
)
As
String
LTrim
(
Str
As
String
)
As
String
Mid
(
Input
As
String
,
Start
As
Int
,
Length
As
Int
)
As
String
Minimize
(
Input
As
String
,
MaxWidth
As
Int
)
As
String
NewLines
(
HowMany
As
Int
)
As
String
NextLetter
(
Letter
As
Char
)
As
Char
Normalize
(
Input
As
String
)
As
String
Overtype
(
Input
As
String
,
NewChar
As
Char
,
Index
As
Int
)
As
String
Overtype2
(
Input
As
String
,
NewChars
As
String
,
Index
As
Int
)
As
String
PadBoth
(
Input
As
String
,
Size
As
Int
)
As
String
PadBoth2
(
Input
As
String
,
Size
As
Int
,
PadChar
As
Char
)
As
String
PadLeft
(
Input
As
String
,
Size
As
Int
)
As
String
PadLeft2
(
Input
As
String
,
Size
As
Int
,
PadChar
As
Char
)
As
String
PadRight
(
Input
As
String
,
Size
As
Int
)
As
String
PadRight2
(
Input
As
String
,
Size
As
Int
,
PadChar
As
Char
)
As
String
PrependIfMissing
(
Input
As
String
,
Prefix
As
String
)
As
String
PrependIfMissing2
(
Input
As
String
,
Prefixes
()
As
String
,
Prefix
As
String
)
As
String
PrependIfMissingIgnoreCase
(
Input
As
String
,
Prefix
As
String
)
As
String
PrependIfMissingIgnoreCase2
(
Input
As
String
,
Prefixes
()
As
String
,
Prefix
As
String
)
As
String
PreviousLetter
(
Letter
As
Char
)
As
Char
Quibble
(
Words
()
As
String
)
As
String
Quibble2
(
Words
()
As
String
)
As
String
Quotes
(
Input
As
String
)
As
String
Quotes2
(
Input
As
String
,
CheckIfAlreadyExists
As
Boolean
)
As
String
Quotes3
(
Input
As
String
)
As
String
Quotes4
(
Input
As
String
,
CheckIfAlreadyExists
As
Boolean
)
As
String
Random
(
Count
As
Int
)
As
String
Random2
(
Count
As
Int
,
Chars
As
String
)
As
String
Random3
(
Count
As
Int
,
Chars
()
As
Char
)
As
String
Random4
(
Count
As
Int
,
LowLimit
As
Int
,
HighLimit
As
Int
)
As
String
RandomItem
(
Inputs
()
As
String
)
As
String
RandomLetters
(
Length
As
Int
)
As
String
RandomLowercaseLetters
(
Count
As
Int
)
As
String
RandomNumeric
(
Count
As
Int
)
As
String
RandomUppercaseLetters
(
Count
As
Int
)
As
String
ReadableFileSize
(
Size
As
Long
)
As
String
Remove
(
Input
As
String
,
ToRemove
As
String
)
As
String
RemoveBlanks
(
Input
As
String
)
As
String
RemoveBoth
(
Input
As
String
)
As
String
RemoveEnd
(
Input
As
String
,
Suffix
As
String
)
As
String
RemoveFirst
(
Input
As
String
)
As
String
RemoveLast
(
Input
As
String
)
As
String
RemoveRegex
(
Input
As
String
,
Pattern
As
String
)
As
String
RemoveSpaces
(
Input
As
String
)
As
String
RemoveSpecialChars
(
Input
As
String
)
As
String
RemoveStart
(
Input
As
String
,
Prefix
As
String
)
As
String
RemoveTabs
(
Input
As
String
)
As
String
RemoveWhitespace
(
Input
As
String
)
As
String
Repeat
(
Str
As
String
,
Times
As
Int
)
As
String
Reverse
(
Input
As
String
)
As
String
ReverseDelimited
(
Input
As
String
,
Delimiter
As
Char
)
As
String
RockPaperScissors
As
String
Rot13
(
Input
As
String
)
As
String
Shuffle
(
Input
As
String
)
As
String
Sort
(
Input
As
String
,
Ascending
As
Boolean
,
CaseSensitive
As
Boolean
)
As
String
Split
(
Input
As
String
,
Pattern
As
String
)
As
String
()
Split2
(
Input
As
String
,
Pattern
As
String
,
Limit
As
Int
)
As
String
()
Split3
(
Input
As
String
)
As
String
()
SplitGetWord
(
Input
As
String
,
Pattern
As
String
,
Index
As
Int
)
As
String
StartsWith
(
Str
As
String
,
Starter
As
String
)
As
Boolean
StartsWithAny
(
Input
As
String
,
Prefixes
()
As
String
)
As
Boolean
StartsWithAnyIgnoreCase
(
Input
As
String
,
Prefixes
()
As
String
)
As
Boolean
StringOf
(
C
As
Char
,
Length
As
Int
)
As
String
StringOf2
(
Input
As
String
,
Length
As
Int
)
As
String
StringOfChar
(
C
As
Char
,
Times
As
Int
)
As
String
StringToMorse
(
Input
As
String
)
As
String
StringToNATO
(
Input
As
String
)
As
String
StringToStringBuilder
(
Input
As
String
)
As
StringBuilderWrapper
StringToWesternUnion
(
Input
As
String
)
As
String
Strip
(
Input
As
String
)
As
String
Strip2
(
Input
As
String
)
As
String
StripAll
(
Inputs
()
As
String
)
As
String
()
StripChars
(
Input
As
String
,
ToStrip
As
String
)
As
String
StripTo
(
Input
As
String
,
SearchFor
As
String
)
As
String
SubString
(
Str
As
String
,
StartAt
As
Int
)
As
String
SubString2
(
Str
As
String
,
StartAt
As
Int
,
StopAt
As
Int
)
As
String
SubStringAt
(
Input
As
String
,
Separator
As
String
)
As
String
SubStringAtLast
(
Input
As
String
,
Separator
As
String
)
As
String
SubStringBetween
(
Input
As
String
,
Tag
As
String
)
As
String
SubStringBetween2
(
Input
As
String
,
Open
As
String
,
Close
As
String
)
As
String
Surround
(
Input
As
String
,
SurroundWith
As
String
)
As
String
Surround2
(
Input
As
String
,
SurroundWith
As
String
,
CheckIfAlreadyExists
As
Boolean
)
As
String
SwapCase
(
Input
As
String
)
As
String
TitleCase
(
Input
As
String
)
As
String
TitleCase2
(
Input
As
String
,
Delimiters
()
As
String
)
As
String
TitleCaseFully
(
Input
As
String
)
As
String
TitleCaseFully2
(
Input
As
String
,
Delimiters
()
As
String
)
As
String
ToBytes
(
Input
As
String
)
As
Byte
()
ToBytes2
(
Input
As
String
,
Charset
As
String
)
As
Byte
()
ToChar
(
Input
As
String
)
As
Char
ToCharArray
(
Input
As
String
)
As
Char
()
ToInputStream
(
Input
As
String
)
As
InputStreamWrapper
TokenList
(
Input
As
String
,
Delimiter
As
String
,
IgnoreFirst
As
Boolean
,
IgnoreLast
As
Boolean
)
As
List
ToList
(
Input
As
String
)
As
List
ToList2
(
Input
As
String
,
SplitAt
As
String
)
As
List
ToList3
(
Inputs
()
As
String
)
As
List
ToStringArray
(
Input
As
String
)
As
String
()
ToStringBuilder
(
Input
As
String
)
As
StringBuilderWrapper
ToStringBuilder2
(
Input
As
String
,
StringBuilder
As
StringBuilderWrapper
,
AtStart
As
Boolean
)
As
StringBuilderWrapper
Trim
(
Input
As
String
)
As
String
TrimLeft
(
Input
As
String
)
As
String
TrimPrefix
(
Input
As
String
,
Prefix
As
String
)
As
String
TrimRight
(
Input
As
String
)
As
String
TrimSuffix
(
Input
As
String
,
Suffix
As
String
)
As
String
Truncate
(
Input
As
String
,
Length
As
Int
)
As
String
UppercaseFirst
(
Input
As
String
)
As
String
UppercaseLast
(
Input
As
String
)
As
String
UppercaseOnly
(
Input
As
String
,
Index
As
Int
)
As
String
UppercaseOnly2
(
Input
As
String
,
Index
()
As
Int
)
As
String
UppercaseSubString
(
Input
As
String
,
Index
As
Int
)
As
String
UppercaseSubString2
(
Input
As
String
,
BeginIndex
As
Int
,
EndIndex
As
Int
)
As
String
Val
(
Input
As
String
)
As
Double
Value
(
Input
As
String
)
As
String
Value2
(
Input
As
String
,
Delimeter
As
String
)
As
String
WordCount
(
Input
As
String
)
As
Int
WordNo
(
Input
As
String
,
Number
As
Int
)
As
String
Wrap
(
Input
As
String
,
MaxLength
As
Int
)
As
String
Wrap2
(
Input
As
String
,
MaxLength
As
Int
,
NewLineChar
As
Char
)
As
String
WTF
(
Message
As
String
)
As
String
Members description:
Abbreviate
(
Input
As
String
)
As
String
Returns the first ltter of each word in Input.
Abbreviate2
(
Input
As
String
)
As
String
Similar to Abbreivate, but the output is uppercase only.
Abbreviate3
(
Input
As
String
,
Pattern
As
String
)
As
String
Similar to Abbreviate, but allows you to specifiy the pattern.
Abbreviate4
(
Input
As
String
,
Pattern
As
String
)
As
String
Similar to Abbreivate3, but the output is uppercase only.
AddSpaces
(
HowMany
As
Int
)
As
String
Returns a string of HowMany spaces
AposCheck
(
Input
As
String
)
As
String
Tests whether Input contains apostrohpes, and if so escapes them for SQL statements.
Append
(
Input
As
String
,
Input2
As
String
)
As
String
Appends the two strings
Append2
(
Input
As
String
,
Input2
As
String
,
AutoSpace
As
Boolean
)
As
String
Appends the two strings, adding whitespace if needed if AutoSpace is true
AppendIfMissing
(
Input
As
String
,
Suffix
As
String
)
As
String
Appends suffix to the end of Input, if Suffix isn't already there.
AppendIfMissingIgnoreCase
(
Input
As
String
,
Suffix
As
String
)
As
String
Similar to AppendIfMissing, but ignore the case.
AppendIfMissingIgnoreCase2
(
Input
As
String
,
Suffixes
()
As
String
,
Suffix
As
String
)
As
String
Similar to AppendIfMissing2, but ignores the case.
AppendIfMisssing2
(
Input
As
String
,
Suffixes
()
As
String
,
Suffix
As
String
)
As
String
Appends Suffix to the end of Input if Input ends with any of Suffixes.
ASCIICodes
As
String
Returns a stirng containing the ASCII characters and their respective codes.
BestLevenshtein
(
Word
As
String
,
Input
()
As
String
)
As
String
Returns the best match From Input compared to Word.
BestLevenshtein2
(
Word
As
String
,
Input
As
List
,
Threshold
As
Int
)
As
List
Similar to BestLevenshtein, but returns the closest matches. Any match that is below the threshold is included.
CaeserCipherDecode
(
Enc
As
String
,
Offset
As
Int
)
As
String
CaeserCipherEncode
(
Enc
As
String
,
Offset
As
Int
)
As
String
CalculateLove
(
Name1
As
String
,
Name2
As
String
)
As
Int
Returns the percentage compatibility between Name1 and Name2.
CharacterCodes
(
Upper
As
Int
)
As
String
Returns the characters and their respective codes from 1 to Upper.
CharacterCodes2
(
Lower
As
Int
,
Upper
As
Int
)
As
String
Similar to CharacterCodes, but the Lower limit can also be specified.
CharToMorse
(
C
As
Char
)
As
String
Converts C to morse.
CharToNATO
(
C
As
Char
)
As
String
Converts a char to the NATO phonetic alphabety
CharToWesternUnion
(
C
As
Char
)
As
String
Converts a char to the western Union Phonetic Alphabet.
Chomp
(
Input
As
String
)
As
String
Removes 1 newline from the end if Input, if it is there, otherwise leaves Input alone
Chomp2
(
Input
As
String
,
Separator
As
String
)
As
String
Removes 1 Separator from the end of Input, if it is there, otherwise leaves Input alone
Chop
(
Input
As
String
)
As
String
Removes the last character from Input
CodePointAfter
(
Input
As
String
,
Index
As
Int
)
As
String
Returns the Unicode code of the character 1 place after the given index
CodePointAt
(
Input
As
String
,
Index
As
Int
)
As
String
Returns the Unicode code of the character at the given index
CodePointBefore
(
Input
As
String
,
Index
As
Int
)
As
String
Returns the Unicode code of the character 1 place in front of the given index.
CommonPrefixLength
(
Input1
As
String
,
Input2
As
String
)
As
Int
Returns the length of the common prefix.
CommonPrefixLength2
(
Inputs
()
As
String
)
As
Int
Returns the length of the common prefix.
CompareToIgnoreCase
(
Input1
As
String
,
Input2
As
String
)
As
Int
Compares Innput1 to Input2, ignoring case.
Concat
(
Input1
As
String
,
Input2
As
String
)
As
String
Concatenates Input2 at the end of Input1.
Contains
(
Input
As
String
,
SearchFor
As
String
)
As
Boolean
Returns true if Input contains SearchFor
Contains2
(
Input
As
String
,
SearchFor
As
String
,
CaseSensitive
As
Boolean
)
As
Boolean
Returns true if Input contains SearchFor, ignoring case
ContainsAll
(
Input
As
String
,
SearchFor
()
As
String
)
As
Boolean
Checks whether Input contains everything in earchFor.
ContainsAny
(
Input
As
String
,
SearchFor
()
As
String
)
As
Boolean
Checks whether Input contains any one of SearchFor.
ContainsAnyIgnoreCase
(
Input
As
String
,
SearchFor
()
As
String
)
As
Boolean
ContainsNone
(
Input
As
String
,
Inputs
()
As
String
)
As
Boolean
Returns true if Input contains none of the Inputs.
ContainsNumber
(
Input
As
String
)
As
Boolean
Returns true if Input contains a number
ContainsOnly
(
Input
As
String
,
C
As
Char
)
As
Boolean
Returns true if Input contains only C.
ContainsRegex
(
Pattern
As
String
,
Text
As
String
,
CaseSensitive
As
Boolean
)
As
Boolean
Returns true if Input matches pattern
ContainsRune
(
Input
As
String
,
CodePoint
As
Int
)
As
Boolean
Tests whether Input contains the specified Unicode code point.
ContentEquals
(
Input1
As
String
,
Input2
As
String
)
As
Boolean
Tests whehter Input1 is equal to Input2.
ContentEquals2
(
Input1
As
String
,
Input2
As
StringBuilderWrapper
)
As
Boolean
Tests whether Input1 is equal to the contents of Input2.
ContentEquals3
(
Input1
As
StringBuilderWrapper
,
Input2
As
StringBuilderWrapper
)
As
Boolean
Tests whether the content of Input1 equals Input2.
ContentEqualsIgnoreCase
(
Input1
As
String
,
Input2
As
String
)
As
Boolean
Tests whether the content of Input1 equals Input2.
ContentEqualsIgnoreCase2
(
Input1
As
String
,
Input2
As
StringBuilderWrapper
)
As
Boolean
Tests whether the content of Input1 equals Input2.
ContentEqualsIgnoreCase3
(
Input1
As
StringBuilderWrapper
,
Input2
As
StringBuilderWrapper
)
As
Boolean
Tests whether the content of Input1 equals Input2.
ConvertToTimeFormat
(
MS
As
Int
)
As
String
Converts the given input in milliseconds to a string. Example: 3:05
Copy
(
Input
As
String
)
As
String
Returns a copy of Input.
CountCharacters
(
Input
As
String
)
As
Map
Returns a map where each key is the character and the value is the number of times it appears.
CountLines
(
Input
As
String
)
As
Int
Counts the number of lines in the given string.
CountMatches
(
Input
As
String
,
C
As
Char
)
As
Int
Returns the number of times C occurs in Input
CountMatches2
(
Input
As
String
,
SearchFor
As
String
)
As
Int
Counts the number of matches of SearchFor in Input
CountMatches3
(
Input
As
String
,
SearchFor
As
String
,
CaseSensitive
As
Boolean
)
As
Int
CountWords
(
Input
As
String
)
As
Int
Returns the number of words in Input
Decrypt
(
Input
As
String
)
As
String
Decrypts the text using the default key.
Decrypt2
(
Input
As
String
,
PassKey
As
Int
)
As
String
Decrypts the text using the specified key.
DeleteSpaces
(
Input
As
String
)
As
String
Returns Input with all spaces deleted.
DeleteWhitespace
(
Input
As
String
)
As
String
Returns Input with all whitespace deleted.
Die
(
Message
As
String
)
As
String
Logs the message and exits the program.
Difference
(
Input1
As
String
,
Input2
As
String
)
As
String
()
Returns the text that differs in Input1 and Input2.
Index 0 is Input1 and, Index 1 is Input2
Echo
(
Message
As
String
,
Times
As
Int
)
As
String
Logs the Message Times times.
Echo2
(
Messages
()
As
String
,
Times
As
Int
)
As
String
Similar to Echo, but works with an array of Messages.
Empty
As
String
Returns an empty string
Encrypt
(
Input
As
String
)
As
String
Ecnrypts the text using the default key.
Encrypt2
(
Input
As
String
,
PassKey
As
Int
)
As
String
Encrypts the text using the specified key.
EndsWithAny
(
Input
As
String
,
Suffixes
()
As
String
)
As
Boolean
Returns true if Input ends with any one of Suffixes
EndsWithAnyIgnoreCase
(
Input
As
String
,
Suffixes
()
As
String
)
As
Boolean
Similar to EndsWithAny, but ignores the case.
Equals
(
Str
As
String
,
Str2
As
String
)
As
Boolean
Returns true if the two inputs are the same, also checking case
EqualsAny
(
Input
As
String
,
Comparator
()
As
String
)
As
Boolean
Tests whether Input equals any of Comparator.
EqualsAny2
(
Input
As
String
,
Comparator
()
As
String
,
IgnoreCase
As
Boolean
)
As
Boolean
Similar to EqualsAny, but you specify case sensitivity.
EqualsIgnoreCase
(
Str
As
String
,
Str2
As
String
)
As
Boolean
Returns true if the two inputs are equal, ignoring their case
Escape
(
Input
As
String
)
As
String
Escapes Input for Linux.
ExpandTabs
(
Input
As
String
,
TabSize
As
Int
)
As
String
Expands the tabs to TabSize in Input.
FromBytes
(
Bytes
()
As
Byte
)
As
String
Converts an array of bytes to string, using UTF8.
FromBytes2
(
Bytes
()
As
Byte
,
Charset
As
String
)
As
String
Converts an array of bytes to string, using Charset.
FromChar
(
Input
As
Char
)
As
String
Converts Char to a String that contains the one character.
FromCharArray
(
Input
()
As
Char
)
As
String
Returns a String containing the given Char array
FromInputStream
(
Input
As
InputStreamWrapper
)
As
String
Converts Input to a String.
FromList
(
List
As
List
,
Sorted
As
Boolean
,
Ascending
As
Boolean
)
As
String
Returns a String from the given list
FromList2
(
List
As
List
,
Sorted
As
Boolean
,
Ascending
As
Boolean
)
As
String
()
Returns a String array from the given list
FromList3
(
List
As
List
,
Sorted
As
Boolean
,
Ascending
As
Boolean
)
As
String
FromList4
(
List
As
List
,
Sorted
As
Boolean
,
Ascending
As
Boolean
,
Separator
As
String
)
As
String
()
FromStringArray
(
Input
()
As
String
)
As
String
Returns a String, from the given String array
FromStringArray2
(
Input
()
As
String
,
Separator
As
String
)
As
String
Returns a String, from the given String array
FromStringBuilder
(
StringBuilder
As
StringBuilderWrapper
)
As
String
GetCommonPrefix
(
Inputs
()
As
String
)
As
String
Gets the prefix that is common to all of the strings.
GetCorrectForm
(
Number
As
Int
,
NonPlural
As
String
,
Plural
As
String
)
As
String
Returns the correct word for the given number.
Example:
Dim
ST
as
StringTools
Log
(
ST
.
GetCorrectForm
(
5
,
"Apple"
,
"Apples"
)
'Returns Apples.
GetHexString
(
Input
()
As
Byte
)
As
String
This may or may not work.
GetJaroWinklerDistance
(
Input1
As
String
,
Input2
As
String
)
As
Double
GetLongest
(
Input1
As
String
,
Input2
As
String
)
As
Int
Returns the length of the longest word.
GetLongestWord
(
Input1
As
String
,
Input2
As
String
)
As
String
Returns the longest word.
GetShortest
(
Input1
As
String
,
Input2
As
String
)
As
Int
Returns the length of the shortest word.
GetShortestWord
(
Input1
As
String
,
Input2
As
String
)
As
String
Returns the Shortest word.
GetSoundexCode
(
C
As
Char
)
As
String
GetWordList
(
Input
As
String
)
As
List
Returns a list of the words in Input
HTMLEncode
(
Input
As
String
)
As
String
Encodes the given text for HTML.
Iif
(
TValue
As
Boolean
,
Response1
As
String
,
Response2
As
String
)
As
String
Single line If statement. If Value is true returns Reponse1 else Response2.
Implode
(
StringArray
()
As
String
,
Glue
As
String
)
As
String
Implode2
(
List
As
List
,
Glue
As
String
)
As
String
IndexOf
(
Str
As
String
,
LookFor
As
String
)
As
Int
Gets the index of the first occurnce of LookFor, starting from 0
IndexOf2
(
Str
As
String
,
LookFor
As
String
,
StartAt
As
Int
)
As
Int
Gets the index of the first occurnce of LookFor, starting from StartAt
IndexOfAny
(
Input
As
String
,
SearchFor
()
As
String
)
As
Int
Returns the index in Input where any one of SearchFor was found. Returns -1 if no match.
Dim
ST
as
StringTools
Log
(
ST
.
IndexOfAny
(
"Car"
,
Array
as
String
(
"Far"
,
"Bar"
,
"Car"
)))
' Returns 0.
IndexOfDifference
(
Input1
As
String
,
Input2
As
String
)
As
Int
Returns the index at which Input1 and Input2 begin to differ, returns -1 if they don't differ.
IndexOfDifference2
(
Inputs
()
As
String
)
As
Int
Similar to IndexOfDifference, but takes an array of Strings.
Initials
(
Input
As
String
)
As
String
Extracts the initals from Input
Initials2
(
Input
As
String
)
As
String
Extracts the initals from Input, converting the output to uppercase
Insert
(
Input
As
String
,
ToInsert
As
String
,
Index
As
Int
)
As
String
Inserts ToInsert at Index in Input
IsAllLowercase
(
Input
As
String
)
As
Boolean
Checks whether every character in input is lowercase
IsAllUppercase
(
Input
As
String
)
As
Boolean
Checks whether every character in input is uppercase
IsAlpha
(
Input
As
String
)
As
Boolean
Returns true if Input contains only alphabetical characters.
IsAlphanumeric
(
Input
As
String
)
As
Boolean
Returns true if Input contains only alphanumerical characters.
IsAlphanumericSpace
(
Input
As
String
)
As
Boolean
Returns true if Input contains only alphanumerical and space characters.
IsAlphaSpace
(
Input
As
String
)
As
Boolean
Returns true if Input contains only alphabeticl and space characters.
IsAnagram
(
Input1
As
String
,
Input2
As
String
)
As
Boolean
Tests whether Input1 is an anagram of Input2.
IsAnyBlank
(
Inputs
()
As
String
)
As
Boolean
Similar to IsBlank, but operates on an array of strings.
IsAnyEmpty
(
Inputs
()
As
String
)
As
Boolean
Similar to IsEmpty, but operates on an array of strings.
IsASCII
(
Input
As
String
)
As
Boolean
Tests whther Input is composed of only ASCII characters.
IsASCIIPrintable
(
Input
As
String
)
As
Boolean
Tests whether Input contains only printable ASCII characters.
IsBlank
(
Input
As
String
)
As
Boolean
Returns true if Input is blank.
IsChar
(
Input
As
Char
)
As
Boolean
Checks whether Input is a Alphabetic character, e.g. m
IsCharacter
(
C
As
Char
)
As
Boolean
Tests whether C as is a Character (A-Z).
IsEmpty
(
Str
As
String
)
As
Boolean
Returns true if Str is empty, false otherwise
IsEmptyWithTrim
(
Input
As
String
)
As
Boolean
IsInitialized
As
Boolean
Tests whether the object has been initialized.
IsInString
(
Input
As
String
,
SearchFor
As
String
)
As
Boolean
Tests whether SearchFor appears in Input.
IsInString2
(
Input
As
String
,
SearchFor
As
String
,
CaseSensitive
As
Boolean
)
As
Boolean
Similar to IsInString, but allows for specifiying of case sensitivity.
IsLowercase
(
Input
As
Char
)
As
Boolean
Checks whether the given chracter is lowercase
IsMatch
(
Input
As
String
,
Regexp
As
String
)
As
Boolean
Tests whether Input matches Regexp. The whole string has to be a match.
IsMatch2
(
Input
As
String
,
Regexp
As
String
,
Options
As
Int
)
As
Boolean
Similar to IsMatch. Allows you to specifiy options, can be combined with Bit.Or.
IsMatchPartial
(
Input
As
String
,
Regexp
As
String
)
As
Boolean
Test whether Input matches Regexp, the whole string does not have to match.
IsMatchPartial2
(
Input
As
String
,
Regexp
As
String
,
Options
As
Int
)
As
Boolean
Similar to IsMatchPartial, but allows you to specify additional options that can be combined with Bit.Or.
IsNoneBlank
(
Inputs
()
As
String
)
As
Boolean
Similar to INotBlank, but operates on an array of strings.
IsNoneEmpty
(
Inputs
()
As
String
)
As
Boolean
Similar to IsNotEmpty, but works on an array of strings.
IsNotBlank
(
Input
As
String
)
As
Boolean
Returns true if Input is not blank.
IsNotEmpty
(
Str
As
String
)
As
Boolean
Returns false is Str is empty, true otherwise
IsNull
(
Input
As
Object
)
As
Boolean
Checks whether Input is null
IsNumeric
(
Input
As
String
)
As
Boolean
Returns true if Input contains only numerical characters.
IsNumericSpace
(
Input
As
String
)
As
Boolean
Returns true if Input contains only numerical and space characters.
IsOrderedWord
(
Word
As
String
)
As
Boolean
Returns true if Word is an ordered word, a word in which the letters in it appear in alphabetical order.
IsPalindrome
(
Input
As
String
)
As
Boolean
Returns whether Input is a palindrome, meaning that it says the same forward as it does backwards, e.g. Anna
IsPangram
(
Input
As
String
)
As
Boolean
Returns whether Input is a pangram (has all 26 letters of the alphabet).
IsPartialAnagram
(
Input1
As
String
,
Input2
As
String
)
As
Boolean
Returrns true if you could take the letters in Input1 and make Input2. For example: Fee from Free.
IsQuoted
(
Input
As
String
)
As
Boolean
Tests whether Input is surrounded by '
IsQuoted2
(
Input
As
String
)
As
Boolean
Tests whether Input is surrounded by "
IsReverseOrderedWord
(
Word
As
String
)
As
Boolean
Tests whether the letters in Word are in reverse alphabetical order.
IsUnique
(
Input
As
String
)
As
Boolean
Tests whehter Input contains no double letters (e.g. 2 G's)
IsUppercase
(
Input
As
Char
)
As
Boolean
Checks whether the given character is lowercase
IsValidEmailAddress
(
EmailAddress
As
String
)
As
Boolean
Checks whether EmailAddress is a valid email address.
IsValidURL
(
Input
As
String
)
As
Boolean
Checks whether Input is a valid URL, does not check if the URL exists.
IsValidURL2
(
Input
As
String
)
As
Boolean
Similar to IsValidURL, except is much stricter. Input has to have the scheme as well.
IsWhiteSpace
(
Input
As
String
)
As
Boolean
Returns true if Input contains only space characters.
Join
(
Separator
As
String
,
Input
()
As
String
)
As
String
Joins the given inputs into a string, separating inputs with Separator
Key
(
Input
As
String
)
As
String
Returns the key, in the given key value pair using = as the delimiter
Key2
(
Input
As
String
,
Delimeter
As
String
)
As
String
Returns the key in the given key value pair using delimiter as the delimiter
LastIndexOf
(
Str
As
String
,
LookFor
As
String
)
As
Int
Returns the index of the last position of LookFor
LastIndexOf2
(
Str
As
String
,
LookFor
As
String
,
StartAt
As
Int
)
As
Int
Returns the index of the last position of LookFor, starting from StartAt
LastIndexOfAny
(
Input
As
String
,
SearchFor
()
As
String
)
As
Int
Similar to IndexOfAny, but starts looking from the right of the string.
Left
(
Input
As
String
,
Length
As
Int
)
As
String
Retursn Length number of characters from Input
Len
(
Input
As
String
)
As
Int
Returns the length of Input.
LevenshteinDistance
(
S
As
String
,
T
As
String
)
As
Int
Returns the Levenshtein difference between s and t.
Log2
(
Message
As
String
,
Title
As
String
)
As
String
Similar to MsgBox. Logs a message with the specified title.
LongestCommonSubstring
(
A
As
String
,
b
As
String
)
As
String
Returns the longest common substring of a and b.
LowercaseFirst
(
Input
As
String
)
As
String
Converts the first character of Input to lowercase
LowercaseLast
(
Input
As
String
)
As
String
Converts the last character of Input to lowercase
LowercaseOnly
(
Input
As
String
,
Index
As
Int
)
As
String
Lowercases only the character at the given index
LowercaseOnly2
(
Input
As
String
,
Index
()
As
Int
)
As
String
Lowercases only the characters at the given indexes
LowercaseSubString
(
Input
As
String
,
Index
As
Int
)
As
String
Converts the given range to lowercase, starting at Index and stopping at the end of the string
LowercaseSubString2
(
Input
As
String
,
BeginIndex
As
Int
,
EndIndex
As
Int
)
As
String
Converts the given range to lowercase, starting at BeginIndex and stopping at EndIndex
LTrim
(
Str
As
String
)
As
String
Removes leading whitespace from Str
Mid
(
Input
As
String
,
Start
As
Int
,
Length
As
Int
)
As
String
Returns Input, starting at Start and ending at Length
Minimize
(
Input
As
String
,
MaxWidth
As
Int
)
As
String
Abbreviates a String using ellipses.
NewLines
(
HowMany
As
Int
)
As
String
Returns HowMany number of CRLFs
NextLetter
(
Letter
As
Char
)
As
Char
Returns the next letter in the alphabet.
Normalize
(
Input
As
String
)
As
String
Normalizes Input.
Overtype
(
Input
As
String
,
NewChar
As
Char
,
Index
As
Int
)
As
String
Overtypes the specified character at the given index with the NewChar.
Overtype2
(
Input
As
String
,
NewChars
As
String
,
Index
As
Int
)
As
String
Overtypes the specified characters starting from Index and ending at the index that is equal to NewChars' length.
PadBoth
(
Input
As
String
,
Size
As
Int
)
As
String
Pads spaces at both ends of Input.
PadBoth2
(
Input
As
String
,
Size
As
Int
,
PadChar
As
Char
)
As
String
Similar to PadBoth, but you specify the PadChar.
PadLeft
(
Input
As
String
,
Size
As
Int
)
As
String
Pads spaces at the start of Input.
PadLeft2
(
Input
As
String
,
Size
As
Int
,
PadChar
As
Char
)
As
String
Similar to PadLeft, but you specify the PadChar.
PadRight
(
Input
As
String
,
Size
As
Int
)
As
String
Pads spaces at the end of Input.
PadRight2
(
Input
As
String
,
Size
As
Int
,
PadChar
As
Char
)
As
String
Similar to PadRight, but you specify the PadChar.
PrependIfMissing
(
Input
As
String
,
Prefix
As
String
)
As
String
Prepends Prefix to Input if Prefix isn't already there.
PrependIfMissing2
(
Input
As
String
,
Prefixes
()
As
String
,
Prefix
As
String
)
As
String
Preprends Prefix is any one of Prefixes isn't there.
PrependIfMissingIgnoreCase
(
Input
As
String
,
Prefix
As
String
)
As
String
Similar to PrependIfMissing, but ignores case.
PrependIfMissingIgnoreCase2
(
Input
As
String
,
Prefixes
()
As
String
,
Prefix
As
String
)
As
String
Similar to PrependIfMissing2, but ignores case.
PreviousLetter
(
Letter
As
Char
)
As
Char
Returns the previous letter in the alphabet.
Quibble
(
Words
()
As
String
)
As
String
Returns the words with the correct English grammar, for example "Car and Bar" or "Car, Bar and Far".
Quibble2
(
Words
()
As
String
)
As
String
Same as Quibble without { and }.
Quotes
(
Input
As
String
)
As
String
Returns input surrounded with '
Quotes2
(
Input
As
String
,
CheckIfAlreadyExists
As
Boolean
)
As
String
Returns input surrounded with '
Quotes3
(
Input
As
String
)
As
String
Returns input surrounded with "
Quotes4
(
Input
As
String
,
CheckIfAlreadyExists
As
Boolean
)
As
String
Returns input surrounded with "
Random
(
Count
As
Int
)
As
String
Returns a string of Count random ASCII letters.
Random2
(
Count
As
Int
,
Chars
As
String
)
As
String
Returns a string of random characters, using the characters in Chars.
Random3
(
Count
As
Int
,
Chars
()
As
Char
)
As
String
Similar to Random2, but takes a Char array instead of a String.
Random4
(
Count
As
Int
,
LowLimit
As
Int
,
HighLimit
As
Int
)
As
String
Returns Count number of random characters, starting from Code Point LowLimit (inlcusive) and ending at HighPoint (exclusive)
RandomItem
(
Inputs
()
As
String
)
As
String
Same as PickRandomElement2 in ListTools.
RandomLetters
(
Length
As
Int
)
As
String
Returns Length number of random lowercase and uppercase letters
RandomLowercaseLetters
(
Count
As
Int
)
As
String
Returns Count number of random lowercase only letters
RandomNumeric
(
Count
As
Int
)
As
String
Returns a random numeric string.
RandomUppercaseLetters
(
Count
As
Int
)
As
String
Returns Count number of random uppercase only letters
ReadableFileSize
(
Size
As
Long
)
As
String
Converts Size to a human readable string. Supports B to GB
Remove
(
Input
As
String
,
ToRemove
As
String
)
As
String
Removes all occurences of ToRemove from Input
RemoveBlanks
(
Input
As
String
)
As
String
Removes blanks from Input
RemoveBoth
(
Input
As
String
)
As
String
Removes the first and last character from Input.
RemoveEnd
(
Input
As
String
,
Suffix
As
String
)
As
String
Removes Suffix from the end of Input, only if it is at the end.
RemoveFirst
(
Input
As
String
)
As
String
Removes the first character from Input.
RemoveLast
(
Input
As
String
)
As
String
Removes the last character from Input.
RemoveRegex
(
Input
As
String
,
Pattern
As
String
)
As
String
Removes the specified regex pattern from Input.
RemoveSpaces
(
Input
As
String
)
As
String
Removes all spaces (not whitespace) from Input
RemoveSpecialChars
(
Input
As
String
)
As
String
Removes special characters and numbers from Input.
RemoveStart
(
Input
As
String
,
Prefix
As
String
)
As
String
Removes PRefix from the start of Input, only if it is at the start.
RemoveTabs
(
Input
As
String
)
As
String
Removes all tabs from Input.
RemoveWhitespace
(
Input
As
String
)
As
String
Removes all whitespace from Input
Repeat
(
Str
As
String
,
Times
As
Int
)
As
String
Returns a String of Str Times times
Reverse
(
Input
As
String
)
As
String
Reverses the given string
ReverseDelimited
(
Input
As
String
,
Delimiter
As
Char
)
As
String
Reverses a delimited input.
RockPaperScissors
As
String
Returns Rock, Paper or Scissors.
Rot13
(
Input
As
String
)
As
String
Returns a Rot 13 encrypted version of Input
Shuffle
(
Input
As
String
)
As
String
Sort
(
Input
As
String
,
Ascending
As
Boolean
,
CaseSensitive
As
Boolean
)
As
String
Split
(
Input
As
String
,
Pattern
As
String
)
As
String
()
Splits Input around matches of Pattern.
Split2
(
Input
As
String
,
Pattern
As
String
,
Limit
As
Int
)
As
String
()
Splits Input around matches of Pattern, limited to the first Limit matches. Returns all matches if Limit is more than the number of matches.
Split3
(
Input
As
String
)
As
String
()
Splits Input using whitepsace as the separator.
SplitGetWord
(
Input
As
String
,
Pattern
As
String
,
Index
As
Int
)
As
String
Returns the word at Index using the specified pattern and input. Throws an exception if Index is out of bounds.
StartsWith
(
Str
As
String
,
Starter
As
String
)
As
Boolean
Returns true if Str starts with Starter
StartsWithAny
(
Input
As
String
,
Prefixes
()
As
String
)
As
Boolean
Returns trye if Input starts with any one of Prefixes
StartsWithAnyIgnoreCase
(
Input
As
String
,
Prefixes
()
As
String
)
As
Boolean
Similar to StartsWithAny but ignores the case.
StringOf
(
C
As
Char
,
Length
As
Int
)
As
String
Returns Length number of C
StringOf2
(
Input
As
String
,
Length
As
Int
)
As
String
Like StringOf, but takes a String for the first input
StringOfChar
(
C
As
Char
,
Times
As
Int
)
As
String
Returns a String composed of C, Times times.
StringToMorse
(
Input
As
String
)
As
String
Converts a string to morse code.
StringToNATO
(
Input
As
String
)
As
String
Converts a string to the NATO phonetic aphabet.
StringToStringBuilder
(
Input
As
String
)
As
StringBuilderWrapper
Converts Input to a StringBuilder.
StringToWesternUnion
(
Input
As
String
)
As
String
Converts a string to the Western Union phonetic alphabet.
Strip
(
Input
As
String
)
As
String
Returns Input, with leading trailing whitespace stripped.
Strip2
(
Input
As
String
)
As
String
Removes all whitespace from Input.
StripAll
(
Inputs
()
As
String
)
As
String
()
Same as Strip, but takes an array of strings.
StripChars
(
Input
As
String
,
ToStrip
As
String
)
As
String
Strips the specified characters from Input. For example aei will remove the letters a, e and i from Input.
StripTo
(
Input
As
String
,
SearchFor
As
String
)
As
String
Returns Input, with everything after the first match stripped.
SubString
(
Str
As
String
,
StartAt
As
Int
)
As
String
Returns Str starting from StartAt
SubString2
(
Str
As
String
,
StartAt
As
Int
,
StopAt
As
Int
)
As
String
Returns Str starting from StartAt and stopping at StopAt
SubStringAt
(
Input
As
String
,
Separator
As
String
)
As
String
Returns substring of Input starting at the first index of separator.
SubStringAtLast
(
Input
As
String
,
Separator
As
String
)
As
String
Returns substring of Input starting at the last index of separator.
SubStringBetween
(
Input
As
String
,
Tag
As
String
)
As
String
Gets the String that is nested in between two instances of the same String.
SubStringBetween2
(
Input
As
String
,
Open
As
String
,
Close
As
String
)
As
String
Gets the String that is nested in between two Strings.
Surround
(
Input
As
String
,
SurroundWith
As
String
)
As
String
Surrounds Input with SurrounWith
Surround2
(
Input
As
String
,
SurroundWith
As
String
,
CheckIfAlreadyExists
As
Boolean
)
As
String
Surrounds Input with SurroundWith, optionally checking if it doesn't need to be done
SwapCase
(
Input
As
String
)
As
String
Swaps the case of the characters in the given string
TitleCase
(
Input
As
String
)
As
String
Converts Input to Title Case (Proper Case), using whitespace as the delimiter. Leaves he rest of the word unchanged.
Example my name iS mathew becomes My Name IS Mathew.
TitleCase2
(
Input
As
String
,
Delimiters
()
As
String
)
As
String
Similar to TitleCase, but allowing you to specify the delimiters.
TitleCaseFully
(
Input
As
String
)
As
String
Similar to TilteCase, but the whole word is changed.
Example: my name iS mathew becomes My Name Is Mathew.
TitleCaseFully2
(
Input
As
String
,
Delimiters
()
As
String
)
As
String
Similar to TilteCaseFully, but allows you to specify the delimiter.
ToBytes
(
Input
As
String
)
As
Byte
()
Converts Input to bytes using UTF8.
ToBytes2
(
Input
As
String
,
Charset
As
String
)
As
Byte
()
Converts Input to bytes using Charset as the charset
ToChar
(
Input
As
String
)
As
Char
Returns Input as a Char. Only the first letter is converted if there are more than one.
ToCharArray
(
Input
As
String
)
As
Char
()
Returns a char array from the given String
ToInputStream
(
Input
As
String
)
As
InputStreamWrapper
Converts Input to an InputStream.
TokenList
(
Input
As
String
,
Delimiter
As
String
,
IgnoreFirst
As
Boolean
,
IgnoreLast
As
Boolean
)
As
List
Splits Input at matches of Delimiter. If IgnoreFirst is true the first match will not be included. If IgnoreLast is true then the last match will not be included.
ToList
(
Input
As
String
)
As
List
Converts the given string to a list, where each item is a character from Input.
ToList2
(
Input
As
String
,
SplitAt
As
String
)
As
List
Returns the String as a List, splitting at SplitAt
ToList3
(
Inputs
()
As
String
)
As
List
ToStringArray
(
Input
As
String
)
As
String
()
Returns a String array, where each item in the array is a letter from Input.
ToStringBuilder
(
Input
As
String
)
As
StringBuilderWrapper
ToStringBuilder2
(
Input
As
String
,
StringBuilder
As
StringBuilderWrapper
,
AtStart
As
Boolean
)
As
StringBuilderWrapper
Converts Input to an existing StringBuilder.
Trim
(
Input
As
String
)
As
String
Removes leading and trailing whitespace from Input.
TrimLeft
(
Input
As
String
)
As
String
Removes leading whitespace from Input.
TrimPrefix
(
Input
As
String
,
Prefix
As
String
)
As
String
Removes the leading Prefix from Input, if it is there, otherwise leaves Input alone.
TrimRight
(
Input
As
String
)
As
String
Removes trailing whitespace from Input.
TrimSuffix
(
Input
As
String
,
Suffix
As
String
)
As
String
Removes the trailing Suffix from Input, if it is there, otherwise leaves Input alone.
Truncate
(
Input
As
String
,
Length
As
Int
)
As
String
Truncates the String by returning the first Length characters.
UppercaseFirst
(
Input
As
String
)
As
String
Converts the first character of Input to uppercase
UppercaseLast
(
Input
As
String
)
As
String
Converts the last character of Input to uppercase
UppercaseOnly
(
Input
As
String
,
Index
As
Int
)
As
String
Uppercases only the character at the given index
UppercaseOnly2
(
Input
As
String
,
Index
()
As
Int
)
As
String
Uppercases only the character at the given indexes
UppercaseSubString
(
Input
As
String
,
Index
As
Int
)
As
String
Converts the given range to uppercase, starting at Index and stopping at the end of the string
UppercaseSubString2
(
Input
As
String
,
BeginIndex
As
Int
,
EndIndex
As
Int
)
As
String
Converts the given range to uppercase, starting at BeginIndex and stopping at EndIndex
Val
(
Input
As
String
)
As
Double
Returns the numerical value of Input.
Value
(
Input
As
String
)
As
String
Returns the value, in the given key value pair using = as the delimiter
Value2
(
Input
As
String
,
Delimeter
As
String
)
As
String
Returns the value, in the given key value pair using delimiter as the delimiter
WordCount
(
Input
As
String
)
As
Int
Same as CountWords.
WordNo
(
Input
As
String
,
Number
As
Int
)
As
String
Returns the number-th word. The index is zero based. Thorws an exception if there is no word at that index.
Wrap
(
Input
As
String
,
MaxLength
As
Int
)
As
String
Wraps Input every MaxLength characters, using CRLF as the wrap character.
Wrap2
(
Input
As
String
,
MaxLength
As
Int
,
NewLineChar
As
Char
)
As
String
Similar to Wrap, but the wrap character is specified.
WTF
(
Message
As
String
)
As
String
Logs a What a Terrible failure error.
Top