wordCount

Returns the word count within the input range. Words are separatedd by ascii whites. input range is not consumed.

size_t
wordCount
(
Range
)
(
Range range
)

Examples

auto text = "1 2 3 4 5 6 7 8 9 \n 10";
assert(text.wordCount == 10);
assert(text == "1 2 3 4 5 6 7 8 9 \n 10");

Meta