本文整理了Java中org.apache.xml.utils.URI.isAlphanum()
方法的一些代码示例,展示了URI.isAlphanum()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。URI.isAlphanum()
方法的具体详情如下:
包路径:org.apache.xml.utils.URI
类名称:URI
方法名:isAlphanum
[英]Determine whether a char is an alphanumeric: 0-9, a-z or A-Z
[中]确定字符是字母数字:0-9、a-z还是a-z
代码示例来源:origin: robovm/robovm
/**
* Determine whether a char is an unreserved character.
*
*
* @param p_char the character to check
* @return true if the char is unreserved, false otherwise
*/
private static boolean isUnreservedCharacter(char p_char)
{
return (isAlphanum(p_char) || MARK_CHARACTERS.indexOf(p_char) != -1);
}
代码示例来源:origin: xalan/xalan
/**
* Determine whether a char is an unreserved character.
*
*
* @param p_char the character to check
* @return true if the char is unreserved, false otherwise
*/
private static boolean isUnreservedCharacter(char p_char)
{
return (isAlphanum(p_char) || MARK_CHARACTERS.indexOf(p_char) != -1);
}
代码示例来源:origin: xalan/xalan
/**
* Determine whether a scheme conforms to the rules for a scheme name.
* A scheme is conformant if it starts with an alphanumeric, and
* contains only alphanumerics, '+','-' and '.'.
*
*
* @param p_scheme The sheme name to check
* @return true if the scheme is conformant, false otherwise
*/
public static boolean isConformantSchemeName(String p_scheme)
{
if (p_scheme == null || p_scheme.trim().length() == 0)
{
return false;
}
if (!isAlpha(p_scheme.charAt(0)))
{
return false;
}
char testChar;
for (int i = 1; i < p_scheme.length(); i++)
{
testChar = p_scheme.charAt(i);
if (!isAlphanum(testChar) && SCHEME_CHARACTERS.indexOf(testChar) == -1)
{
return false;
}
}
return true;
}
代码示例来源:origin: robovm/robovm
/**
* Determine whether a scheme conforms to the rules for a scheme name.
* A scheme is conformant if it starts with an alphanumeric, and
* contains only alphanumerics, '+','-' and '.'.
*
*
* @param p_scheme The sheme name to check
* @return true if the scheme is conformant, false otherwise
*/
public static boolean isConformantSchemeName(String p_scheme)
{
if (p_scheme == null || p_scheme.trim().length() == 0)
{
return false;
}
if (!isAlpha(p_scheme.charAt(0)))
{
return false;
}
char testChar;
for (int i = 1; i < p_scheme.length(); i++)
{
testChar = p_scheme.charAt(i);
if (!isAlphanum(testChar) && SCHEME_CHARACTERS.indexOf(testChar) == -1)
{
return false;
}
}
return true;
}
代码示例来源:origin: robovm/robovm
if (!isAlphanum(address.charAt(i - 1)))
if (i + 1 < addrLength &&!isAlphanum(address.charAt(i + 1)))
else if (!isAlphanum(testChar) && testChar != '-')
代码示例来源:origin: xalan/xalan
if (!isAlphanum(address.charAt(i - 1)))
if (i + 1 < addrLength &&!isAlphanum(address.charAt(i + 1)))
else if (!isAlphanum(testChar) && testChar != '-')
代码示例来源:origin: MobiVM/robovm
/**
* Determine whether a char is an unreserved character.
*
*
* @param p_char the character to check
* @return true if the char is unreserved, false otherwise
*/
private static boolean isUnreservedCharacter(char p_char)
{
return (isAlphanum(p_char) || MARK_CHARACTERS.indexOf(p_char) != -1);
}
代码示例来源:origin: com.bugvm/bugvm-rt
/**
* Determine whether a char is an unreserved character.
*
*
* @param p_char the character to check
* @return true if the char is unreserved, false otherwise
*/
private static boolean isUnreservedCharacter(char p_char)
{
return (isAlphanum(p_char) || MARK_CHARACTERS.indexOf(p_char) != -1);
}
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
/**
* Determine whether a char is an unreserved character.
*
*
* @param p_char the character to check
* @return true if the char is unreserved, false otherwise
*/
private static boolean isUnreservedCharacter(char p_char)
{
return (isAlphanum(p_char) || MARK_CHARACTERS.indexOf(p_char) != -1);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xalan
/**
* Determine whether a char is an unreserved character.
*
*
* @param p_char the character to check
* @return true if the char is unreserved, false otherwise
*/
private static boolean isUnreservedCharacter(char p_char)
{
return (isAlphanum(p_char) || MARK_CHARACTERS.indexOf(p_char) != -1);
}
代码示例来源:origin: org.apache.xalan/com.springsource.org.apache.xalan
/**
* Determine whether a char is an unreserved character.
*
*
* @param p_char the character to check
* @return true if the char is unreserved, false otherwise
*/
private static boolean isUnreservedCharacter(char p_char)
{
return (isAlphanum(p_char) || MARK_CHARACTERS.indexOf(p_char) != -1);
}
代码示例来源:origin: com.gluonhq/robovm-rt
/**
* Determine whether a char is an unreserved character.
*
*
* @param p_char the character to check
* @return true if the char is unreserved, false otherwise
*/
private static boolean isUnreservedCharacter(char p_char)
{
return (isAlphanum(p_char) || MARK_CHARACTERS.indexOf(p_char) != -1);
}
代码示例来源:origin: ibinti/bugvm
/**
* Determine whether a char is an unreserved character.
*
*
* @param p_char the character to check
* @return true if the char is unreserved, false otherwise
*/
private static boolean isUnreservedCharacter(char p_char)
{
return (isAlphanum(p_char) || MARK_CHARACTERS.indexOf(p_char) != -1);
}
代码示例来源:origin: org.apache.karaf.bundles/org.apache.karaf.bundles.xalan-2.7.1
/**
* Determine whether a char is an unreserved character.
*
*
* @param p_char the character to check
* @return true if the char is unreserved, false otherwise
*/
private static boolean isUnreservedCharacter(char p_char)
{
return (isAlphanum(p_char) || MARK_CHARACTERS.indexOf(p_char) != -1);
}
代码示例来源:origin: FlexoVM/flexovm
/**
* Determine whether a char is an unreserved character.
*
*
* @param p_char the character to check
* @return true if the char is unreserved, false otherwise
*/
private static boolean isUnreservedCharacter(char p_char)
{
return (isAlphanum(p_char) || MARK_CHARACTERS.indexOf(p_char) != -1);
}
代码示例来源:origin: ibinti/bugvm
/**
* Determine whether a scheme conforms to the rules for a scheme name.
* A scheme is conformant if it starts with an alphanumeric, and
* contains only alphanumerics, '+','-' and '.'.
*
*
* @param p_scheme The sheme name to check
* @return true if the scheme is conformant, false otherwise
*/
public static boolean isConformantSchemeName(String p_scheme)
{
if (p_scheme == null || p_scheme.trim().length() == 0)
{
return false;
}
if (!isAlpha(p_scheme.charAt(0)))
{
return false;
}
char testChar;
for (int i = 1; i < p_scheme.length(); i++)
{
testChar = p_scheme.charAt(i);
if (!isAlphanum(testChar) && SCHEME_CHARACTERS.indexOf(testChar) == -1)
{
return false;
}
}
return true;
}
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
/**
* Determine whether a scheme conforms to the rules for a scheme name.
* A scheme is conformant if it starts with an alphanumeric, and
* contains only alphanumerics, '+','-' and '.'.
*
*
* @param p_scheme The sheme name to check
* @return true if the scheme is conformant, false otherwise
*/
public static boolean isConformantSchemeName(String p_scheme)
{
if (p_scheme == null || p_scheme.trim().length() == 0)
{
return false;
}
if (!isAlpha(p_scheme.charAt(0)))
{
return false;
}
char testChar;
for (int i = 1; i < p_scheme.length(); i++)
{
testChar = p_scheme.charAt(i);
if (!isAlphanum(testChar) && SCHEME_CHARACTERS.indexOf(testChar) == -1)
{
return false;
}
}
return true;
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xalan
/**
* Determine whether a scheme conforms to the rules for a scheme name.
* A scheme is conformant if it starts with an alphanumeric, and
* contains only alphanumerics, '+','-' and '.'.
*
*
* @param p_scheme The sheme name to check
* @return true if the scheme is conformant, false otherwise
*/
public static boolean isConformantSchemeName(String p_scheme)
{
if (p_scheme == null || p_scheme.trim().length() == 0)
{
return false;
}
if (!isAlpha(p_scheme.charAt(0)))
{
return false;
}
char testChar;
for (int i = 1; i < p_scheme.length(); i++)
{
testChar = p_scheme.charAt(i);
if (!isAlphanum(testChar) && SCHEME_CHARACTERS.indexOf(testChar) == -1)
{
return false;
}
}
return true;
}
代码示例来源:origin: com.bugvm/bugvm-rt
/**
* Determine whether a scheme conforms to the rules for a scheme name.
* A scheme is conformant if it starts with an alphanumeric, and
* contains only alphanumerics, '+','-' and '.'.
*
*
* @param p_scheme The sheme name to check
* @return true if the scheme is conformant, false otherwise
*/
public static boolean isConformantSchemeName(String p_scheme)
{
if (p_scheme == null || p_scheme.trim().length() == 0)
{
return false;
}
if (!isAlpha(p_scheme.charAt(0)))
{
return false;
}
char testChar;
for (int i = 1; i < p_scheme.length(); i++)
{
testChar = p_scheme.charAt(i);
if (!isAlphanum(testChar) && SCHEME_CHARACTERS.indexOf(testChar) == -1)
{
return false;
}
}
return true;
}
代码示例来源:origin: FlexoVM/flexovm
/**
* Determine whether a scheme conforms to the rules for a scheme name.
* A scheme is conformant if it starts with an alphanumeric, and
* contains only alphanumerics, '+','-' and '.'.
*
*
* @param p_scheme The sheme name to check
* @return true if the scheme is conformant, false otherwise
*/
public static boolean isConformantSchemeName(String p_scheme)
{
if (p_scheme == null || p_scheme.trim().length() == 0)
{
return false;
}
if (!isAlpha(p_scheme.charAt(0)))
{
return false;
}
char testChar;
for (int i = 1; i < p_scheme.length(); i++)
{
testChar = p_scheme.charAt(i);
if (!isAlphanum(testChar) && SCHEME_CHARACTERS.indexOf(testChar) == -1)
{
return false;
}
}
return true;
}
内容来源于网络,如有侵权,请联系作者删除!