nextWord

Returns the next word within range. Words are spliited using the White characters, which are never included.

  1. auto nextWord(ref Range range, T charTester)
  2. auto nextWord(ref Range range)
    nextWord
    pure @safe
    (
    Range
    )
    (
    ref Range range
    )

Examples

auto text = " lorem ipsum 123456";
assert(text.nextWord == "lorem");
assert(text.nextWord == "ipsum");
assert(text.nextWord == "123456");

Meta