Arma Reforger Script API
Loading...
Searching...
No Matches
SCR_StringHelper Interface Reference

Public Member Functions

array< int > IndicesOf (string input, string search)
 

Static Public Member Functions

static bool ContainsDigit (string input)
 Check if the provided input contains any digit.
 
static bool ContainsUppercase (string input)
 Check if the provided input contains any uppercase character (A-Z)
 
static bool ContainsLowercase (string input)
 Check if the provided input contains any lowercase character (a-z)
 
static int CountOccurrences (string haystack, string needle, bool caseInsensitive=false)
 Gets the amount of times a needle is found in the haystack.
 
static string Filter (string input, string characters, bool useCharactersAsBlacklist=false)
 
static bool IsFormat (SCR_EStringFormat format, string input)
 
static bool CheckCharacters (string input, bool allowLC, bool allowUC, bool allowDigits, bool allowUnderscore=false)
 Check if the provided string respects all the limitations.
 
static string Format (string input, notnull array< string > arguments)
 format with string arguments in the form of an array
 
static string FormatValueNameToUserFriendly (string valueName)
 Turns e.g m_bIsValid to "Is Valid", m_bUsesAMagazine to "Uses A Magazine", m_bExportToPDFDocument to "Export To PDF Document".
 
static string FormatResourceNameToUserFriendly (ResourceName resourceName)
 Turns "{GUID012345678910}Prefabs/Characters/Factions/Faction/Character_FactionName_NLAW.et" into "Character FactionName NLAW".
 
static string FormatSnakeCaseToUserFriendly (string snakeCase)
 Turns "THIS_IS_AN_ENUM" or "tHIs_is_aN_enUM" into "This Is An Enum".
 
static array< float > GetFloatsFromString (string input, string splitter=SPACE)
 Gets float values array from a string (e.g { 0.3, 5.0, 7.9 } from "0.3 5.0 abc 7.9")
 
static array< int > GetIntsFromString (string input, string splitter=SPACE)
 Gets int values array from a string (e.g { 3, 5, 7 } from "3 5 abc 7")
 
static array< string > GetLines (string input, bool removeEmptyLines=false, bool trimLines=false)
 Obtain an array of lines from a multiline string - split is done on the \n character.
 
static int IndexOf (string input, notnull array< string > samples)
 Finds the first occurrence of the provided samples.
 
static int IndexOfFrom (string input, int start, notnull array< string > samples)
 Finds the first occurrence of the provided samples from a position.
 
static string InsertAt (string input, string insertion, int insertionIndex=0)
 Insert a string into another string.
 
static bool IsEmptyOrWhiteSpace (string input)
 
static bool IsTranslationKey (string input)
 Returns if the provided string is in the translation key format (e.g #AR-Translation_Value_3) - the pound sign (#) must be present!
 
static string Join (string separator, notnull array< string > pieces, bool joinEmptyEntries=true)
 Joins strings together (reverse operation of string.Split)
 
static string Join (string separator, notnull array< bool > pieces, bool numerical=false)
 Joins bools together as string.
 
static string Join (string separator, notnull array< int > pieces)
 Joins ints together as string.
 
static string Join (string separator, notnull array< float > pieces)
 Joins floats together as string.
 
static int GetLevenshteinDistance (string word1, string word2, bool caseSensitive=true)
 Calculate the Levenshtein distance between two words (https://en.wikipedia.org/wiki/Levenshtein_distance)
 
static float GetLevenshteinDistanceScore (string word1, string word2, bool caseSensitive=true)
 
static int GetDamerauLevenshteinDistance (string word1, string word2, bool caseSensitive=true)
 Calculate the Damerau-Levenshtein Optimal string Alignment (OSA) distance between two words (https://en.wikipedia.org/wiki/Damerau%E2%80%93Levenshtein_distance)
.
 
static float GetDamerauLevenshteinDistanceScore (string word1, string word2, bool caseSensitive=true)
 
static string PadLeft (string input, int length, string padding=SPACE)
 Pads the provided string's left end (start) with the provided padding (cut to the exact length) Will not do anything if input is already longer than length or if padding is empty If input is longer, it will not be cut.
 
static string PadRight (string input, int length, string padding=SPACE)
 Pads the provided string's right end (end) with the provided padding (cut to the exact length) Will not do anything if input is already longer than length or if padding is empty If input is longer, it will not be cut.
 
static string ReplaceRecursive (string input, string sample, string replacement)
 Replace until there is no trace of search.
 
static string ReplaceMultiple (string input, notnull array< string > samples, string replacement)
 Replaces multiple entries by the same replacement.
 
static string ReplaceTimes (string input, string sample, string replacement, int howMany=1, int skip=0)
 Replace X times a string from within a string from left to right the next occurrence is searched after the previous replacement, there is no overlap.
 
static string Reverse (string input)
 Returns the provided input string reversed.
 
static bool SimpleStarSearchMatches (string haystack, string needle, bool caseSensitive, bool strictMatch)
 Search a string with star-keywords - only supports begin* / end / *contains search format.
 
static bool ContainsAny (string input, notnull array< string > needles)
 Check if input contains any needles.
 
static bool ContainsEvery (string input, notnull array< string > needles)
 Check if input contains every needles.
 
static bool ContainsOnly (string input, string characters, bool useCharactersAsBlacklist=false)
 
static bool StartsWithAny (string input, notnull array< string > lineStarts)
 Find out if a string's beginning matches one of the provided beginnings.
 
static bool EndsWithAny (string input, notnull array< string > lineEnds)
 Find out if a string's ending matches one of the provided endings.
 
static string Translate (string input, string param1=string.Empty, string param2=string.Empty, string param3=string.Empty, string param4=string.Empty, string param5=string.Empty, string param6=string.Empty, string param7=string.Empty, string param8=string.Empty, string param9=string.Empty)
 Get the actual translation from the translation key If not a translation key, the provided input is returned It is NOT recommended to manipulate a potentially non-ASCII string (multibyte UTF-8), use at your own risk!
 
static string Translate (string input, notnull array< string > arguments)
 Get the actual translation from the translation key If not a translation key, the provided input is returned It is NOT recommended to manipulate a potentially non-ASCII string (multibyte UTF-8) in script, use at your own risk!
 
static string TrimLeft (string input)
 Remove spaces, tabs and line returns on the left end of the provided string Vertical tabs and other characters are ignored and considered as normal characters (for now?)
 
static string TrimRight (string input)
 Remove spaces, tabs and line returns on the right end of the provided string Vertical tabs and other characters are ignored and considered as normal characters (for now?)
 

Static Public Attributes

static const string LOWERCASE = "abcdefghijklmnopqrstuvwxyz"
 
static const string UPPERCASE = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
 
static const string LETTERS = LOWERCASE + UPPERCASE
 
static const string DIGITS = "0123456789"
 
static const string ALPHANUMERICAL = LETTERS + DIGITS
 
static const string UNDERSCORE = "_"
 
static const string ALPHANUMERICAL_U = ALPHANUMERICAL + UNDERSCORE
 
static const string DASH = "-"
 
static const string COLON = ":"
 
static const string SEMICOLON = ";"
 
static const string COMMA = ","
 
static const string SPACE = " "
 
static const string STAR = "*"
 
static const string POUND = "#"
 
static const string HASHTAG = POUND
 
static const string QUESTION_MARK = "?"
 
static const string EXCLAMATION_MARK = "!"
 
static const string DOUBLE_SPACE = SPACE + SPACE
 
static const string QUADRUPLE_SPACE = DOUBLE_SPACE + DOUBLE_SPACE
 
static const string SINGLE_QUOTE = "'"
 
static const string DOUBLE_QUOTE = "\""
 
static const string TAB = "\t"
 
static const string LINE_RETURN = "\n"
 
static const string SLASH = "/"
 
static const string DOUBLE_SLASH = SLASH + SLASH
 
static const string ANTISLASH = "\\"
 
static const string DOUBLE_ANTISLASH = ANTISLASH + ANTISLASH
 
static const string LIPSUM = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
 

Static Protected Attributes

static const string TRANSLATION_KEY_CHARS = UNDERSCORE + DASH
 
static const int MIN_LC = 97
 
static const int MAX_LC = 122
 
static const int MIN_UC = 65
 
static const int MAX_UC = 90
 
static const int MIN_DIGIT = 48
 
static const int MAX_DIGIT = 57
 

Member Function Documentation

◆ CheckCharacters()

static bool SCR_StringHelper.CheckCharacters ( string input,
bool allowLC,
bool allowUC,
bool allowDigits,
bool allowUnderscore = false )
static

Check if the provided string respects all the limitations.

Parameters
[in]allowLCallow LowerCase characters (abc..xyz)
[in]allowUCallow UpperCase characters (ABC..XYZ)
[in]allowDigitsallow all numbers (012..789)
[in]allowUnderscoreallow underscore (_)
Returns
whether or not input respects allowed characters filters

◆ ContainsAny()

static bool SCR_StringHelper.ContainsAny ( string input,
notnull array< string > needles )
static

Check if input contains any needles.

Parameters
[in]input
[in]needles
Returns

◆ ContainsDigit()

static bool SCR_StringHelper.ContainsDigit ( string input)
static

Check if the provided input contains any digit.

Parameters
[in]input
Returns
true if input contains any digit, false otherwise

◆ ContainsEvery()

static bool SCR_StringHelper.ContainsEvery ( string input,
notnull array< string > needles )
static

Check if input contains every needles.

Parameters
[in]input
[in]needles
Returns

◆ ContainsLowercase()

static bool SCR_StringHelper.ContainsLowercase ( string input)
static

Check if the provided input contains any lowercase character (a-z)

Parameters
[in]input
Returns
true if input contains any lowercase character, false otherwise

◆ ContainsOnly()

static bool SCR_StringHelper.ContainsOnly ( string input,
string characters,
bool useCharactersAsBlacklist = false )
static
Parameters
[in]inputthe input string
[in]charactersthe characters that must compose input or that must not be present depending on useCharactersAsBlacklist
[in]useCharactersAsBlacklistfalse for characters to be a whitelist, true for a blacklist
Returns
true if no forbidden characters were found or if characters is empty, false otherwise or if input is empty

◆ ContainsUppercase()

static bool SCR_StringHelper.ContainsUppercase ( string input)
static

Check if the provided input contains any uppercase character (A-Z)

Parameters
[in]input
Returns
true if input contains any uppercase character, false otherwise

◆ CountOccurrences()

static int SCR_StringHelper.CountOccurrences ( string haystack,
string needle,
bool caseInsensitive = false )
static

Gets the amount of times a needle is found in the haystack.

e.g looking for "AA" in "AAAAA" will find it twice.

Parameters
[in]haystackthe string in which to search
[in]needlethe string to find
[in]caseInsensitiveif set to true, the search will be case-insensitive (e.g "A" will match "a" and vice-versa)
Returns
the amount of needle occurrences in haystack, 0 if haystack or needle is empty

◆ EndsWithAny()

static bool SCR_StringHelper.EndsWithAny ( string input,
notnull array< string > lineEnds )
static

Find out if a string's ending matches one of the provided endings.

Parameters
[in]inputthe string to check
[in]lineEndsthe endings to parse
Returns
whether or not the input ends with one of the provided line endings

◆ Filter()

static string SCR_StringHelper.Filter ( string input,
string characters,
bool useCharactersAsBlacklist = false )
static
Parameters
[in]inputthe input string
[in]charactersthe characters to either respect or remove depending on useCharactersAsBlacklist
[in]useCharactersAsBlacklistfalse for characters to be a whitelist, true for a blacklist
Returns
the resulting string

◆ Format()

static string SCR_StringHelper.Format ( string input,
notnull array< string > arguments )
static

format with string arguments in the form of an array

Parameters
[in]formatwith %1, %2 etc
[in]argumentsarray
Returns
string.Format'ted string (with max 9 arguments)

◆ FormatResourceNameToUserFriendly()

static string SCR_StringHelper.FormatResourceNameToUserFriendly ( ResourceName resourceName)
static

Turns "{GUID012345678910}Prefabs/Characters/Factions/Faction/Character_FactionName_NLAW.et" into "Character FactionName NLAW".

Parameters
[in]resourceName
Returns
space-separated words without resourceName extension

◆ FormatSnakeCaseToUserFriendly()

static string SCR_StringHelper.FormatSnakeCaseToUserFriendly ( string snakeCase)
static

Turns "THIS_IS_AN_ENUM" or "tHIs_is_aN_enUM" into "This Is An Enum".

Parameters
[in]snakeCaseany string with words separated by underscores
Returns
firstchar-uppercased space-separated words

◆ FormatValueNameToUserFriendly()

static string SCR_StringHelper.FormatValueNameToUserFriendly ( string valueName)
static

Turns e.g m_bIsValid to "Is Valid", m_bUsesAMagazine to "Uses A Magazine", m_bExportToPDFDocument to "Export To PDF Document".

Parameters
[in]valueName
Returns
space-separated words without resourceName extension

◆ GetDamerauLevenshteinDistance()

static int SCR_StringHelper.GetDamerauLevenshteinDistance ( string word1,
string word2,
bool caseSensitive = true )
static

Calculate the Damerau-Levenshtein Optimal string Alignment (OSA) distance between two words (https://en.wikipedia.org/wiki/Damerau%E2%80%93Levenshtein_distance)
.

Note
not to be confused with Levenshtein distance (see LevenshteinDistance)
Parameters
[in]word1
[in]word2
[in]caseSensitive
Returns

◆ GetDamerauLevenshteinDistanceScore()

static float SCR_StringHelper.GetDamerauLevenshteinDistanceScore ( string word1,
string word2,
bool caseSensitive = true )
static
See also
DamerauLevenshteinDistance
Returns
a 0..1 matching score - 0 being the farthest, 1 being identical

◆ GetFloatsFromString()

static array< float > SCR_StringHelper.GetFloatsFromString ( string input,
string splitter = SPACE )
static

Gets float values array from a string (e.g { 0.3, 5.0, 7.9 } from "0.3 5.0 abc 7.9")

Parameters
[in]input
[in]splitterspace by default, can be a comma from e.g IEntitySource values
Returns

◆ GetIntsFromString()

static array< int > SCR_StringHelper.GetIntsFromString ( string input,
string splitter = SPACE )
static

Gets int values array from a string (e.g { 3, 5, 7 } from "3 5 abc 7")

Parameters
[in]input
[in]splitterspace by default, can be a comma from e.g IEntitySource values
Returns

◆ GetLevenshteinDistance()

static int SCR_StringHelper.GetLevenshteinDistance ( string word1,
string word2,
bool caseSensitive = true )
static

Calculate the Levenshtein distance between two words (https://en.wikipedia.org/wiki/Levenshtein_distance)

Note
not to be confused with Damerau-Levenshtein/OSA distance (see DamerauLevenshteinDistance)
Parameters
[in]word1
[in]word2
[in]caseSensitive
Returns
number of operations to go from one word to the other (always in 0..inf range)

◆ GetLevenshteinDistanceScore()

static float SCR_StringHelper.GetLevenshteinDistanceScore ( string word1,
string word2,
bool caseSensitive = true )
static
See also
LevenshteinDistance
Returns
a 0..1 matching score - 0 being the farthest, 1 being the identical

◆ GetLines()

static array< string > SCR_StringHelper.GetLines ( string input,
bool removeEmptyLines = false,
bool trimLines = false )
static

Obtain an array of lines from a multiline string - split is done on the \n character.

Parameters
[in]input
[in]removeEmptyLinesif true, remove empty lines (including trimmed ones)
[in]trimLinesif true, trim lines
Returns
array of lines, with or without empty/whitespace lines - can remove an empty array if removeEmptyLines is enabled

◆ IndexOf()

static int SCR_StringHelper.IndexOf ( string input,
notnull array< string > samples )
static

Finds the first occurrence of the provided samples.

See also
string.IndexOf
Parameters
[in]input
[in]samples
Returns

◆ IndexOfFrom()

static int SCR_StringHelper.IndexOfFrom ( string input,
int start,
notnull array< string > samples )
static

Finds the first occurrence of the provided samples from a position.

See also
string.IndexOfFrom
Parameters
[in]input
[in]start
[in]samples
Returns

◆ IndicesOf()

array< int > SCR_StringHelper.IndicesOf ( string input,
string search )
Parameters
[in]input
[in]search
Returns
an array of indices - never returns null

◆ InsertAt()

static string SCR_StringHelper.InsertAt ( string input,
string insertion,
int insertionIndex = 0 )
static

Insert a string into another string.

Parameters
[in]inputthe text in which to insert
[in]insertionthe text to insert
[in]insertionIndexdefault 0
Returns
input with insertion inserted at insertionIndex

◆ IsEmptyOrWhiteSpace()

static bool SCR_StringHelper.IsEmptyOrWhiteSpace ( string input)
static
Parameters
[in]input
Returns
true if input is empty or only made of spaces or tabs

◆ IsFormat()

static bool SCR_StringHelper.IsFormat ( SCR_EStringFormat format,
string input )
static
Parameters
[in]format
[in]inputmust be ASCII

◆ IsTranslationKey()

static bool SCR_StringHelper.IsTranslationKey ( string input)
static

Returns if the provided string is in the translation key format (e.g #AR-Translation_Value_3) - the pound sign (#) must be present!

Parameters
[in]input
Returns
true if input is in the translation key format

◆ Join() [1/4]

static string SCR_StringHelper.Join ( string separator,
notnull array< bool > pieces,
bool numerical = false )
static

Joins bools together as string.

Parameters
[in]separatorusually "," for an int array
[in]piecesthe pieces to be joined
[in]numericalwhether or not true is stringified as 1 and false as 0, or written full text ("true" and "false")
Returns
the pieces joined with separator, or empty string if pieces is empty

◆ Join() [2/4]

static string SCR_StringHelper.Join ( string separator,
notnull array< float > pieces )
static

Joins floats together as string.

Parameters
[in]separatorusually "," for a float array
[in]piecesthe pieces to be joined
Returns
the pieces joined with separator, or empty string if pieces is empty

◆ Join() [3/4]

static string SCR_StringHelper.Join ( string separator,
notnull array< int > pieces )
static

Joins ints together as string.

Parameters
[in]separatorusually "," for an int array
[in]piecesthe pieces to be joined
Returns
the pieces joined with separator, or empty string if pieces is empty

◆ Join() [4/4]

static string SCR_StringHelper.Join ( string separator,
notnull array< string > pieces,
bool joinEmptyEntries = true )
static

Joins strings together (reverse operation of string.Split)

Parameters
[in]separatorusually ", " for a string array
[in]piecesthe pieces to be joined
[in]joinEmptyEntriesif set to false, will ignore empty pieces (to e.g avoid ", , " occurrences)
Returns
the string pieces joined with separator, or empty string if pieces is empty

◆ PadLeft()

static string SCR_StringHelper.PadLeft ( string input,
int length,
string padding = SPACE )
static

Pads the provided string's left end (start) with the provided padding (cut to the exact length) Will not do anything if input is already longer than length or if padding is empty If input is longer, it will not be cut.

Parameters
[in]input
[in]length
[in]padding
Returns
the padded string

◆ PadRight()

static string SCR_StringHelper.PadRight ( string input,
int length,
string padding = SPACE )
static

Pads the provided string's right end (end) with the provided padding (cut to the exact length) Will not do anything if input is already longer than length or if padding is empty If input is longer, it will not be cut.

Parameters
[in]input
[in]length
[in]padding
Returns
the padded string

◆ ReplaceMultiple()

static string SCR_StringHelper.ReplaceMultiple ( string input,
notnull array< string > samples,
string replacement )
static

Replaces multiple entries by the same replacement.

Parameters
[in]input
[in]samples
[in]replacement
Returns

◆ ReplaceRecursive()

static string SCR_StringHelper.ReplaceRecursive ( string input,
string sample,
string replacement )
static

Replace until there is no trace of search.

string input = "AAAAAABAAA";
input.Replace("AA", "A"); // input is now "AAABAA"
SCR_StringHelper.ReplaceRecursive("AAAAAABAAA", "AA", "A"); // returns "ABA"
SCR_StringHelper.ReplaceRecursive("AAAAAABAAA", "AA", "AAX"); // returns "AAAAAABAAA"
Definition SCR_StringHelper.c:2
static string ReplaceRecursive(string input, string sample, string replacement)
Replace until there is no trace of search.
Definition SCR_StringHelper.c:971
Parameters
[in]inputthe input in which to search and replace
[in]whatto replace - an empty sample will do nothing
[in]replacementCANNOT contain sample for an obvious reason
Returns
the modified input, or the original one on wrong arguments

◆ ReplaceTimes()

static string SCR_StringHelper.ReplaceTimes ( string input,
string sample,
string replacement,
int howMany = 1,
int skip = 0 )
static

Replace X times a string from within a string from left to right the next occurrence is searched after the previous replacement, there is no overlap.

SCR_StringHelper.ReplaceTimes("Hello Hallo Yellow", "llo", "ya"); // returns "Heya Hallo Yellow"
SCR_StringHelper.ReplaceTimes("Hello Hallo Yellow", "llo", "ya", 2); // returns "Heya Haya Yellow"
SCR_StringHelper.ReplaceTimes("Hello Hallo Yellow", "llo", "ya", 4); // returns "Heya Haya Yeyaw"
SCR_StringHelper.ReplaceTimes("A A A", "A", "BA", 2); // returns "BA BA A"
SCR_StringHelper.ReplaceTimes("A A A", "A", "B", 1, 1); // returns "A B A"
static string ReplaceTimes(string input, string sample, string replacement, int howMany=1, int skip=0)
Replace X times a string from within a string from left to right the next occurrence is searched afte...
Definition SCR_StringHelper.c:1025
Parameters
[in]inputthe input in which to search and replace
[in]samplewhat to replace - an empty sample will do nothing
[in]replacementthe replacement string
[in]howManytimes the string must be replaced
[in]skipfirst occurrences -not- to be replaced
Returns
input with 'sample' replaced by 'replacement' 'howMany' times after skipping 'skip' occurrences

◆ Reverse()

static string SCR_StringHelper.Reverse ( string input)
static

Returns the provided input string reversed.

SCR_StringHelper.Reverse("ABC123"); // returns "321CBA"
static string Reverse(string input)
Returns the provided input string reversed.
Definition SCR_StringHelper.c:1068
Parameters
[in]input
Returns
reversed input

◆ SimpleStarSearchMatches()

static bool SCR_StringHelper.SimpleStarSearchMatches ( string haystack,
string needle,
bool caseSensitive,
bool strictMatch )
static

Search a string with star-keywords - only supports begin* / end / *contains search format.

Parameters
[in]haystack
[in]needlethe star-based search:
  • word = exact search
  • word* = starting with
  • word = starting with
  • *word = containing
[in]caseSensitivewhether or not the search is case-sensitive
[in]strictMatchstar is a REQUIREMENT and not a POSSIBILITY:
  • true: word = NEEDS a before/after (e.g matches with XwordX, does not match with Xword, wordX and word)
  • false: word = CAN have a before/after (e.g matches with XwordX, Xword, wordX and word)
Returns
true if matches

◆ StartsWithAny()

static bool SCR_StringHelper.StartsWithAny ( string input,
notnull array< string > lineStarts )
static

Find out if a string's beginning matches one of the provided beginnings.

Parameters
[in]inputthe string to check
[in]lineStartsthe beginnings to parse
Returns
whether or not the input begins with one of the provided line beginnings

◆ Translate() [1/2]

static string SCR_StringHelper.Translate ( string input,
notnull array< string > arguments )
static

Get the actual translation from the translation key If not a translation key, the provided input is returned It is NOT recommended to manipulate a potentially non-ASCII string (multibyte UTF-8) in script, use at your own risk!

Parameters
[in]input
[in]arguments
Returns
translated string, multibyte UTF-8 format

◆ Translate() [2/2]

static string SCR_StringHelper.Translate ( string input,
string param1 = string::Empty,
string param2 = string::Empty,
string param3 = string::Empty,
string param4 = string::Empty,
string param5 = string::Empty,
string param6 = string::Empty,
string param7 = string::Empty,
string param8 = string::Empty,
string param9 = string::Empty )
static

Get the actual translation from the translation key If not a translation key, the provided input is returned It is NOT recommended to manipulate a potentially non-ASCII string (multibyte UTF-8), use at your own risk!

Parameters
[in]input
[in]param1
[in]param2
[in]param3
[in]param4
[in]param5
[in]param6
[in]param7
[in]param8
[in]param9
Returns
translated string, multibyte UTF-8 format

◆ TrimLeft()

static string SCR_StringHelper.TrimLeft ( string input)
static

Remove spaces, tabs and line returns on the left end of the provided string Vertical tabs and other characters are ignored and considered as normal characters (for now?)

Parameters
[in]input
Returns
the trimmed input

◆ TrimRight()

static string SCR_StringHelper.TrimRight ( string input)
static

Remove spaces, tabs and line returns on the right end of the provided string Vertical tabs and other characters are ignored and considered as normal characters (for now?)

Parameters
[in]input
Returns
the trimmed input

Member Data Documentation

◆ ALPHANUMERICAL

const string SCR_StringHelper.ALPHANUMERICAL = LETTERS + DIGITS
static

◆ ALPHANUMERICAL_U

const string SCR_StringHelper.ALPHANUMERICAL_U = ALPHANUMERICAL + UNDERSCORE
static

◆ ANTISLASH

const string SCR_StringHelper.ANTISLASH = "\\"
static

◆ COLON

const string SCR_StringHelper.COLON = ":"
static

◆ COMMA

const string SCR_StringHelper.COMMA = ","
static

◆ DASH

const string SCR_StringHelper.DASH = "-"
static

◆ DIGITS

const string SCR_StringHelper.DIGITS = "0123456789"
static

◆ DOUBLE_ANTISLASH

const string SCR_StringHelper.DOUBLE_ANTISLASH = ANTISLASH + ANTISLASH
static

◆ DOUBLE_QUOTE

const string SCR_StringHelper.DOUBLE_QUOTE = "\""
static

◆ DOUBLE_SLASH

const string SCR_StringHelper.DOUBLE_SLASH = SLASH + SLASH
static

◆ DOUBLE_SPACE

const string SCR_StringHelper.DOUBLE_SPACE = SPACE + SPACE
static

◆ EXCLAMATION_MARK

const string SCR_StringHelper.EXCLAMATION_MARK = "!"
static

◆ HASHTAG

const string SCR_StringHelper.HASHTAG = POUND
static

◆ LETTERS

const string SCR_StringHelper.LETTERS = LOWERCASE + UPPERCASE
static

◆ LINE_RETURN

const string SCR_StringHelper.LINE_RETURN = "\n"
static

◆ LIPSUM

const string SCR_StringHelper.LIPSUM = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
static

◆ LOWERCASE

const string SCR_StringHelper.LOWERCASE = "abcdefghijklmnopqrstuvwxyz"
static

◆ MAX_DIGIT

const int SCR_StringHelper.MAX_DIGIT = 57
staticprotected

◆ MAX_LC

const int SCR_StringHelper.MAX_LC = 122
staticprotected

◆ MAX_UC

const int SCR_StringHelper.MAX_UC = 90
staticprotected

◆ MIN_DIGIT

const int SCR_StringHelper.MIN_DIGIT = 48
staticprotected

◆ MIN_LC

const int SCR_StringHelper.MIN_LC = 97
staticprotected

◆ MIN_UC

const int SCR_StringHelper.MIN_UC = 65
staticprotected

◆ POUND

const string SCR_StringHelper.POUND = "#"
static

◆ QUADRUPLE_SPACE

const string SCR_StringHelper.QUADRUPLE_SPACE = DOUBLE_SPACE + DOUBLE_SPACE
static

◆ QUESTION_MARK

const string SCR_StringHelper.QUESTION_MARK = "?"
static

◆ SEMICOLON

const string SCR_StringHelper.SEMICOLON = ";"
static

◆ SINGLE_QUOTE

const string SCR_StringHelper.SINGLE_QUOTE = "'"
static

◆ SLASH

const string SCR_StringHelper.SLASH = "/"
static

◆ SPACE

const string SCR_StringHelper.SPACE = " "
static

◆ STAR

const string SCR_StringHelper.STAR = "*"
static

◆ TAB

const string SCR_StringHelper.TAB = "\t"
static

◆ TRANSLATION_KEY_CHARS

const string SCR_StringHelper.TRANSLATION_KEY_CHARS = UNDERSCORE + DASH
staticprotected

◆ UNDERSCORE

const string SCR_StringHelper.UNDERSCORE = "_"
static

◆ UPPERCASE

const string SCR_StringHelper.UPPERCASE = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
static

The documentation for this interface was generated from the following file: