PathCommon.opOpAssign

Concatenate the path other to this path.

  1. void opOpAssign(InStringType str)
  2. void opOpAssign(PathType other)
    mixintemplate PathCommon(PathType, StringType, alias theSeparator, alias theCaseSensitivity)
    void
    opOpAssign
    (
    string op
    )
    (
    auto ref in PathType other
    )
    if (
    op == "~"
    )
    if (
    isSomeString!StringType &&
    isSomeChar!(typeof(theSeparator))
    )

Examples

assertEqual(PathType() ~ "hello", PathType("hello"));
assertEqual(PathType("") ~ "hello", PathType("hello"));
assertEqual(PathType(".") ~ "hello", PathType("hello"));
assertEqual(PosixPath("/") ~ "hello", PosixPath("/hello"));
assertEqual(WindowsPath("/") ~ "hello", WindowsPath(`\hello`));
assertEqual(PosixPath("/") ~ "hello" ~ "world", PosixPath("/hello/world"));
assertEqual(WindowsPath(`C:\`) ~ "hello" ~ "world", WindowsPath(`C:\hello\world`));

Meta