countKatakana() public static method

Count number of katakana within the specified string. Chōonpu (http://en.wikipedia.org/wiki/Chōonpu) is considered as Katakana here.
public static countKatakana ( string $str ) : integer
$str string The input string.
return integer Returns the number of katakana
Example #1
0
 public function testCountKatakanaWhenSpecialKatakana()
 {
     $result = Analyzer::countKatakana('㋐㌒㌕');
     $this->assertEquals(3, $result);
 }