gpt4 book ai didi

com.ctc.wstx.util.XmlChars.is11NameStartChar()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-24 23:13:05 32 4
gpt4 key购买 nike

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

XmlChars.is11NameStartChar介绍

暂无

代码示例

代码示例来源: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 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: org.codehaus.woodstox/woodstox-core-asl

if (!XmlChars.is11NameStartChar(c)) {
  return 0;

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

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

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: Nextdoor/bender

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

/**
 * 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: woodstox/wstx-lgpl

/**
 * 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: woodstox/wstx-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: org.codehaus.woodstox/woodstox-core-lgpl

/**
 * 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: FasterXML/woodstox

/**
 * 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: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox

/**
 * 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

/**
 * 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;

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

if (!XmlChars.is11NameStartChar(c)) {
  return 0;

代码示例来源:origin: FasterXML/woodstox

if (!XmlChars.is11NameStartChar(c)) {
  return 0;

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