function CLog(array<string> Log, optional string FileName, optional string Directory) - [Expensive Function] An alias for SaveStringArray() that makes it slightly more convenient to save a custom text/log file. Log is all of the lines that should be in the file, FileName is the name of the file, including the file extension, and Directory is the directory that should be located for making the file (example: ..\\System\\MPak\\). The directory must exist for the file to be created in the directory
function string GuessArrayTypeFromString(string sArrayText) - Attempts to guess what variable type is within the string that contains an array, and returns its guess. This will not be 100% accurate, but should give a general idea of what type of array it is. The guess/return can equal: "Float", "Vector", "Rotator", "Object", "Color", "Name", "String"
function bool IsCurrentDateInRange(string sStartDate, string sEndDate) - Returns true if the current date is between the dates sStartDate and sEndDate. Format for dates: MM/DD/YYYY
function bool IsStringDate(string sDate) - Returns true if sDate is equal to a date that has the format MM/DD/YYYY
function string LoadStringArray(out array<string> StringArray, string Filename) - [Expensive Function] Outputs through StringArray an array of each line of text obtained from any given file name provided. Filename is the directory plus the name of the file that should be located (example: ..\\System\\MPak\\Test.txt)
function name SName(string S) - Casts a string into a name and returns the name
function string SaveStringArray(array<string> StringArray, string Filename) - [Expensive Function] The same as CLog() but you must provide the directory plus the name of the file for Filename
function array<string> Split(string Source, optional string Delimiter) - Takes the string Source, splits it up (where each space is) into an array, then returns the array. Delimiter specifies which character should be the character that is used to specify when each split will occur
function string StripSpaces(string S) - Removes all spaces from the string S and returns it
static function string AlphaNumeric(string S) - Takes out all characters in string S that are not alphabetical or numerical, then capitalizes all alphabetical characters, then returns it
static function string BoolToString(bool B) - Casts bool B into an English bool string and returns it. Should always be used for all bool-to-string casts, since the result of a bool-to-string cast will vary depending on the game's language, which is typically bad for code.
static function string Capitalize(string Source, optional string Delimiter, optional bool bLowerFirst, optional bool bOnlyFirstWord) - Capitalizes/formats the string Source by capitalizing the start of each word, unless bOnlyFirstWord is true, in which case, only the first word will be capitalized, then returns it. Delimiter specifies which character should be the character that is used to specify when each new word will occur, and bLowerFirst will lowercase Source before capitalizing it
static function string FloatToString(float fValue, optional int iPrecision) - Casts the float fValue into a string, then returns it. By default, a float-to-string cast will always result in 2 decimal places being shown in front of it, but this strips that by default. If you want to add more decimal places, you can do so by specifying iPrecision, which states how many decimal places should be added
static function string GetLoremIpsum(optional int iLength) - Returns with the classic Lorem Ipsum placeholder text. You can optionally specify how many characters you want from it by changing iLength to equal the amount of characters you want returned
static function string GetStopwatch(float fTimeSeconds, optional bool bShowMilliseconds, optional int iMillisecondPrecision, optional bool bShowHours, optional bool bDoNotShowMinutes) - Takes the float fTimeSeconds and returns with a string that is the equivalent of a stopwatch timer. By default, it shows MM:SS, but you can enable milliseconds with bShowMilliseconds and you can enable hours with bShowHours. iMillisecondPrecision specifies how many digits should be shown in the milliseconds and bDoNotShowMinutes will cause the minutes to not show
static function int IsBool(string S) - Returns an int greater than 0 if the string S is equal to an English boolean string. The int will equal 0 if the string was a boolean and it was false, and the int will equal 1 if the string was a boolean and it was true
static function bool IsLower(coerce string S) - Returns true if the string S is all lowercase
static function bool IsNumeric(string S) - Returns true if the string S is strictly a numeric integer or floating point
static function bool IsUpper(coerce string S) - Returns true if the string S is all uppercase
static function string Lower(coerce string Text) - Turns all characters in the string Text to be lowercase, then returns it
static function QuickStringInsert(out array<string> sStrings, string sString) - Outputs the string array sStrings containing the given string array, but it inserts a new index into the array with the value sString
static function RemoveText(out string Source, string TextToRemove) - Takes the string Source and removes all instances of the phrase TextToRemove from it
static function string Upper(coerce string Text) - Turns all characters in the string Text to be uppercase, then returns it