org.apache.xml.utils.URI.isAlpha()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(8.9k)|赞(0)|评价(0)|浏览(138)

本文整理了Java中org.apache.xml.utils.URI.isAlpha()方法的一些代码示例,展示了URI.isAlpha()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。URI.isAlpha()方法的具体详情如下:
包路径:org.apache.xml.utils.URI
类名称:URI
方法名:isAlpha

URI.isAlpha介绍

[英]Determine whether a char is an alphabetic character: a-z or A-Z
[中]确定字符是字母字符:a-z还是a-z

代码示例

代码示例来源:origin: xalan/xalan

/**
 * Determine whether a char is an alphanumeric: 0-9, a-z or A-Z
 *
 *
 * @param p_char the character to check
 * @return true if the char is alphanumeric, false otherwise
 */
private static boolean isAlphanum(char p_char)
{
 return (isAlpha(p_char) || isDigit(p_char));
}

代码示例来源: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

/**
 * Determine whether a char is an alphanumeric: 0-9, a-z or A-Z
 *
 *
 * @param p_char the character to check
 * @return true if the char is alphanumeric, false otherwise
 */
private static boolean isAlphanum(char p_char)
{
 return (isAlpha(p_char) || isDigit(p_char));
}

代码示例来源: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: com.bugvm/bugvm-rt

/**
 * Determine whether a char is an alphanumeric: 0-9, a-z or A-Z
 *
 *
 * @param p_char the character to check
 * @return true if the char is alphanumeric, false otherwise
 */
private static boolean isAlphanum(char p_char)
{
 return (isAlpha(p_char) || isDigit(p_char));
}

代码示例来源: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.xalan/com.springsource.org.apache.xalan

/**
 * Determine whether a char is an alphanumeric: 0-9, a-z or A-Z
 *
 *
 * @param p_char the character to check
 * @return true if the char is alphanumeric, false otherwise
 */
private static boolean isAlphanum(char p_char)
{
 return (isAlpha(p_char) || isDigit(p_char));
}

代码示例来源:origin: MobiVM/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: MobiVM/robovm

/**
 * Determine whether a char is an alphanumeric: 0-9, a-z or A-Z
 *
 *
 * @param p_char the character to check
 * @return true if the char is alphanumeric, false otherwise
 */
private static boolean isAlphanum(char p_char)
{
 return (isAlpha(p_char) || isDigit(p_char));
}

代码示例来源: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.gluonhq/robovm-rt

/**
 * Determine whether a char is an alphanumeric: 0-9, a-z or A-Z
 *
 *
 * @param p_char the character to check
 * @return true if the char is alphanumeric, false otherwise
 */
private static boolean isAlphanum(char p_char)
{
 return (isAlpha(p_char) || isDigit(p_char));
}

代码示例来源: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;
}

代码示例来源:origin: ibinti/bugvm

/**
 * Determine whether a char is an alphanumeric: 0-9, a-z or A-Z
 *
 *
 * @param p_char the character to check
 * @return true if the char is alphanumeric, false otherwise
 */
private static boolean isAlphanum(char p_char)
{
 return (isAlpha(p_char) || isDigit(p_char));
}

代码示例来源:origin: org.apache.xalan/com.springsource.org.apache.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.mobidevelop.robovm/robovm-rt

/**
 * Determine whether a char is an alphanumeric: 0-9, a-z or A-Z
 *
 *
 * @param p_char the character to check
 * @return true if the char is alphanumeric, false otherwise
 */
private static boolean isAlphanum(char p_char)
{
 return (isAlpha(p_char) || isDigit(p_char));
}

代码示例来源: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: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xalan

/**
 * Determine whether a char is an alphanumeric: 0-9, a-z or A-Z
 *
 *
 * @param p_char the character to check
 * @return true if the char is alphanumeric, false otherwise
 */
private static boolean isAlphanum(char p_char)
{
 return (isAlpha(p_char) || isDigit(p_char));
}

代码示例来源:origin: org.apache.karaf.bundles/org.apache.karaf.bundles.xalan-2.7.1

/**
 * Determine whether a char is an alphanumeric: 0-9, a-z or A-Z
 *
 *
 * @param p_char the character to check
 * @return true if the char is alphanumeric, false otherwise
 */
private static boolean isAlphanum(char p_char)
{
 return (isAlpha(p_char) || isDigit(p_char));
}

代码示例来源:origin: FlexoVM/flexovm

/**
 * Determine whether a char is an alphanumeric: 0-9, a-z or A-Z
 *
 *
 * @param p_char the character to check
 * @return true if the char is alphanumeric, false otherwise
 */
private static boolean isAlphanum(char p_char)
{
 return (isAlpha(p_char) || isDigit(p_char));
}

相关文章