开发者

unicode letter or character frequency in php or vb.net

AM doing a letter frequency analyzer program just like this website 开发者_开发问答http://www.characterfrequencyanalyzer.com/, but i don't know the right algorithm. Of course simple looping should work if it where just english letters, but the trick is it should work with unicode letters like arabic ,chinese etc.

how do i do this? if i can get sample code in vb.net or php, or an algol, i would be thankful.

thanks


well ... maybe you should ask yourself more prcisely what it really is that you want to measure, as chinese got no 'letters' for example.

why not just using an associative array (character code -> counter)?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜