cleanString

  1. string cleanString(string value)
  2. string[] cleanString(string[] pieces)
    @safe nothrow
    string[]
    cleanString
    (
    string[] pieces
    )

Examples

It should return an empty array when the input list is empty

string[] empty;

empty.cleanString.should.equal(empty);

It should remove the " from the begin and end of the string

[`"1"`, `"2"`].cleanString.should.equal([`1`, `2`]);

Meta