Class TextExecutableLibrary
Provides string construction, formatting, replacement, casing, and hashing helpers for Flow graphs.
[CeresGroup("Text")]
public class TextExecutableLibrary : ExecutableFunctionLibrary
- Inheritance
-
TextExecutableLibrary
- Inherited Members
Constructors
TextExecutableLibrary()
public TextExecutableLibrary()
Methods
CollectExecutableFunctions()
Collect all static executable functions in this library
protected override void CollectExecutableFunctions()
Flow_StringConcat(string[])
Concatenates all input strings into a single string.
[ExecutableFunction(ExecuteInDependency = true)]
[CeresLabel("Concat String")]
public static string Flow_StringConcat(string[] values)
Parameters
valuesstring[]Strings to concatenate.
Returns
- string
The concatenated string.
Flow_StringFormat(string, object[])
Formats a string with an object array of arguments.
[ExecutableFunction(ExecuteInDependency = true)]
[CeresLabel("Format String")]
public static string Flow_StringFormat(string separator, object[] arguments)
Parameters
separatorstringThe composite format string.
argumentsobject[]Arguments used by the format string.
Returns
- string
The formatted string.
Flow_StringFormatOneArgument(string, object)
Formats a string with one argument at placeholder {0}.
[ExecutableFunction(ExecuteInDependency = true)]
[CeresLabel("Format String With One Argument")]
public static string Flow_StringFormatOneArgument(string separator, object argument)
Parameters
Returns
Flow_StringFormatThreeArguments(string, object, object, object)
Formats a string with three arguments at placeholders {0}, {1}, and {2}.
[ExecutableFunction(ExecuteInDependency = true)]
[CeresLabel("Format String With Three Arguments")]
public static string Flow_StringFormatThreeArguments(string separator, object argument0, object argument1, object argument2)
Parameters
Returns
Flow_StringFormatTwoArguments(string, object, object)
Formats a string with two arguments at placeholders {0} and {1}.
[ExecutableFunction(ExecuteInDependency = true)]
[CeresLabel("Format String With Two Arguments")]
public static string Flow_StringFormatTwoArguments(string separator, object argument0, object argument1)
Parameters
Returns
Flow_StringHash64(string)
Computes a 64-bit hash for the string.
[ExecutableFunction(IsScriptMethod = true, IsSelfTarget = true, ExecuteInDependency = true)]
[CeresLabel("Hash64")]
public static ulong Flow_StringHash64(string stringValue)
Parameters
stringValuestringThe source string.
Returns
- ulong
The 64-bit hash value.
Flow_StringJoin(string, string[])
Joins all input strings using the separator.
[ExecutableFunction(ExecuteInDependency = true)]
[CeresLabel("Join String")]
public static string Flow_StringJoin(string separator, string[] values)
Parameters
Returns
- string
The joined string.
Flow_StringReplace(string, string, string)
Replaces every occurrence of a substring with a new value.
[ExecutableFunction(IsScriptMethod = true, IsSelfTarget = true, ExecuteInDependency = true, SearchAliases = "Replace String")]
[CeresLabel("Replace")]
public static string Flow_StringReplace(string stringValue, string oldValue, string newValue)
Parameters
stringValuestringThe source string.
oldValuestringThe substring to replace.
newValuestringThe replacement string.
Returns
- string
The updated string.
Flow_StringToLower(string)
Converts a string to lower case using the current culture.
[ExecutableFunction(IsScriptMethod = true, IsSelfTarget = true, ExecuteInDependency = true)]
[CeresLabel("To Lower")]
public static string Flow_StringToLower(string stringValue)
Parameters
stringValuestringThe source string.
Returns
- string
The lower-case string.
Flow_StringToUpper(string)
Converts a string to upper case using the current culture.
[ExecutableFunction(IsScriptMethod = true, IsSelfTarget = true, ExecuteInDependency = true)]
[CeresLabel("To Upper")]
public static string Flow_StringToUpper(string stringValue)
Parameters
stringValuestringThe source string.
Returns
- string
The upper-case string.