gpt4 book ai didi

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

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

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

XmlChars.is11NameChar介绍

暂无

代码示例

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

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

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

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

if (XmlChars.is11NameChar(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: 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: 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: 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.codehaus.woodstox/woodstox-core-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: Nextdoor/bender

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

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

/**
 * 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: com.fasterxml.woodstox/woodstox-core

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

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

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

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

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

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

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

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