Functions

The following functions are available globally.

  • Return a unique key, based on the given source string and optional context.

    A string can be associated with multiple context values, so the context argument can be a serialized comma-separated string or a single string.

    Declaration

    Swift

    public func txGenerateKey(sourceString: String, context: String?) -> String

    Parameters

    sourceString

    the actual string

    context

    an optional context that accompanies the string

    Return Value

    a hash that uniquely identifies the string