Here you can find the source of lengthUCP(String s)
Parameter | Description |
---|---|
s | The string. |
public static int lengthUCP(String s)
//package com.java2s; /* $License$ *//* w ww . j av a 2 s . c o m*/ public class Main { /** * Returns the number of Unicode code points in the given string. * * @param s The string. * * @return The number of Unicode code points. */ public static int lengthUCP(String s) { return s.codePointCount(0, s.length()); } }