gpt4 book ai didi

com.ctc.wstx.util.XmlChars类的使用及代码示例

转载 作者:知者 更新时间:2024-03-24 22:49:05 26 4
gpt4 key购买 nike

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

XmlChars介绍

[英]Simple utility class that encapsulates logic of determining validity of characters outside basic 7-bit range of Unicode, for XML 1.0
[中]一个简单的实用程序类,它封装了确定Unicode基本7位范围之外字符有效性的逻辑,用于XML 1.0

代码示例

代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl

if (!XmlChars.is11NameStartChar(c)) {
  return 0;
if (!XmlChars.is10NameStartChar(c)) {
  return 0;
  if (XmlChars.is11NameChar(c)) {
    continue;
  if (XmlChars.is10NameChar(c)) {
    continue;

代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl

public final static boolean isNameChar(char c, boolean nsAware, boolean xml11)
{
  // First, let's handle 7-bit ascii range
  if (c <= 0x7A) { // 'z' or earlier
    if (c >= 0x61) { // 'a' - 'z' are ok
      return true;
    }
    if (c <= 0x5A) {
      if (c >= 0x41) { // 'A' - 'Z' ok too
        return true;
      }
      // As are 0-9, '.' and '-'
      return (c >= 0x30 && c <= 0x39) || (c == '.') || (c == '-')
        || (c == ':' && !nsAware);
    }
    return (c == 0x5F); // '_' is ok too
  }
  return xml11 ? XmlChars.is11NameChar(c) : XmlChars.is10NameChar(c);
}

代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl

public final static boolean isNameStartChar(char c, boolean nsAware, boolean xml11)
{
  /* First, let's handle 7-bit ascii range (identical between xml
   * 1.0 and 1.1)
   */
  if (c <= 0x7A) { // 'z' or earlier
    if (c >= 0x61) { // 'a' - 'z' are ok
      return true;
    }
    if (c < 0x41) { // before 'A' just white space (and colon)
      if (c == ':' && !nsAware) {
        return true;
      }
      return false;
    }
    return (c <= 0x5A) || (c == '_'); // 'A' - 'Z' and '_' are ok
  }
  /* Ok, otherwise need to use a big honking bit sets... which
   * differ between 1.0 and 1.1
   */
  return xml11 ? XmlChars.is11NameStartChar(c) : XmlChars.is10NameStartChar(c);
}

代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl

/**
 * Method that can be used to check whether specified character
 * is a valid character of an XML 1.0/1.1 name as any other char than
 * the first one; except that colon (:) is not recognized as valid here:
 * caller has to verify it separately (since it generally affects namespace
 * mapping of a qualified name).
 */
protected final boolean isNameChar(char c)
{
  // First, let's handle 7-bit ascii range
  if (c <= 0x7A) { // 'z' or earlier
    if (c >= 0x61) { // 'a' - 'z' are ok
      return true;
    }
    if (c <= 0x5A) {
      if (c >= 0x41) { // 'A' - 'Z' ok too
        return true;
      }
      // As are 0-9, '.' and '-'
      return (c >= 0x30 && c <= 0x39) || (c == '.') || (c == '-');
    }
    return (c == 0x5F); // '_' is ok too
  }
  return mXml11 ? XmlChars.is11NameChar(c) : XmlChars.is10NameChar(c);
}

代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl

/**
 * Method that can be used to check whether specified character
 * is a valid first character of an XML 1.0/1.1 name; except that
 * colon (:) is not recognized as a start char here: caller has
 * to verify it separately (since it generally affects namespace
 * mapping of a qualified name).
 */
protected final boolean isNameStartChar(char c)
{
  /* First, let's handle 7-bit ascii range (identical between xml
   * 1.0 and 1.1)
   */
  if (c <= 0x7A) { // 'z' or earlier
    if (c >= 0x61) { // 'a' - 'z' are ok
      return true;
    }
    if (c < 0x41) { // before 'A' just white space
      return false;
    }
    return (c <= 0x5A) || (c == '_'); // 'A' - 'Z' and '_' are ok
  }
  /* Ok, otherwise need to use a big honking bit sets... which
   * differ between 1.0 and 1.1
   */
  return mXml11 ? XmlChars.is11NameStartChar(c) : XmlChars.is10NameStartChar(c);
}

代码示例来源:origin: Nextdoor/bender

if (!XmlChars.is11NameStartChar(c)) {
  return 0;
if (!XmlChars.is10NameStartChar(c)) {
  return 0;
  if (XmlChars.is11NameChar(c)) {
    continue;
  if (XmlChars.is10NameChar(c)) {
    continue;

代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl

if (XmlChars.is11NameChar(c)) {
  continue;
if (XmlChars.is10NameChar(c)) {
  continue;

代码示例来源:origin: org.codehaus.woodstox/woodstox-core-lgpl

public final static boolean isNameStartChar(char c, boolean nsAware, boolean xml11)
{
  /* First, let's handle 7-bit ascii range (identical between xml
   * 1.0 and 1.1)
   */
  if (c <= 0x7A) { // 'z' or earlier
    if (c >= 0x61) { // 'a' - 'z' are ok
      return true;
    }
    if (c < 0x41) { // before 'A' just white space (and colon)
      if (c == ':' && !nsAware) {
        return true;
      }
      return false;
    }
    return (c <= 0x5A) || (c == '_'); // 'A' - 'Z' and '_' are ok
  }
  /* Ok, otherwise need to use a big honking bit sets... which
   * differ between 1.0 and 1.1
   */
  return xml11 ? XmlChars.is11NameStartChar(c) : XmlChars.is10NameStartChar(c);
}

代码示例来源:origin: com.fasterxml.woodstox/woodstox-core

if (!XmlChars.is11NameStartChar(c)) {
  return 0;
if (!XmlChars.is10NameStartChar(c)) {
  return 0;
  if (XmlChars.is11NameChar(c)) {
    continue;
  if (XmlChars.is10NameChar(c)) {
    continue;

代码示例来源:origin: woodstox/wstx-lgpl

public final static boolean isNameChar(char c, boolean nsAware, boolean xml11)
{
  // First, let's handle 7-bit ascii range
  if (c <= 0x7A) { // 'z' or earlier
    if (c >= 0x61) { // 'a' - 'z' are ok
      return true;
    }
    if (c <= 0x5A) {
      if (c >= 0x41) { // 'A' - 'Z' ok too
        return true;
      }
      // As are 0-9, '.' and '-'
      return (c >= 0x30 && c <= 0x39) || (c == '.') || (c == '-')
        || (c == ':' && !nsAware);
    }
    return (c == 0x5F); // '_' is ok too
  }
  return xml11 ? XmlChars.is11NameChar(c) : XmlChars.is10NameChar(c);
}

代码示例来源:origin: woodstox/wstx-asl

public final static boolean isNameStartChar(char c, boolean nsAware, boolean xml11)
{
  /* First, let's handle 7-bit ascii range (identical between xml
   * 1.0 and 1.1)
   */
  if (c <= 0x7A) { // 'z' or earlier
    if (c >= 0x61) { // 'a' - 'z' are ok
      return true;
    }
    if (c < 0x41) { // before 'A' just white space (and colon)
      if (c == ':' && !nsAware) {
        return true;
      }
      return false;
    }
    return (c <= 0x5A) || (c == '_'); // 'A' - 'Z' and '_' are ok
  }
  /* Ok, otherwise need to use a big honking bit sets... which
   * differ between 1.0 and 1.1
   */
  return xml11 ? XmlChars.is11NameStartChar(c) : XmlChars.is10NameStartChar(c);
}

代码示例来源:origin: org.codehaus.woodstox/woodstox-core-lgpl

if (!XmlChars.is11NameStartChar(c)) {
  return 0;
if (!XmlChars.is10NameStartChar(c)) {
  return 0;
  if (XmlChars.is11NameChar(c)) {
    continue;
  if (XmlChars.is10NameChar(c)) {
    continue;

代码示例来源:origin: com.fasterxml.woodstox/woodstox-core

public final static boolean isNameChar(char c, boolean nsAware, boolean xml11)
{
  // First, let's handle 7-bit ascii range
  if (c <= 0x7A) { // 'z' or earlier
    if (c >= 0x61) { // 'a' - 'z' are ok
      return true;
    }
    if (c <= 0x5A) {
      if (c >= 0x41) { // 'A' - 'Z' ok too
        return true;
      }
      // As are 0-9, '.' and '-'
      return (c >= 0x30 && c <= 0x39) || (c == '.') || (c == '-')
        || (c == ':' && !nsAware);
    }
    return (c == 0x5F); // '_' is ok too
  }
  return xml11 ? XmlChars.is11NameChar(c) : XmlChars.is10NameChar(c);
}

代码示例来源:origin: com.fasterxml.woodstox/woodstox-core

public final static boolean isNameStartChar(char c, boolean nsAware, boolean xml11)
{
  /* First, let's handle 7-bit ascii range (identical between xml
   * 1.0 and 1.1)
   */
  if (c <= 0x7A) { // 'z' or earlier
    if (c >= 0x61) { // 'a' - 'z' are ok
      return true;
    }
    if (c < 0x41) { // before 'A' just white space (and colon)
      if (c == ':' && !nsAware) {
        return true;
      }
      return false;
    }
    return (c <= 0x5A) || (c == '_'); // 'A' - 'Z' and '_' are ok
  }
  /* Ok, otherwise need to use a big honking bit sets... which
   * differ between 1.0 and 1.1
   */
  return xml11 ? XmlChars.is11NameStartChar(c) : XmlChars.is10NameStartChar(c);
}

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

if (!XmlChars.is11NameStartChar(c)) {
  return 0;
if (!XmlChars.is10NameStartChar(c)) {
  return 0;
  if (XmlChars.is11NameChar(c)) {
    continue;
  if (XmlChars.is10NameChar(c)) {
    continue;

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

public final static boolean isNameChar(char c, boolean nsAware, boolean xml11)
{
  // First, let's handle 7-bit ascii range
  if (c <= 0x7A) { // 'z' or earlier
    if (c >= 0x61) { // 'a' - 'z' are ok
      return true;
    }
    if (c <= 0x5A) {
      if (c >= 0x41) { // 'A' - 'Z' ok too
        return true;
      }
      // As are 0-9, '.' and '-'
      return (c >= 0x30 && c <= 0x39) || (c == '.') || (c == '-')
        || (c == ':' && !nsAware);
    }
    return (c == 0x5F); // '_' is ok too
  }
  return xml11 ? XmlChars.is11NameChar(c) : XmlChars.is10NameChar(c);
}

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

public final static boolean isNameStartChar(char c, boolean nsAware, boolean xml11)
{
  /* First, let's handle 7-bit ascii range (identical between xml
   * 1.0 and 1.1)
   */
  if (c <= 0x7A) { // 'z' or earlier
    if (c >= 0x61) { // 'a' - 'z' are ok
      return true;
    }
    if (c < 0x41) { // before 'A' just white space (and colon)
      if (c == ':' && !nsAware) {
        return true;
      }
      return false;
    }
    return (c <= 0x5A) || (c == '_'); // 'A' - 'Z' and '_' are ok
  }
  /* Ok, otherwise need to use a big honking bit sets... which
   * differ between 1.0 and 1.1
   */
  return xml11 ? XmlChars.is11NameStartChar(c) : XmlChars.is10NameStartChar(c);
}

代码示例来源:origin: woodstox/wstx-lgpl

if (!XmlChars.is11NameStartChar(c)) {
  return 0;
if (!XmlChars.is10NameStartChar(c)) {
  return 0;
  if (XmlChars.is11NameChar(c)) {
    continue;
  if (XmlChars.is10NameChar(c)) {
    continue;

代码示例来源:origin: woodstox/wstx-asl

public final static boolean isNameChar(char c, boolean nsAware, boolean xml11)
{
  // First, let's handle 7-bit ascii range
  if (c <= 0x7A) { // 'z' or earlier
    if (c >= 0x61) { // 'a' - 'z' are ok
      return true;
    }
    if (c <= 0x5A) {
      if (c >= 0x41) { // 'A' - 'Z' ok too
        return true;
      }
      // As are 0-9, '.' and '-'
      return (c >= 0x30 && c <= 0x39) || (c == '.') || (c == '-')
        || (c == ':' && !nsAware);
    }
    return (c == 0x5F); // '_' is ok too
  }
  return xml11 ? XmlChars.is11NameChar(c) : XmlChars.is10NameChar(c);
}

代码示例来源:origin: woodstox/wstx-lgpl

public final static boolean isNameStartChar(char c, boolean nsAware, boolean xml11)
{
  /* First, let's handle 7-bit ascii range (identical between xml
   * 1.0 and 1.1)
   */
  if (c <= 0x7A) { // 'z' or earlier
    if (c >= 0x61) { // 'a' - 'z' are ok
      return true;
    }
    if (c < 0x41) { // before 'A' just white space (and colon)
      if (c == ':' && !nsAware) {
        return true;
      }
      return false;
    }
    return (c <= 0x5A) || (c == '_'); // 'A' - 'Z' and '_' are ok
  }
  /* Ok, otherwise need to use a big honking bit sets... which
   * differ between 1.0 and 1.1
   */
  return xml11 ? XmlChars.is11NameStartChar(c) : XmlChars.is10NameStartChar(c);
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com