コード例 #1
0
 /**
  * Transliterate a UTF-8 value to ASCII.
  *
  * @param  string  $value
  * @return string
  */
 public static function ascii($value)
 {
     return StaticStringy::toAscii($value);
 }
コード例 #2
0
ファイル: StringyLoader.php プロジェクト: lablog/stringy
 public function toAscii($string)
 {
     return Stringy::toAscii($string);
 }
コード例 #3
0
 /**
  * @dataProvider toAsciiProvider()
  */
 public function testToAscii($expected, $str, $removeUnsupported = true)
 {
     $result = S::toAscii($str, $removeUnsupported);
     $this->assertInternalType('string', $result);
     $this->assertEquals($expected, $result);
 }
コード例 #4
0
 /**
  * @dataProvider toAsciiProvider()
  */
 public function testToAscii($expected, $str)
 {
     $result = S::toAscii($str);
     $this->assertInternalType('string', $result);
     $this->assertEquals($expected, $result);
 }