开发者

unicode letter or character frequency in php or vb.net

开发者 https://www.devze.com 2023-02-10 09:35 出处:网络
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 wo

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

精彩评论

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

关注公众号