Number of Segments in a String
Count the maximal runs of non-space characters in a string. The visual walks the characters and lights up each word start so the count grows only when a space gives way to a letter.
Count the maximal runs of non-space characters in a string. The visual walks the characters and lights up each word start so the count grows only when a space gives way to a letter.