예제 #1
0
 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"));
 }
예제 #2
0
 public function findWords($chars = null)
 {
     return new XArray(s::findWords($this->value, self::unwrap($chars)));
 }