public function testFindWords() { $this->eq(s::findWords('a b c'), array(0 => 'a', 2 => 'b', 4 => 'c')); $this->eq(s::findWords(''), array()); $this->eq(s::findWords(" \n ", "\n"), array(2 => "\n")); }
public function findWords($chars = null) { return new XArray(s::findWords($this->value, self::unwrap($chars))); }