/** * Deterimines if a character is an NCName (Non-Colonised Name) start character. * * @param codePoint The code point of the character to be tested. For UTF-8 and UTF-16 * characters the code point corresponds to the value of the char that represents the * character. * @return {@code true} if {@code codePoint} is a NCName start character, otherwise {@code * false}. */ public static boolean isNCNameStartChar(int codePoint) { return codePoint != ':' && isXMLNameStartCharacter(codePoint); }
/** * Deterimines if a character is an NCName (Non-Colonised Name) start character. * * @param codePoint The code point of the character to be tested. For UTF-8 and UTF-16 * characters the code point corresponds to the value of the char that represents the * character. * @return {@code true} if {@code codePoint} is a NCName start character, otherwise {@code * false}. */ public static boolean isNCNameStartChar(int codePoint) { return codePoint != ':' && isXMLNameStartCharacter(codePoint); }
/** * Deterimines if a character is an NCName (Non-Colonised Name) start character. * @param codePoint The code point of the character to be tested. For UTF-8 and UTF-16 characters the code point * corresponds to the value of the char that represents the character. * @return <code>true</code> if <code>codePoint</code> is a NCName start character, otherwise <code>false</code>. */ public static boolean isNCNameStartChar(int codePoint) { return codePoint != ':' && isXMLNameStartCharacter(codePoint); }
/** * Deterimines if a character is an NCName (Non-Colonised Name) start character. * * @param codePoint The code point of the character to be tested. For UTF-8 and UTF-16 * characters the code point corresponds to the value of the char that represents the * character. * @return {@code true} if {@code codePoint} is a NCName start character, otherwise {@code * false}. */ public static boolean isNCNameStartChar(int codePoint) { return codePoint != ':' && isXMLNameStartCharacter(codePoint); }
/** * Determines if a character is an XML name character. * * @param codePoint * The code point of the character to be tested. For UTF-8 and UTF-16 * characters the code point corresponds to the value of the char * that represents the character. * @return {@code true} if {@code codePoint} is an XML name start character, * otherwise {@code false} */ public static boolean isXMLNameChar(int codePoint) { return isXMLNameStartCharacter(codePoint) || codePoint == '-' || codePoint == '.' || codePoint >= '0' && codePoint <= '9' || codePoint == 0xB7 || codePoint >= 0x0300 && codePoint <= 0x036F || codePoint >= 0x203F && codePoint <= 0x2040; }
/** * Determines if a character is an XML name character. * @param codePoint The code point of the character to be tested. For UTF-8 and UTF-16 characters the code point * corresponds to the value of the char that represents the character. * @return <code>true</code> if <code>codePoint</code> is an XML name start character, otherwise <code>false</code> */ public static boolean isXMLNameChar(int codePoint) { return isXMLNameStartCharacter(codePoint) || codePoint == '-' || codePoint == '.' || codePoint >= '0' && codePoint <= '9' || codePoint == 0xB7 || codePoint >= 0x0300 && codePoint <= 0x036F || codePoint >= 0x203F && codePoint <= 0x2040; }
/** * Determines if a character is an XML name character. * * @param codePoint The code point of the character to be tested. For UTF-8 and UTF-16 * characters the code point corresponds to the value of the char that represents the * character. * @return {@code true} if {@code codePoint} is an XML name start character, otherwise {@code * false} */ public static boolean isXMLNameChar(int codePoint) { return isXMLNameStartCharacter(codePoint) || codePoint == '-' || codePoint == '.' || codePoint >= '0' && codePoint <= '9' || codePoint == 0xB7 || codePoint >= 0x0300 && codePoint <= 0x036F || codePoint >= 0x203F && codePoint <= 0x2040; }
/** * Determines if a character is an XML name character. * * @param codePoint The code point of the character to be tested. For UTF-8 and UTF-16 * characters the code point corresponds to the value of the char that represents the * character. * @return {@code true} if {@code codePoint} is an XML name start character, otherwise {@code * false} */ public static boolean isXMLNameChar(int codePoint) { return isXMLNameStartCharacter(codePoint) || codePoint == '-' || codePoint == '.' || codePoint >= '0' && codePoint <= '9' || codePoint == 0xB7 || codePoint >= 0x0300 && codePoint <= 0x036F || codePoint >= 0x203F && codePoint <= 0x2040; }
/** * Deterimines if a character is an NCName (Non-Colonised Name) start * character. * * @param codePoint * The code point of the character to be tested. For UTF-8 and UTF-16 * characters the code point corresponds to the value of the char * that represents the character. * @return {@code true} if {@code codePoint} is a NCName start character, * otherwise {@code false}. */ public static boolean isNCNameStartChar(int codePoint) { return codePoint != ':' && isXMLNameStartCharacter(codePoint); }
/** * Determines if a character is an XML name character. * * @param codePoint The code point of the character to be tested. For UTF-8 and UTF-16 * characters the code point corresponds to the value of the char that represents the * character. * @return {@code true} if {@code codePoint} is an XML name start character, otherwise {@code * false} */ public static boolean isXMLNameChar(int codePoint) { return isXMLNameStartCharacter(codePoint) || codePoint == '-' || codePoint == '.' || codePoint >= '0' && codePoint <= '9' || codePoint == 0xB7 || codePoint >= 0x0300 && codePoint <= 0x036F || codePoint >= 0x203F && codePoint <= 0x2040; }
} else { if (!inNCName) { if (!isXMLNameStartCharacter(codePoint)) { return false;
} else { if (!inNCName) { if (!isXMLNameStartCharacter(codePoint)) { return false;
if(!isXMLNameStartCharacter(codePoint)) { return false;
} else { if (!inNCName) { if (!isXMLNameStartCharacter(codePoint)) { return false;
} else { if (!inNCName) { if (!isXMLNameStartCharacter(codePoint)) { return false;