Package org.need4steed.cccount

Examples of org.need4steed.cccount.Counter.Process()


  @Test
  public void test() {
    String s ="ab弓都𪛖\u9fa5弓t\u9fa5M";
    Counter ct = new Counter();
    ct.Process(s);
    assertEquals(10  , ct.GetNChars());
    assertEquals(6, ct.GetNCjks());
    assertEquals(4, ct.GetNDistinguishable());
    String[] res= {"弓\t2","\u9fa5\t2","都\t1","𪛖\t1"};
    int i = 0;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.