Class Hierarchy
Object > ComponentObject > StringUtilsFunctions
Return Type |
Signature |
AppendIfMissing( |
|
Center( |
|
Contains( |
|
ContainsAny( |
|
CountMatches( |
|
EndsWith( |
|
EndsWithAny( |
|
Equals( |
|
EqualsAny( |
|
IndexOf( |
|
IsAsciiAlpha( |
|
IsAsciiAlphaNumeric( |
|
IsAsciiNumeric( |
|
IsAsciiWhitespace( |
|
Join( |
|
LastIndexOf( |
|
LeftPad( |
|
Mid( |
|
Overlay( |
|
PrependIfMissing( |
|
Remove( |
|
RemoveEnd( |
|
RemoveStart( |
|
Repeat( |
|
Replace( |
|
Reverse( |
|
Right( |
|
RightPad( |
|
Split( |
|
StartsWith( |
|
StartsWithAny( |
|
Strip( |
|
Substring( |
|
SubstringAfter( |
|
SubstringAfterLast( |
|
SubstringBefore( |
|
SubstringBeforeLast( |
|
SubstringBetween( |
|
SubstringsBetween( |
|
FSCEXPEXT@1.1001:AppendIfMissing
#StringUtils.AppendIfMissing(null, null) = null
#StringUtils.AppendIfMissing(null, "xyz") = "xyz"
#StringUtils.AppendIfMissing("", "xyz") = "xyz"
#StringUtils.AppendIfMissing("abc", null) = "abc"
#StringUtils.AppendIfMissing("abc", "xyz") = "abcxyz"
#StringUtils.AppendIfMissing("abcxyz", "xyz") = "abcxyz"
#StringUtils.AppendIfMissing("abcXYZ", "xyz", suffixes:"mno") = "abcXYZxyz"
#StringUtils.AppendIfMissing("abcxyz", "xyz", suffixes:"mno") = "abcxyz"
#StringUtils.AppendIfMissing("abcmno", "xyz", suffixes:"mno") = "abcmno"
#StringUtils.AppendIfMissing("abcXYZ", "xyz", suffixes:"mno") = "abcXYZxyz"
#StringUtils.AppendIfMissing("abcMNO", "xyz", suffixes:"mno") = "abcMNOxyz"
#StringUtils.AppendIfMissing("abcXYZ", "xyz", suffixes:"mno", ignorecase: true) = "abcXYZ"
string FSCEXPEXT@1.1001:AppendIfMissing(
string str,
string suffix,
out retval string result,
optional string[] suffixes,
optional boolean ignorecase)
Name |
Description |
str |
the string
|
suffix |
the string to append
|
result |
the new string
|
suffixes |
the list of strings to test, before append
|
ignorecase |
compare case insensitive
|
#StringUtils.Center("", 4, " ") = " "
#StringUtils.Center("ab", -1, " ") = "ab"
#StringUtils.Center("ab", 4, " ") = " ab "
#StringUtils.Center("abcd", 2, " ") = "abcd"
#StringUtils.Center("a", 4, " ") = " a "
#StringUtils.Center("a", 4, "yz") = "yayz"
#StringUtils.Center("abc", 7, null) = " abc "
#StringUtils.Center("abc", 7, "") = " abc "
string FSCEXPEXT@1.1001:Center(
string str,
integer length,
optional string pattern,
out retval string result)
Name |
Description |
str |
the string
|
length |
the length requested
|
pattern |
the pattern to use to extend the string
|
result |
the new string
|
#StringUtils.Contains("", *) = false
#StringUtils.Contains(null, *) = false
#StringUtils.Contains("abc", "") = true
#StringUtils.Contains("abc", "a") = true
#StringUtils.Contains("abc", "z") = false
#StringUtils.Contains("abc", "A", ignorecase: true) = true
#StringUtils.Contains("abc", "Z", ignorecase: true) = false
boolean FSCEXPEXT@1.1001:Contains(
string str,
string search,
out retval boolean result,
optional boolean ignorecase)
Name |
Description |
str |
the string
|
search |
string to find
|
result |
the boolean result
|
ignorecase |
compare case insensitive
|
#StringUtils.ContainsAny(null, *) = false
#StringUtils.ContainsAny(*, null) = false
#StringUtils.ContainsAny("abcd", ["ab"]) = true
#StringUtils.ContainsAny("abcd", ["d", "xxx"]) = true
#StringUtils.ContainsAny("abcd", ["xxx", "a"]) = true
#StringUtils.ContainsAny("abcd", ["AB"], ignorecase: true) = true
#StringUtils.ContainsAny("abcd", ["AB", "CD], ignorecase: true) = true
#StringUtils.ContainsAny("abcd", ["D", "XXX"], ignorecase: true) = true
#StringUtils.ContainsAny("abcd", ["XXX", "A"], ignorecase: true) = true
boolean FSCEXPEXT@1.1001:ContainsAny(
string str,
string[] search,
out retval boolean result,
optional boolean ignorecase)
Name |
Description |
str |
the string
|
search |
list of strings to find
|
result |
the boolean result
|
ignorecase |
compare case insensitive
|
#StringUtils.CountMatches(null, *) = 0
#StringUtils.CountMatches("", *) = 0
#StringUtils.CountMatches("abba", null) = 0
#StringUtils.CountMatches("abba", "") = 0
#StringUtils.CountMatches("abba", "a") = 2
#StringUtils.CountMatches("abba", "ab") = 1
#StringUtils.CountMatches("abba", "xxx") = 0
#StringUtils.CountMatches("ababa", "aba") = 1
#StringUtils.CountMatches("ababa", "AB", ignorecase: true) = 2
integer FSCEXPEXT@1.1001:CountMatches(
string str,
string sequence,
out retval integer result,
optional boolean ignorecase)
Name |
Description |
str |
the string
|
sequence |
the sequence to search for
|
result |
integer
|
ignorecase |
compare case insensitive
|
#StringUtils.EndsWith(null, null) = true
#StringUtils.EndsWith(null, "def") = false
#StringUtils.EndsWith("abcdef", null) = true
#StringUtils.EndsWith("abcdef", "def") = true
#StringUtils.EndsWith("ABCDEF", "def") = false
#StringUtils.EndsWith("abcdef", "def", ignorecase: true) = true
#StringUtils.EndsWith("ABCDEF", "def", ignorecase: true) = true
boolean FSCEXPEXT@1.1001:EndsWith(
string str,
string suffix,
out retval boolean result,
optional boolean ignorecase)
Name |
Description |
str |
the string
|
suffix |
string to match
|
result |
the boolean result
|
ignorecase |
compare case insensitive
|
#StringUtils.EndsWithAny(null, null) = false
#StringUtils.EndsWithAny(null, ["def"]) = false
#StringUtils.EndsWithAny("abcxyz", null) = false
#StringUtils.EndsWithAny("abcxyz", ["xyz"]) = true
#StringUtils.EndsWithAny("abcxyz", ["xyz", "abc"]) = true
#StringUtils.EndsWithAny("abcxyz", ["XYZ", "abc"]) = false
#StringUtils.EndsWithAny("ABCXYZ", ["xyz", "abc"]) = false
#StringUtils.EndsWithAny("abcxyz", ["XYZ", "abc"], ignorecase: true) = true
#StringUtils.EndsWithAny("ABCXYZ", ["xyz", "abc"], ignorecase: true) = true
boolean FSCEXPEXT@1.1001:EndsWithAny(
string str,
string[] suffix,
out retval boolean result,
optional boolean ignorecase)
Name |
Description |
str |
the string
|
suffix |
list of strings to match
|
result |
the boolean result
|
ignorecase |
compare case insensitive
|
#StringUtils.Equals(null, null) = true
#StringUtils.Equals(null, "") = true
#StringUtils.Equals("", "") = true
#StringUtils.Equals(null, "abc") = false
#StringUtils.Equals("abc", null) = false
#StringUtils.Equals("abc", "abc") = true
#StringUtils.Equals("abc", "ABC") = false
#StringUtils.Equals("abc", "ABC", ignorecase: true) = true
boolean FSCEXPEXT@1.1001:Equals(
string str,
string test,
out retval boolean result,
optional boolean ignorecase)
Name |
Description |
str |
the string to compare
|
test |
other string to compare
|
result |
the boolean result
|
ignorecase |
compare case insensitive
|
#StringUtils.EqualsAny(null, null) = false
#StringUtils.EqualsAny(null, ["abc", "def"]) = false
#StringUtils.EqualsAny("abc", [null, "def"]) = false
#StringUtils.EqualsAny("abc", ["abc", "def"]) = true
#StringUtils.EqualsAny("abc", ["ABC", "DEF"]) = false
#StringUtils.EqualsAny("abc", ["ABC", "DEF"], ignorecase: true) = true
boolean FSCEXPEXT@1.1001:EqualsAny(
string str,
string[] test,
out retval boolean result,
optional boolean ignorecase)
Name |
Description |
str |
the string to compare
|
test |
other strings to compare
|
result |
the boolean result
|
ignorecase |
compare case insensitive
|
#StringUtils.IndexOf(null, *) = -1
#StringUtils.IndexOf(*, null) = 0
#StringUtils.IndexOf("", "") = -1
#StringUtils.IndexOf("", "a") = -1
#StringUtils.IndexOf("a", "") = 0
#StringUtils.IndexOf("a", "x") = -1
#StringUtils.IndexOf("aab", "a") = 0
#StringUtils.IndexOf("aab", "b") = 2
#StringUtils.IndexOf("aab", "ab") = 1
#StringUtils.IndexOf("aabaabaa", "b", 3) = 5
#StringUtils.IndexOf("aabaabaa", "b", 9) = -1
#StringUtils.IndexOf("aabaabaa", "b", -1) = 2
#StringUtils.IndexOf("abc", "", 2) = 2
#StringUtils.IndexOf("abc", "", 4) = -1
#StringUtils.IndexOf("aabaabaa", "B", ignorecase: true) = 2
#StringUtils.IndexOf("aabaabaa", "B", -1, ignorecase: true) = 2
#StringUtils.IndexOf("aab", "A", ignorecase: true) = 0
#StringUtils.IndexOf("aab", "B", ignorecase: true) = 2
#StringUtils.IndexOf("aab", "AB", ignorecase: true) = 1
integer FSCEXPEXT@1.1001:IndexOf(
string str,
string search,
optional integer startindex,
out optional retval integer result,
optional boolean ignorecase)
Name |
Description |
str |
the string
|
search |
string to find
|
startindex |
optional start index
|
result |
integer index or #StringUtils.INDEX_NOT_FOUND (-1) if not found
|
ignorecase |
compare case insensitive
|
#StringUtils.IsAsciiAlpha(null) = false
#StringUtils.IsAsciiAlpha("") = false
#StringUtils.IsAsciiAlpha(" ") = false
#StringUtils.IsAsciiAlpha("abc") = true
#StringUtils.IsAsciiAlpha("ab c") = false
#StringUtils.IsAsciiAlpha("ab2c") = false
#StringUtils.IsAsciiAlpha("ab-c") = false
#StringUtils.IsAsciiAlpha("ä") = false
boolean FSCEXPEXT@1.1001:IsAsciiAlpha(
string str,
out retval boolean result)
Name |
Description |
str |
the string
|
result |
the boolean result
|
FSCEXPEXT@1.1001:IsAsciiAlphaNumeric
#StringUtils.IsAsciiAlphaNumeric(null) = false
#StringUtils.IsAsciiAlphaNumeric("") = false
#StringUtils.IsAsciiAlphaNumeric(" ") = false
#StringUtils.IsAsciiAlphaNumeric("abc") = true
#StringUtils.IsAsciiAlphaNumeric("123") = true
#StringUtils.IsAsciiAlphaNumeric("ab c") = false
#StringUtils.IsAsciiAlphaNumeric("ab-c") = false
#StringUtils.IsAsciiAlphaNumeric("abc123") = true
#StringUtils.IsAsciiAlphaNumeric("abc१२३") = false
boolean FSCEXPEXT@1.1001:IsAsciiAlphaNumeric(
string str,
out retval boolean result)
Name |
Description |
str |
the string
|
result |
the boolean result
|
FSCEXPEXT@1.1001:IsAsciiNumeric
#StringUtils.IsAsciiNumeric(null) = false
#StringUtils.IsAsciiNumeric("") = false
#StringUtils.IsAsciiNumeric(" ") = false
#StringUtils.IsAsciiNumeric("123") = true
#StringUtils.IsAsciiNumeric("12 3") = false
#StringUtils.IsAsciiNumeric("ab2c") = false
#StringUtils.IsAsciiNumeric("12-3") = false
#StringUtils.IsAsciiNumeric("12.3") = false
#StringUtils.IsAsciiNumeric("12,3") = false
#StringUtils.IsAsciiNumeric("-123") = false
#StringUtils.IsAsciiNumeric("+123") = false
#StringUtils.IsAsciiNumeric("१२३") = false
boolean FSCEXPEXT@1.1001:IsAsciiNumeric(
string str,
out retval boolean result)
Name |
Description |
str |
the string
|
result |
the boolean result
|
FSCEXPEXT@1.1001:IsAsciiWhitespace
#StringUtils.IsAsciiWhitespace(null) = false
#StringUtils.IsAsciiWhitespace("") = false
#StringUtils.IsAsciiWhitespace(" ") = true
#StringUtils.IsAsciiWhitespace("abc") = false
#StringUtils.IsAsciiWhitespace(" abc ") = false
boolean FSCEXPEXT@1.1001:IsAsciiWhitespace(
string str,
out retval boolean result)
Name |
Description |
str |
the string
|
result |
the boolean result
|
#StringUtils.IsBlank(null) = true
#StringUtils.IsBlank("") = true
#StringUtils.IsBlank(" ") = true
#StringUtils.IsBlank("abc") = false
#StringUtils.IsBlank(" abc ") = false
boolean FSCEXPEXT@1.1001:IsBlank(
string str,
out retval boolean result)
Name |
Description |
str |
the string
|
result |
the boolean result
|
#StringUtils.IsEmpty(null) = true
#StringUtils.IsEmpty("") = true
#StringUtils.IsEmpty(" ") = false
#StringUtils.IsEmpty("abc") = false
#StringUtils.IsEmpty(" abc ") = false
boolean FSCEXPEXT@1.1001:IsEmpty(
string str,
out retval boolean result)
Name |
Description |
str |
the string
|
result |
the boolean result
|
#StringUtils.Join(null, *) = null
#StringUtils.Join([], *) = null
#StringUtils.Join(["1", "2", "3"], ';') = "1;2;3"
#StringUtils.Join(["1", "2", "3"]) = "123"
#StringUtils.Join(["1", "2", "3"], startindex: 1) = "23"
#StringUtils.Join(["1", "2", "3"], startindex: 1, endindex: 1) = "2"
#StringUtils.Join(["1", "2", "3"], startindex: 1, endindex: 2) = "23"
#StringUtils.Join(["1", "2", "3"], endindex: 1) = "12"
#StringUtils.Join(["1", "2", "3"], endindex: 10) = "123"
string FSCEXPEXT@1.1001:Join(
string[] values,
optional string separator,
out optional retval string result,
optional integer startindex,
optional integer endindex)
Name |
Description |
values |
list of strings to join
|
separator |
the separator to join the parts
|
result |
the new string
|
startindex |
the index of the first element to join
|
endindex |
the index of the last element to join
|
#StringUtils.LastIndexOf(null, *) = -1
#StringUtils.LastIndexOf("", *) = -1
#StringUtils.LastIndexOf("aabaabaa", "a") = 7
#StringUtils.LastIndexOf("aabaabaa", "b") = 5
#StringUtils.LastIndexOf("aabaabaa", "ab") = 4
#StringUtils.LastIndexOf("aabaabaa", "") = 8
#StringUtils.LastIndexOf("aabaabaa", "", 2) = 2
#StringUtils.LastIndexOf("aabaabaa", "a", 8) = 7
#StringUtils.LastIndexOf("aabaabaa", "b", 8) = 5
#StringUtils.LastIndexOf("aabaabaa", "ab", 8) = 4
#StringUtils.LastIndexOf("aabaabaa", "b", 9) = 5
#StringUtils.LastIndexOf("aabaabaa", "b", -1) = 5
#StringUtils.LastIndexOf("aabaabaa", "a", 0) = 0
#StringUtils.LastIndexOf("aabaabaa", "b", 0) = -1
#StringUtils.LastIndexOf("aabaabaa", "A", 8, ignorecase: true) = 7
#StringUtils.LastIndexOf("aabaabaa", "B", 8, ignorecase: true) = 5
#StringUtils.LastIndexOf("aabaabaa", "AB", 8, ignorecase: true) = 4
#StringUtils.LastIndexOf("aabaabaa", "B", 9, ignorecase: true) = 5
#StringUtils.LastIndexOf("aabaabaa", "B", -1, ignorecase: true) = 5
#StringUtils.LastIndexOf("aabaabaa", "A", 0, ignorecase: true) = 0
#StringUtils.LastIndexOf("aabaabaa", "B", 0, ignorecase: true) = -1
#StringUtils.LastIndexOf("aabaabaa", "A", ignorecase: true) = 7
#StringUtils.LastIndexOf("aabaabaa", "B", ignorecase: true) = 5
#StringUtils.LastIndexOf("aabaabaa", "AB", ignorecase: true) = 4
#StringUtils.LastIndexOf("aabaabaa", "", ignorecase: true) = 8
integer FSCEXPEXT@1.1001:LastIndexOf(
string str,
string search,
optional integer startindex,
out optional retval integer result,
optional boolean ignorecase)
Name |
Description |
str |
the string
|
search |
string to find
|
startindex |
optional start index
|
result |
integer index or #StringUtils.INDEX_NOT_FOUND (-1) if not found
|
ignorecase |
compare case insensitive
|
#StringUtils.Left(null, *) = null
#StringUtils.Left(*, -1) = null
#StringUtils.Left("", *) = null
#StringUtils.Left("abc", 0) = null
#StringUtils.Left("abc", 2) = "ab"
#StringUtils.Left("abc", 4) = "abc"
string FSCEXPEXT@1.1001:Left(
string str,
integer length,
out retval string result)
Name |
Description |
str |
the string
|
length |
the requested length
|
result |
the substring
|
#StringUtils.LeftPad(null, 3) = " "
#StringUtils.LeftPad("", 3) = " "
#StringUtils.LeftPad("bat", 3) = "bat"
#StringUtils.LeftPad("bat", 5) = " bat"
#StringUtils.LeftPad("bat", 1) = "bat"
#StringUtils.LeftPad("bat", -1) = "bat"
#StringUtils.LeftPad(null, 3, "x") = "xxx"
#StringUtils.LeftPad("", 3, "z") = "zzz"
#StringUtils.LeftPad("bat", 3, 'z') = "bat"
#StringUtils.LeftPad("bat", 5, 'z') = "zzbat"
#StringUtils.LeftPad("bat", 1, 'z') = "bat"
#StringUtils.LeftPad("bat", -1, 'z') = "bat"
#StringUtils.LeftPad("bat", 3, "yz") = "bat"
#StringUtils.LeftPad("bat", 6, "yz") = "yzybat"
#StringUtils.LeftPad("bat", 8, "yz") = "yzyzybat"
#StringUtils.LeftPad("bat", 1, "yz") = "bat"
#StringUtils.LeftPad("bat", -1, "yz")= "bat"
#StringUtils.LeftPad("bat", 5, null) = " bat"
#StringUtils.LeftPad("bat", 5, "") = " bat"
string FSCEXPEXT@1.1001:LeftPad(
string str,
integer length,
optional string pad,
out optional retval string result)
Name |
Description |
str |
the string
|
length |
the requested length
|
pad |
the padding to use to extend the string
|
result |
the padded string
|
#StringUtils.LowerCase(null) = null
#StringUtils.LowerCase("") = null
#StringUtils.LowerCase("aBc") = "abc"
string FSCEXPEXT@1.1001:LowerCase(
string str,
out retval string result)
Name |
Description |
str |
the string
|
result |
the new string in lower case.
|
#StringUtils.Mid(null, *, *) = null
#StringUtils.Mid(*, *, -1) = null
#StringUtils.Mid("", 0, *) = null
#StringUtils.Mid("abc", 0, 2) = "ab"
#StringUtils.Mid("abc", 0, 4) = "abc"
#StringUtils.Mid("abc", 2, 4) = "c"
#StringUtils.Mid("abc", 4, 2) = null
#StringUtils.Mid("abc", -2, 2) = "ab"
string FSCEXPEXT@1.1001:Mid(
string str,
integer index,
integer length,
out retval string result)
Name |
Description |
str |
the string
|
index |
the start position
|
length |
the requested length
|
result |
the substring
|
#StringUtils.Overlay(null, *, *, *) = null
#StringUtils.Overlay("abcdef", null, 2, 4) = "abef"
#StringUtils.Overlay("abcdef", "", 2, 4) = "abef"
#StringUtils.Overlay("abcdef", "", 4, 2) = "abef"
#StringUtils.Overlay("abcdef", "zzzz", 2, 4) = "abzzzzef"
#StringUtils.Overlay("abcdef", "zzzz", 4, 2) = "abzzzzef"
#StringUtils.Overlay("abcdef", "zzzz", -1, 4) = "zzzzef"
#StringUtils.Overlay("abcdef", "zzzz", 2, 8) = "abzzzz"
#StringUtils.Overlay("abcdef", "zzzz", -2, -3) = "zzzzabcdef"
#StringUtils.Overlay("abcdef", "zzzz", 8, 10) = "abcdefzzzz"
string FSCEXPEXT@1.1001:Overlay(
string str,
string overlay,
integer startindex,
integer endindex,
out retval string result)
Name |
Description |
str |
the string
|
overlay |
the string to insert
|
startindex |
the start position where to insert
|
endindex |
the end position where to insert
|
result |
the new string
|
FSCEXPEXT@1.1001:PrependIfMissing
#StringUtils.PrependIfMissing(null, null) = null
#StringUtils.PrependIfMissing(null, "xyz") = "xyz"
#StringUtils.PrependIfMissing("", "xyz") = "xyz"
#StringUtils.PrependIfMissing("abc", null) = "abc"
#StringUtils.PrependIfMissing("abc", "xyz") = "xyzabc"
#StringUtils.PrependIfMissing("abc", "xyz", prefixes: "mno") = "xyzabc"
#StringUtils.PrependIfMissing("xyzabc", "xyz", prefixes: "mno") = "xyzabc"
#StringUtils.PrependIfMissing("mnoabc", "xyz", prefixes: "mno") = "mnoabc"
#StringUtils.PrependIfMissing("XYZabc", "xyz", prefixes: "mno") = "xyzXYZabc"
#StringUtils.PrependIfMissing("MNOabc", "xyz", prefixes: "mno") = "xyzMNOabc"
#StringUtils.PrependIfMissing("MNOabc", "xyz", prefixes:"mno", ignorecase: true) = "MNOabc"
string FSCEXPEXT@1.1001:PrependIfMissing(
string str,
string prefix,
out retval string result,
optional string[] prefixes,
optional boolean ignorecase)
Name |
Description |
str |
the string
|
prefix |
the string to prepend
|
result |
the new string
|
prefixes |
the list of strings to test, before prepend
|
ignorecase |
compare case insensitive
|
#StringUtils.Remove(null, *) = null
#StringUtils.Remove("", *) = null
#StringUtils.Remove(*, null) =
#StringUtils.Remove(*, "") =
#StringUtils.Remove("queued", "ue") = "qd"
#StringUtils.Remove("queued", "zz") = "queued"
#StringUtils.Remove("queued", "ue", ignorecase: true) = "qd"
#StringUtils.Remove("queued", "zz", ignorecase: true) = "queued"
#StringUtils.Remove("quEUed", "UE", ignorecase: true) = "qd"
#StringUtils.Remove("queued", "zZ", ignorecase: true) = "queued"
string FSCEXPEXT@1.1001:Remove(
string str,
string remove,
out retval string result,
optional boolean ignorecase)
Name |
Description |
str |
the string
|
remove |
the string to remove
|
result |
the new string
|
ignorecase |
compare case insensitive
|
#StringUtils.RemoveEnd(null, *) = null
#StringUtils.RemoveEnd("", *) = null
#StringUtils.RemoveEnd(*, null) =
#StringUtils.RemoveEnd(*, "") =
#StringUtils.RemoveEnd("www.domain.com", ".com.") = "www.domain.com"
#StringUtils.RemoveEnd("www.domain.com", ".com") = "www.domain"
#StringUtils.RemoveEnd("www.domain.com", "domain") = "www.domain.com"
#StringUtils.RemoveEnd("www.domain.com", ".COM", ignorecase: true) = "www.domain"
#StringUtils.RemoveEnd("www.domain.COM", ".com", ignorecase: true) = "www.domain"
string FSCEXPEXT@1.1001:RemoveEnd(
string str,
string remove,
out retval string result,
optional boolean ignorecase)
Name |
Description |
str |
the string
|
remove |
the string to remove
|
result |
the new string
|
ignorecase |
compare case insensitive
|
#StringUtils.RemoveStart(null, *) = null
#StringUtils.RemoveStart("", *) = null
#StringUtils.RemoveStart(*, null) =
#StringUtils.RemoveStart(*, "") =
#StringUtils.RemoveStart("www.domain.com", "www.") = "domain.com"
#StringUtils.RemoveStart("www.domain.com", ".com") = "www.domain.com"
#StringUtils.RemoveStart("www.domain.com", "domain") = "www.domain.com"
#StringUtils.RemoveStart("www.domain.com", "WWW.", ignorecase: true) = "domain.com"
#StringUtils.RemoveStart("WWW.domain.com", "www.", ignorecase: true) = "domain.com"
string FSCEXPEXT@1.1001:RemoveStart(
string str,
string remove,
out retval string result,
optional boolean ignorecase)
Name |
Description |
str |
the string
|
remove |
the string to remove
|
result |
the new string
|
ignorecase |
compare case insensitive
|
#StringUtils.Repeat(null, 2) = null
#StringUtils.Repeat("", 2) = null
#StringUtils.Repeat("x", 2) = "xx"
#StringUtils.Repeat("", 3, separator: "x") = "xx"
#StringUtils.Repeat("?", 3, separator: ", ") = "?, ?, ?"
string FSCEXPEXT@1.1001:Repeat(
string str,
integer repeat,
out retval string result,
optional string separator)
Name |
Description |
str |
the string
|
repeat |
the repetitions requested
|
result |
the new string
|
separator |
the pattern to separate repetitions
|
#StringUtils.Replace(null, *, *) = null
#StringUtils.Replace("", *, *) = null
#StringUtils.Replace("any", null, *) = "any"
#StringUtils.Replace("any", "", *) = "any"
#StringUtils.Replace("aba", "a", "") = "b"
#StringUtils.Replace("aba", "a", "z") = "zbz"
#StringUtils.Replace("abaa", "a", "", maxreplace:-1) = "b"
#StringUtils.Replace("abaa", "a", "z", maxreplace:0) = "abaa"
#StringUtils.Replace("abaa", "a", "z", maxreplace:1) = "zbaa"
#StringUtils.Replace("abaa", "a", "z", maxreplace:2) = "zbza"
#StringUtils.Replace("abaa", "a", "z", maxreplace:-1) = "zbzz"
#StringUtils.Replace("abaa", "A", "z", ignorecase: true) = "zbzz"
string FSCEXPEXT@1.1001:Replace(
string str,
string search,
string replace,
out retval string result,
optional integer maxreplace,
optional boolean ignorecase)
Name |
Description |
str |
the string
|
search |
the string to be replaced
|
replace |
the string to use as replacement
|
result |
the new string
|
maxreplace |
the maximum amount of replacements to make
|
ignorecase |
compare case insensitive
|
#StringUtils.Reverse(null) = null
#StringUtils.Reverse("") = null
#StringUtils.Reverse("bat") = "tab"
#StringUtils.Reverse("www.domain.com", separator: ".") = "com.domain.www"
#StringUtils.Reverse("a.b.c", separator: 'x') = "a.b.c"
#StringUtils.Reverse("aXbXc", separator: 'X') = "cXbXa"
#StringUtils.Reverse("aXbXc", separator: 'x', ignorecase: true) = "cxbxa"
string FSCEXPEXT@1.1001:Reverse(
string str,
out retval string result,
optional string separator,
optional boolean ignorecase)
Name |
Description |
str |
the string
|
result |
the new string
|
separator |
the separator used to break the string into parts
|
ignorecase |
compare case insensitive
|
#StringUtils.Right(null, *) = null
#StringUtils.Right(*, -1) = null
#StringUtils.Right("", *) = null
#StringUtils.Right("abc", 0) = null
#StringUtils.Right("abc", 2) = "bc"
#StringUtils.Right("abc", 4) = "abc"
string FSCEXPEXT@1.1001:Right(
string str,
integer length,
out retval string result)
Name |
Description |
str |
the string
|
length |
the requested length
|
result |
the substring
|
#StringUtils.RightPad(null, 3) = " "
#StringUtils.RightPad("", 3) = " "
#StringUtils.RightPad("bat", 3) = "bat"
#StringUtils.RightPad("bat", 5) = "bat "
#StringUtils.RightPad("bat", 1) = "bat"
#StringUtils.RightPad("bat", -1) = "bat"
#StringUtils.RightPad("", 3, 'z') = "zzz"
#StringUtils.RightPad("bat", 3, 'z') = "bat"
#StringUtils.RightPad("bat", 5, 'z') = "batzz"
#StringUtils.RightPad("bat", 1, 'z') = "bat"
#StringUtils.RightPad("bat", -1, 'z') = "bat"
#StringUtils.RightPad("", 3, "z") = "zzz"
#StringUtils.RightPad("bat", 3, "yz") = "bat"
#StringUtils.RightPad("bat", 6, "yz") = "batyzy"
#StringUtils.RightPad("bat", 8, "yz") = "batyzyzy"
#StringUtils.RightPad("bat", 1, "yz") = "bat"
#StringUtils.RightPad("bat", -1, "yz") = "bat"
#StringUtils.RightPad("bat", 5, null) = "bat "
#StringUtils.RightPad("bat", 5, "") = "bat "
string FSCEXPEXT@1.1001:RightPad(
string str,
integer length,
optional string pad,
out optional retval string result)
Name |
Description |
str |
the string
|
length |
the requested length
|
pad |
the padding to use to extend the string
|
result |
the padded string
|
#StringUtils.Split(null) = null
#StringUtils.Split("") = null
#StringUtils.Split("abc def") = ["abc", "def"]
#StringUtils.Split("abc def") = ["abc", "def"]
#StringUtils.Split(" abc ") = ["abc"]
#StringUtils.Split(null, *) = null
#StringUtils.Split("", *) = null
#StringUtils.Split("a.b.c", '.') = ["a", "b", "c"]
#StringUtils.Split("a..b.c", '.') = ["a", "b", "c"]
#StringUtils.Split("a:b:c", '.') = ["a:b:c"]
#StringUtils.Split("a b c", ' ') = ["a", "b", "c"]
#StringUtils.Split("abc def", null) = ["abc", "def"]
#StringUtils.Split("abc def", " ") = ["abc", "def"]
#StringUtils.Split("abc def", " ") = ["abc", "def"]
#StringUtils.Split("ab:cd:ef", ":") = ["ab", "cd", "ef"]
#StringUtils.Split(null, *, *) = null
#StringUtils.Split("", *, *) = null
#StringUtils.Split("ab cd ef", null, 0) = ["ab", "cd", "ef"]
#StringUtils.Split("ab cd ef", null, 0) = ["ab", "cd", "ef"]
#StringUtils.Split("ab:cd:ef", ":", 0) = ["ab", "cd", "ef"]
#StringUtils.Split("ab:cd:ef", ":", 2) = ["ab", "cd:ef"]
#StringUtils.Split("ab de fg", null, preservealltokens: true, wholeseparator: true) = ["ab", "de", "fg"]
#StringUtils.Split("ab de fg", null, preservealltokens: true, wholeseparator: true) = ["ab", "", "", "de", "fg"]
#StringUtils.Split("ab:cd:ef", ":", preservealltokens: true, wholeseparator: true) = ["ab", "cd", "ef"]
#StringUtils.Split("ab-!-cd-!-ef", "-!-", preservealltokens: true, wholeseparator: true) = ["ab", "cd", "ef"]
#StringUtils.Split("abXcdXef", "x", 2, ignorecase: true) = ["ab", "cdXef"]
#StringUtils.Split("ab-x-cd-x-ef", "-X-", preservealltokens: true, wholeseparator: true, ignorecase: true) = ["ab", "cd", "ef"]
string[] FSCEXPEXT@1.1001:Split(
string str,
optional string separator,
optional integer max,
out optional retval string[] result,
optional boolean preservealltokens,
optional boolean wholeseparator,
optional boolean ignorecase)
Name |
Description |
str |
the string
|
separator |
the separator to split the string into parts
|
max |
the maximum amount of the result list
|
result |
the list of parts
|
preservealltokens |
keep empty tokens, too
|
wholeseparator |
treat separator as a string pattern to split, not as set of characters to
split on each occurrence
|
ignorecase |
compare case insensitive
|
#StringUtils.StartsWith(null, null) = true
#StringUtils.StartsWith(null, "abc") = false
#StringUtils.StartsWith("abcdef", null) = true
#StringUtils.StartsWith("abcdef", "abc") = true
#StringUtils.StartsWith("ABCDEF", "abc") = false
#StringUtils.StartsWith("abcdef", "abc", ignorecase: true) = true
#StringUtils.StartsWith("ABCDEF", "abc", ignorecase: true) = true
boolean FSCEXPEXT@1.1001:StartsWith(
string str,
string prefix,
out retval boolean result,
optional boolean ignorecase)
Name |
Description |
str |
the string
|
prefix |
string to match
|
result |
the boolean result
|
ignorecase |
compare case insensitive
|
FSCEXPEXT@1.1001:StartsWithAny
#StringUtils.StartsWithAny(null, null) = false
#StringUtils.StartsWithAny(null, ["abc"]) = false
#StringUtils.StartsWithAny("abcxyz", null) = false
#StringUtils.StartsWithAny("abcxyz", ["abc"]) = true
#StringUtils.StartsWithAny("abcxyz", ["xyz", "abc"]) = true
#StringUtils.StartsWithAny("abcxyz", ["xyz", "ABCX"]) = false
#StringUtils.StartsWithAny("ABCXYZ", ["xyz", "abc"]) = false
#StringUtils.StartsWithAny("abcxyz", ["abc"], ignorecase: true) = true
#StringUtils.StartsWithAny("abcxyz", ["xyz", "abc"], ignorecase: true) = true
#StringUtils.StartsWithAny("abcxyz", ["xyz", "ABCX"], ignorecase: true) = true
#StringUtils.StartsWithAny("ABCXYZ", ["xyz", "abc"], ignorecase: true) = true
boolean FSCEXPEXT@1.1001:StartsWithAny(
string str,
string[] prefix,
out retval boolean result,
optional boolean ignorecase)
Name |
Description |
str |
the string
|
prefix |
list of strings to match
|
result |
the boolean result
|
ignorecase |
compare case insensitive
|
#StringUtils.Strip(null, *) = null
#StringUtils.Strip("", *) = null
#StringUtils.Strip(" ") = null
#StringUtils.Strip("abc") = "abc"
#StringUtils.Strip(" abc") = "abc"
#StringUtils.Strip("abc ") = "abc"
#StringUtils.Strip(" abc ") = "abc"
#StringUtils.Strip(" ab c ") = "ab c"
#StringUtils.Strip("x abcyx", stripchars: "xyz") = " abc"
string FSCEXPEXT@1.1001:Strip(
string str,
optional string stripchars,
out retval string result)
Name |
Description |
str |
the string
|
stripchars |
set of characters to strip
|
result |
the new string
|
#StringUtils.Substring(null, *) = null
#StringUtils.Substring("", *) = null
#StringUtils.Substring("abc", 0) = "abc"
#StringUtils.Substring("abc", 2) = "c"
#StringUtils.Substring("abc", 4) = null
#StringUtils.Substring("abc", -2) = "bc"
#StringUtils.Substring("abc", -4) = "abc"
#StringUtils.Substring(null, *, *) = null
#StringUtils.Substring("", * , *) = null;
#StringUtils.Substring("abc", 0, 2) = "ab"
#StringUtils.Substring("abc", 2, 0) = null
#StringUtils.Substring("abc", 2, 4) = "c"
#StringUtils.Substring("abc", 4, 6) = null
#StringUtils.Substring("abc", 2, 2) = null
#StringUtils.Substring("abc", -2, -1) = "b"
#StringUtils.Substring("abc", -4, 2) = "ab"
string FSCEXPEXT@1.1001:Substring(
string str,
integer startindex,
optional integer endindex,
out optional retval string result)
Name |
Description |
str |
the string
|
startindex |
index of start of substring
|
endindex |
index of end of of substring
|
result |
the new substring
|
FSCEXPEXT@1.1001:SubstringAfter
#StringUtils.SubstringAfter(null, *) = null
#StringUtils.SubstringAfter("", *) = null
#StringUtils.SubstringAfter(*, null) = null
#StringUtils.SubstringAfter("abc", "a") = "bc"
#StringUtils.SubstringAfter("abcba", "b") = "cba"
#StringUtils.SubstringAfter("abc", "c") = null
#StringUtils.SubstringAfter("abc", "d") = null
#StringUtils.SubstringAfter("abcba", "B", ignorecase: true) = "cba"
string FSCEXPEXT@1.1001:SubstringAfter(
string str,
string separator,
out retval string result,
optional boolean ignorecase)
Name |
Description |
str |
the string
|
separator |
the separator to search
|
result |
the new substring
|
ignorecase |
compare case insensitive
|
FSCEXPEXT@1.1001:SubstringAfterLast
#StringUtils.SubstringAfterLast(null, *) = null
#StringUtils.SubstringAfterLast("", *) = null
#StringUtils.SubstringAfterLast(*, "") = null
#StringUtils.SubstringAfterLast(*, null) = null
#StringUtils.SubstringAfterLast("abc", "a") = "bc"
#StringUtils.SubstringAfterLast("abcba", "b") = "a"
#StringUtils.SubstringAfterLast("abc", "c") = null
#StringUtils.SubstringAfterLast("a", "a") = null
#StringUtils.SubstringAfterLast("a", "z") = null
#StringUtils.SubstringAfterLast("abcba", "B", ignorecase: true) = "a"
string FSCEXPEXT@1.1001:SubstringAfterLast(
string str,
string separator,
out retval string result,
optional boolean ignorecase)
Name |
Description |
str |
the string
|
separator |
the separator to search
|
result |
the new substring
|
ignorecase |
compare case insensitive
|
FSCEXPEXT@1.1001:SubstringBefore
#StringUtils.SubstringBefore(null, *) = null
#StringUtils.SubstringBefore("", *) = null
#StringUtils.SubstringBefore("abc", "a") = null
#StringUtils.SubstringBefore("abcba", "b") = "a"
#StringUtils.SubstringBefore("abc", "c") = "ab"
#StringUtils.SubstringBefore("abc", "d") = "abc"
#StringUtils.SubstringBefore("abc", "") = "abc"
#StringUtils.SubstringBefore("abc", null) = "abc"
#StringUtils.SubstringBefore("abC", "c", ignorecase: true) = "ab"
string FSCEXPEXT@1.1001:SubstringBefore(
string str,
string separator,
out retval string result,
optional boolean ignorecase)
Name |
Description |
str |
the string
|
separator |
the separator to search
|
result |
the new substring
|
ignorecase |
compare case insensitive
|
FSCEXPEXT@1.1001:SubstringBeforeLast
#StringUtils.SubstringBeforeLast(null, *) = null
#StringUtils.SubstringBeforeLast("", *) = null
#StringUtils.SubstringBeforeLast("abcba", "b") = "abc"
#StringUtils.SubstringBeforeLast("abc", "c") = "ab"
#StringUtils.SubstringBeforeLast("a", "a") = null
#StringUtils.SubstringBeforeLast("a", "z") = "a"
#StringUtils.SubstringBeforeLast("a", null) = "a"
#StringUtils.SubstringBeforeLast("a", "") = "a"
#StringUtils.SubstringBeforeLast("abcBa", "b", ignorecase: true) = "abc"
string FSCEXPEXT@1.1001:SubstringBeforeLast(
string str,
string separator,
out retval string result,
optional boolean ignorecase)
Name |
Description |
str |
the string
|
separator |
the separator to search
|
result |
the new substring
|
ignorecase |
compare case insensitive
|
FSCEXPEXT@1.1001:SubstringBetween
#StringUtils.SubstringBetween("wx[b]yz", "[", "]") = "b"
#StringUtils.SubstringBetween(null, *, *) = null
#StringUtils.SubstringBetween(*, null, *) = null
#StringUtils.SubstringBetween(*, *, null) = null
#StringUtils.SubstringBetween("", "", "") = null
#StringUtils.SubstringBetween("", "", "]") = null
#StringUtils.SubstringBetween("", "[", "]") = null
#StringUtils.SubstringBetween("yabcz", "", "") = null
#StringUtils.SubstringBetween("yabcz", "y", "z") = "abc"
#StringUtils.SubstringBetween("yabcz", "y", "x") = null
#StringUtils.SubstringBetween("yabczyabcz", "y", "z") = "abc"
#StringUtils.SubstringBetween("yabczyabcz", "Ya", "Z", ignorecase: true) = "bc"
string FSCEXPEXT@1.1001:SubstringBetween(
string str,
string openstr,
string closestr,
out retval string result,
optional boolean ignorecase)
Name |
Description |
str |
the string
|
openstr |
the open string to search
|
closestr |
the close string to search
|
result |
the substring
|
ignorecase |
compare case insensitive
|
FSCEXPEXT@1.1001:SubstringsBetween
#StringUtils.SubstringsBetween("[a][b][c]", "[", "]") = ["a","b","c"]
#StringUtils.SubstringsBetween(null, *, *) = null
#StringUtils.SubstringsBetween(*, null, *) = null
#StringUtils.SubstringsBetween(*, *, null) = null
#StringUtils.SubstringsBetween("", "[", "]") = null
#StringUtils.SubstringsBetween("yabzyacz", "Ya", "Z", ignorecase: true) = ["b","c"]
string[] FSCEXPEXT@1.1001:SubstringsBetween(
string str,
string openstr,
string closestr,
out retval string[] result,
optional boolean ignorecase)
Name |
Description |
str |
the string
|
openstr |
the open string to search
|
closestr |
the close string to search
|
result |
the substrings
|
ignorecase |
compare case insensitive
|
#StringUtils.Trim(null) = null
#StringUtils.Trim("") = null
#StringUtils.Trim(" ") = null
#StringUtils.Trim("abc") = "abc"
#StringUtils.Trim(" abc ") = "abc"
string FSCEXPEXT@1.1001:Trim(
string str,
out retval string result)
Name |
Description |
str |
the string
|
result |
the boolean result
|
#StringUtils.UpperCase(null) = null
#StringUtils.UpperCase("") = null
#StringUtils.UpperCase("aBc") = "ABC"
string FSCEXPEXT@1.1001:UpperCase(
string str,
out retval string result)
Name |
Description |
str |
the string
|
result |
the new string in upper case.
|