Table of Contents

Class TextExecutableLibrary

Namespace
Ceres.Flow.Utilities
Assembly
Ceres.Flow.dll

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

values string[]

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

separator string

The composite format string.

arguments object[]

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

separator string
argument object

Returns

string

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

separator string
argument0 object
argument1 object
argument2 object

Returns

string

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

separator string
argument0 object
argument1 object

Returns

string

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

stringValue string

The 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

separator string

Separator inserted between each value.

values string[]

Strings to join.

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

stringValue string

The source string.

oldValue string

The substring to replace.

newValue string

The 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

stringValue string

The 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

stringValue string

The source string.

Returns

string

The upper-case string.