Join method.

This method is used to connect array items into a single string using a separator.


_join()

Join an array to a string using a separator.

  • Name
    this
    Type
    object
    Description

    Any object of type array<bool>, array<string>, array<float>, array<int> or array<color>.

  • Name
    sep
    Type
    string
    Description

    A string separator. Optional. The default is , (pipe).

  • Name
    returns
    Type
    string
    Description

    A joined string.


Split methods.

There are three types of split methods - regular split, split pair, and split shift.

_commaSplit()

Split a comma separated string into an array.

  • Name
    this
    Type
    object
    Description

    Any object of type string.

  • Name
    returns
    Type
    array<string>
    Description

    A string array.


_commaSplit()

Split a comma separated string into an array, and return the given index value.

  • Name
    this
    Type
    object
    Description

    Any object of type string.

  • Name
    idx
    Type
    int
    Description

    The index location of a value.

  • Name
    returns
    Type
    string
    Description

    A string.


_commaSplitPair()

Split a comma separated string into an array, and return the first two items.

  • Name
    this
    Type
    object
    Description

    Any object of type string.

  • Name
    returns
    Type
    tuple
    Description

    A tuple of two string values.


_commaSplitShift()

Split a comma separated string into an array, and shift the first value out.

  • Name
    this
    Type
    object
    Description

    Any object of type string.

  • Name
    returns
    Type
    array<string>
    Description

    A string array, excluding the first item.


_pipeSplit()

Split a pipe separated string into an array.

  • Name
    this
    Type
    object
    Description

    Any object of type string.

  • Name
    returns
    Type
    array<string>
    Description

    A string array.


_pipeSplit()

Split a pipe separated string into an array, and return the given index value.

  • Name
    this
    Type
    object
    Description

    Any object of type string.

  • Name
    idx
    Type
    int
    Description

    The index location of a value.

  • Name
    returns
    Type
    string
    Description

    A string.


_pipeSplitPair()

Split a pipe separated string into an array, and return the first two items.

  • Name
    this
    Type
    object
    Description

    Any object of type string.

  • Name
    returns
    Type
    tuple
    Description

    A tuple of two string values.


_pipeSplitShift()

Split a pipe separated string into an array, and shift the first value out.

  • Name
    this
    Type
    object
    Description

    Any object of type string.

  • Name
    returns
    Type
    array<string>
    Description

    A string array, excluding the first item.


_colonSplit()

Split a colon separated string into an array.

  • Name
    this
    Type
    object
    Description

    Any object of type string.

  • Name
    returns
    Type
    array<string>
    Description

    A string array.


_colonSplit()

Split a colon separated string into an array, and return the given index value.

  • Name
    this
    Type
    object
    Description

    Any object of type string.

  • Name
    idx
    Type
    int
    Description

    The index location of a value.

  • Name
    returns
    Type
    string
    Description

    A string.


_colonSplitPair()

Split a colon separated string into an array, and return the first two items.

  • Name
    this
    Type
    object
    Description

    Any object of type string.

  • Name
    returns
    Type
    tuple
    Description

    A tuple of two string values.


_colonSplitShift()

Split a colon separated string into an array, and shift the first value out.

  • Name
    this
    Type
    object
    Description

    Any object of type string.

  • Name
    returns
    Type
    array<string>
    Description

    A string array, excluding the first item.