Esempio n. 1
0
 /**
  * Returns a case swapped version of the string.
  *
  * @return Stringy Object whose $str has each character's case swapped
  */
 public function swapCase()
 {
     $stringy = static::create($this->str, $this->encoding);
     $stringy->str = UTF8::swapCase($stringy->str, $stringy->encoding);
     return $stringy;
 }