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

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

本文整理了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

  1. /**
  2. * Determine whether a char is an alphanumeric: 0-9, a-z or A-Z
  3. *
  4. *
  5. * @param p_char the character to check
  6. * @return true if the char is alphanumeric, false otherwise
  7. */
  8. private static boolean isAlphanum(char p_char)
  9. {
  10. return (isAlpha(p_char) || isDigit(p_char));
  11. }

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

  1. /**
  2. * Determine whether a scheme conforms to the rules for a scheme name.
  3. * A scheme is conformant if it starts with an alphanumeric, and
  4. * contains only alphanumerics, '+','-' and '.'.
  5. *
  6. *
  7. * @param p_scheme The sheme name to check
  8. * @return true if the scheme is conformant, false otherwise
  9. */
  10. public static boolean isConformantSchemeName(String p_scheme)
  11. {
  12. if (p_scheme == null || p_scheme.trim().length() == 0)
  13. {
  14. return false;
  15. }
  16. if (!isAlpha(p_scheme.charAt(0)))
  17. {
  18. return false;
  19. }
  20. char testChar;
  21. for (int i = 1; i < p_scheme.length(); i++)
  22. {
  23. testChar = p_scheme.charAt(i);
  24. if (!isAlphanum(testChar) && SCHEME_CHARACTERS.indexOf(testChar) == -1)
  25. {
  26. return false;
  27. }
  28. }
  29. return true;
  30. }

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

  1. /**
  2. * Determine whether a scheme conforms to the rules for a scheme name.
  3. * A scheme is conformant if it starts with an alphanumeric, and
  4. * contains only alphanumerics, '+','-' and '.'.
  5. *
  6. *
  7. * @param p_scheme The sheme name to check
  8. * @return true if the scheme is conformant, false otherwise
  9. */
  10. public static boolean isConformantSchemeName(String p_scheme)
  11. {
  12. if (p_scheme == null || p_scheme.trim().length() == 0)
  13. {
  14. return false;
  15. }
  16. if (!isAlpha(p_scheme.charAt(0)))
  17. {
  18. return false;
  19. }
  20. char testChar;
  21. for (int i = 1; i < p_scheme.length(); i++)
  22. {
  23. testChar = p_scheme.charAt(i);
  24. if (!isAlphanum(testChar) && SCHEME_CHARACTERS.indexOf(testChar) == -1)
  25. {
  26. return false;
  27. }
  28. }
  29. return true;
  30. }

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

  1. /**
  2. * Determine whether a char is an alphanumeric: 0-9, a-z or A-Z
  3. *
  4. *
  5. * @param p_char the character to check
  6. * @return true if the char is alphanumeric, false otherwise
  7. */
  8. private static boolean isAlphanum(char p_char)
  9. {
  10. return (isAlpha(p_char) || isDigit(p_char));
  11. }

代码示例来源:origin: com.bugvm/bugvm-rt

  1. /**
  2. * Determine whether a scheme conforms to the rules for a scheme name.
  3. * A scheme is conformant if it starts with an alphanumeric, and
  4. * contains only alphanumerics, '+','-' and '.'.
  5. *
  6. *
  7. * @param p_scheme The sheme name to check
  8. * @return true if the scheme is conformant, false otherwise
  9. */
  10. public static boolean isConformantSchemeName(String p_scheme)
  11. {
  12. if (p_scheme == null || p_scheme.trim().length() == 0)
  13. {
  14. return false;
  15. }
  16. if (!isAlpha(p_scheme.charAt(0)))
  17. {
  18. return false;
  19. }
  20. char testChar;
  21. for (int i = 1; i < p_scheme.length(); i++)
  22. {
  23. testChar = p_scheme.charAt(i);
  24. if (!isAlphanum(testChar) && SCHEME_CHARACTERS.indexOf(testChar) == -1)
  25. {
  26. return false;
  27. }
  28. }
  29. return true;
  30. }

代码示例来源:origin: com.bugvm/bugvm-rt

  1. /**
  2. * Determine whether a char is an alphanumeric: 0-9, a-z or A-Z
  3. *
  4. *
  5. * @param p_char the character to check
  6. * @return true if the char is alphanumeric, false otherwise
  7. */
  8. private static boolean isAlphanum(char p_char)
  9. {
  10. return (isAlpha(p_char) || isDigit(p_char));
  11. }

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

  1. /**
  2. * Determine whether a scheme conforms to the rules for a scheme name.
  3. * A scheme is conformant if it starts with an alphanumeric, and
  4. * contains only alphanumerics, '+','-' and '.'.
  5. *
  6. *
  7. * @param p_scheme The sheme name to check
  8. * @return true if the scheme is conformant, false otherwise
  9. */
  10. public static boolean isConformantSchemeName(String p_scheme)
  11. {
  12. if (p_scheme == null || p_scheme.trim().length() == 0)
  13. {
  14. return false;
  15. }
  16. if (!isAlpha(p_scheme.charAt(0)))
  17. {
  18. return false;
  19. }
  20. char testChar;
  21. for (int i = 1; i < p_scheme.length(); i++)
  22. {
  23. testChar = p_scheme.charAt(i);
  24. if (!isAlphanum(testChar) && SCHEME_CHARACTERS.indexOf(testChar) == -1)
  25. {
  26. return false;
  27. }
  28. }
  29. return true;
  30. }

代码示例来源:origin: org.apache.xalan/com.springsource.org.apache.xalan

  1. /**
  2. * Determine whether a char is an alphanumeric: 0-9, a-z or A-Z
  3. *
  4. *
  5. * @param p_char the character to check
  6. * @return true if the char is alphanumeric, false otherwise
  7. */
  8. private static boolean isAlphanum(char p_char)
  9. {
  10. return (isAlpha(p_char) || isDigit(p_char));
  11. }

代码示例来源:origin: MobiVM/robovm

  1. /**
  2. * Determine whether a scheme conforms to the rules for a scheme name.
  3. * A scheme is conformant if it starts with an alphanumeric, and
  4. * contains only alphanumerics, '+','-' and '.'.
  5. *
  6. *
  7. * @param p_scheme The sheme name to check
  8. * @return true if the scheme is conformant, false otherwise
  9. */
  10. public static boolean isConformantSchemeName(String p_scheme)
  11. {
  12. if (p_scheme == null || p_scheme.trim().length() == 0)
  13. {
  14. return false;
  15. }
  16. if (!isAlpha(p_scheme.charAt(0)))
  17. {
  18. return false;
  19. }
  20. char testChar;
  21. for (int i = 1; i < p_scheme.length(); i++)
  22. {
  23. testChar = p_scheme.charAt(i);
  24. if (!isAlphanum(testChar) && SCHEME_CHARACTERS.indexOf(testChar) == -1)
  25. {
  26. return false;
  27. }
  28. }
  29. return true;
  30. }

代码示例来源:origin: MobiVM/robovm

  1. /**
  2. * Determine whether a char is an alphanumeric: 0-9, a-z or A-Z
  3. *
  4. *
  5. * @param p_char the character to check
  6. * @return true if the char is alphanumeric, false otherwise
  7. */
  8. private static boolean isAlphanum(char p_char)
  9. {
  10. return (isAlpha(p_char) || isDigit(p_char));
  11. }

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

  1. /**
  2. * Determine whether a scheme conforms to the rules for a scheme name.
  3. * A scheme is conformant if it starts with an alphanumeric, and
  4. * contains only alphanumerics, '+','-' and '.'.
  5. *
  6. *
  7. * @param p_scheme The sheme name to check
  8. * @return true if the scheme is conformant, false otherwise
  9. */
  10. public static boolean isConformantSchemeName(String p_scheme)
  11. {
  12. if (p_scheme == null || p_scheme.trim().length() == 0)
  13. {
  14. return false;
  15. }
  16. if (!isAlpha(p_scheme.charAt(0)))
  17. {
  18. return false;
  19. }
  20. char testChar;
  21. for (int i = 1; i < p_scheme.length(); i++)
  22. {
  23. testChar = p_scheme.charAt(i);
  24. if (!isAlphanum(testChar) && SCHEME_CHARACTERS.indexOf(testChar) == -1)
  25. {
  26. return false;
  27. }
  28. }
  29. return true;
  30. }

代码示例来源:origin: com.gluonhq/robovm-rt

  1. /**
  2. * Determine whether a char is an alphanumeric: 0-9, a-z or A-Z
  3. *
  4. *
  5. * @param p_char the character to check
  6. * @return true if the char is alphanumeric, false otherwise
  7. */
  8. private static boolean isAlphanum(char p_char)
  9. {
  10. return (isAlpha(p_char) || isDigit(p_char));
  11. }

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

  1. /**
  2. * Determine whether a scheme conforms to the rules for a scheme name.
  3. * A scheme is conformant if it starts with an alphanumeric, and
  4. * contains only alphanumerics, '+','-' and '.'.
  5. *
  6. *
  7. * @param p_scheme The sheme name to check
  8. * @return true if the scheme is conformant, false otherwise
  9. */
  10. public static boolean isConformantSchemeName(String p_scheme)
  11. {
  12. if (p_scheme == null || p_scheme.trim().length() == 0)
  13. {
  14. return false;
  15. }
  16. if (!isAlpha(p_scheme.charAt(0)))
  17. {
  18. return false;
  19. }
  20. char testChar;
  21. for (int i = 1; i < p_scheme.length(); i++)
  22. {
  23. testChar = p_scheme.charAt(i);
  24. if (!isAlphanum(testChar) && SCHEME_CHARACTERS.indexOf(testChar) == -1)
  25. {
  26. return false;
  27. }
  28. }
  29. return true;
  30. }

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

  1. /**
  2. * Determine whether a char is an alphanumeric: 0-9, a-z or A-Z
  3. *
  4. *
  5. * @param p_char the character to check
  6. * @return true if the char is alphanumeric, false otherwise
  7. */
  8. private static boolean isAlphanum(char p_char)
  9. {
  10. return (isAlpha(p_char) || isDigit(p_char));
  11. }

代码示例来源:origin: org.apache.xalan/com.springsource.org.apache.xalan

  1. /**
  2. * Determine whether a scheme conforms to the rules for a scheme name.
  3. * A scheme is conformant if it starts with an alphanumeric, and
  4. * contains only alphanumerics, '+','-' and '.'.
  5. *
  6. *
  7. * @param p_scheme The sheme name to check
  8. * @return true if the scheme is conformant, false otherwise
  9. */
  10. public static boolean isConformantSchemeName(String p_scheme)
  11. {
  12. if (p_scheme == null || p_scheme.trim().length() == 0)
  13. {
  14. return false;
  15. }
  16. if (!isAlpha(p_scheme.charAt(0)))
  17. {
  18. return false;
  19. }
  20. char testChar;
  21. for (int i = 1; i < p_scheme.length(); i++)
  22. {
  23. testChar = p_scheme.charAt(i);
  24. if (!isAlphanum(testChar) && SCHEME_CHARACTERS.indexOf(testChar) == -1)
  25. {
  26. return false;
  27. }
  28. }
  29. return true;
  30. }

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

  1. /**
  2. * Determine whether a char is an alphanumeric: 0-9, a-z or A-Z
  3. *
  4. *
  5. * @param p_char the character to check
  6. * @return true if the char is alphanumeric, false otherwise
  7. */
  8. private static boolean isAlphanum(char p_char)
  9. {
  10. return (isAlpha(p_char) || isDigit(p_char));
  11. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xalan

  1. /**
  2. * Determine whether a scheme conforms to the rules for a scheme name.
  3. * A scheme is conformant if it starts with an alphanumeric, and
  4. * contains only alphanumerics, '+','-' and '.'.
  5. *
  6. *
  7. * @param p_scheme The sheme name to check
  8. * @return true if the scheme is conformant, false otherwise
  9. */
  10. public static boolean isConformantSchemeName(String p_scheme)
  11. {
  12. if (p_scheme == null || p_scheme.trim().length() == 0)
  13. {
  14. return false;
  15. }
  16. if (!isAlpha(p_scheme.charAt(0)))
  17. {
  18. return false;
  19. }
  20. char testChar;
  21. for (int i = 1; i < p_scheme.length(); i++)
  22. {
  23. testChar = p_scheme.charAt(i);
  24. if (!isAlphanum(testChar) && SCHEME_CHARACTERS.indexOf(testChar) == -1)
  25. {
  26. return false;
  27. }
  28. }
  29. return true;
  30. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xalan

  1. /**
  2. * Determine whether a char is an alphanumeric: 0-9, a-z or A-Z
  3. *
  4. *
  5. * @param p_char the character to check
  6. * @return true if the char is alphanumeric, false otherwise
  7. */
  8. private static boolean isAlphanum(char p_char)
  9. {
  10. return (isAlpha(p_char) || isDigit(p_char));
  11. }

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

  1. /**
  2. * Determine whether a char is an alphanumeric: 0-9, a-z or A-Z
  3. *
  4. *
  5. * @param p_char the character to check
  6. * @return true if the char is alphanumeric, false otherwise
  7. */
  8. private static boolean isAlphanum(char p_char)
  9. {
  10. return (isAlpha(p_char) || isDigit(p_char));
  11. }

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

  1. /**
  2. * Determine whether a char is an alphanumeric: 0-9, a-z or A-Z
  3. *
  4. *
  5. * @param p_char the character to check
  6. * @return true if the char is alphanumeric, false otherwise
  7. */
  8. private static boolean isAlphanum(char p_char)
  9. {
  10. return (isAlpha(p_char) || isDigit(p_char));
  11. }

相关文章