Options
All
  • Public
  • Public/Protected
  • All
Menu

Module Lists/Paths/mergePaths

Index

Functions

Functions

mergePaths

  • This function can be used to merge two path's together. This becomes useful if you want to work with a dynamic part in form of an array and a static string part. The result will always be a path array. You can specify a separator type for each part of the given path if you merge differently formatted paths.

    It merges stuff like: - "a.path.to." and ["parts","inTheTree"] => ["a", "path", "to", "parts", "inTheTree"] - "a.b." and "c.d.[asdf|id]" => ["a", "b", "", "c", "d", "[asdf|id]" - "a.b" and "c,d" => ["a","b","c","d"] (If $separatorB is set to ",") and so on...

    Parameters

    • pathA: ListPath

      The path to add $pathB to

    • pathB: ListPath

      The path to be added to $pathA

    • Optional separatorA: string

      The separator for string paths in $pathA

    • Optional separatorB: string

      The separator for string paths in $pathB

    Returns TListPathArray

Generated using TypeDoc