GString.opBinary

A binary operator to allow appending with a Grapheme.

  1. typeof(this) opBinary(Grapheme g)
    struct GString(CharT)
    typeof(this)
    opBinary
    (
    string op : "~"
    )
    (
    Grapheme g
    )
    if (
    isSomeChar!CharT
    )
  2. typeof(this) opBinary(R str)
  3. typeof(this) opBinary(C ch)

Examples

auto t1 = typeof(this)("Test ");
auto t2 = t1 ~ Grapheme("A");
assert(t2.rawString == "Test A");
auto t3 = Grapheme("B") ~ t1;
assert(t3.rawString == "BTest ");

Meta