/** * Determines if a character is a CJK ideograph or a character typically * used only in CJK text. * * Note: This function cannot handle supplementary characters. To handle all * Unicode characters, including supplementary characters, use the function * {@link #isCjk(int)}. */ public static boolean isCjk(char ch) { return isCjk((int) ch); }
/** * Determines if a character is a CJK ideograph or a character typically * used only in CJK text. * * Note: This function cannot handle supplementary characters. To handle all * Unicode characters, including supplementary characters, use the function * {@link #isCjk(int)}. */ public static boolean isCjk(char ch) { return isCjk((int) ch); }
/** * Determines if a character is a CJK ideograph or a character typically * used only in CJK text. * * Note: This function cannot handle supplementary characters. To handle all * Unicode characters, including supplementary characters, use the function * {@link #isCjk(int)}. */ public static boolean isCjk(char ch) { return isCjk((int) ch); }
/** * Determines if a string is a CJK word. A string is considered to be CJK * if {@link #isCjk(char)} is true for any of its characters. */ public static boolean isCjk(String s) { int len = s.length(); for (int i = 0; i < len; ++i) { if (isCjk(s.codePointAt(i))) { return true; } } return false; }
/** * Determines if a string is a CJK word. A string is considered to be CJK * if {@link #isCjk(char)} is true for any of its characters. */ public static boolean isCjk(String s) { int len = s.length(); for (int i = 0; i < len; ++i) { if (isCjk(s.codePointAt(i))) { return true; } } return false; }
/** * Determines if a string is a CJK word. A string is considered to be CJK * if {@link #isCjk(char)} is true for any of its characters. */ public static boolean isCjk(String s) { int len = s.length(); for (int i = 0; i < len; ++i) { if (isCjk(s.codePointAt(i))) { return true; } } return false; }