org.apache.xml.serializer.utils.XML11Char.isXML11NameHighSurrogate()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(10.4k)|赞(0)|评价(0)|浏览(200)

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

XML11Char.isXML11NameHighSurrogate介绍

[英]Returns whether the given character is a valid high surrogate for a name character. This includes all high surrogates for characters [0x10000-0xEFFFF]. In other words everything excluding planes 15 and 16.
[中]返回给定字符是否是名称字符的有效高级代理。这包括字符[0x10000-0xefff]的所有高级代理。换句话说,除了飞机15和16之外的所有东西。

代码示例

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

/**
 * Check to see if a string is a valid Nmtoken according to [7]
 * in the XML 1.1 Recommendation
 *
 * @param nmtoken string to check
 * @return true if nmtoken is a valid Nmtoken 
 */
public static boolean isXML11ValidNmtoken(String nmtoken) {
  int length = nmtoken.length();
  if (length == 0)
    return false;
  for (int i = 0; i < length; ++i ) {
    char ch = nmtoken.charAt(i);
    if( !isXML11Name(ch) ) {
      if ( ++i < length && isXML11NameHighSurrogate(ch) ) {
        char ch2 = nmtoken.charAt(i);
        if ( !XMLChar.isLowSurrogate(ch2) || 
           !isXML11Name(XMLChar.supplemental(ch, ch2)) ) {
          return false;
        }
      }
      else {
        return false;
      }
    }
  }
  return true;
} // isXML11ValidName(String):boolean

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

char ch = name.charAt(0);
if( !isXML11NameStart(ch) ) {
  if ( length > 1 && isXML11NameHighSurrogate(ch) ) {
    char ch2 = name.charAt(1);
    if ( !XMLChar.isLowSurrogate(ch2) || 
  ch = name.charAt(i);
  if ( !isXML11Name(ch) ) {
    if ( ++i < length && isXML11NameHighSurrogate(ch) ) {
      char ch2 = name.charAt(i);
      if ( !XMLChar.isLowSurrogate(ch2) ||

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

char ch = ncName.charAt(0);
if( !isXML11NCNameStart(ch) ) {
  if ( length > 1 && isXML11NameHighSurrogate(ch) ) {
    char ch2 = ncName.charAt(1);
    if ( !XMLChar.isLowSurrogate(ch2) || 
  ch = ncName.charAt(i);
  if ( !isXML11NCName(ch) ) {
    if ( ++i < length && isXML11NameHighSurrogate(ch) ) {
      char ch2 = ncName.charAt(i);
      if ( !XMLChar.isLowSurrogate(ch2) ||

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

/**
 * Check to see if a string is a valid Nmtoken according to [7]
 * in the XML 1.1 Recommendation
 *
 * @param nmtoken string to check
 * @return true if nmtoken is a valid Nmtoken 
 */
public static boolean isXML11ValidNmtoken(String nmtoken) {
  int length = nmtoken.length();
  if (length == 0)
    return false;
  for (int i = 0; i < length; ++i ) {
    char ch = nmtoken.charAt(i);
    if( !isXML11Name(ch) ) {
      if ( ++i < length && isXML11NameHighSurrogate(ch) ) {
        char ch2 = nmtoken.charAt(i);
        if ( !XMLChar.isLowSurrogate(ch2) || 
           !isXML11Name(XMLChar.supplemental(ch, ch2)) ) {
          return false;
        }
      }
      else {
        return false;
      }
    }
  }
  return true;
} // isXML11ValidName(String):boolean

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

/**
 * Check to see if a string is a valid Nmtoken according to [7]
 * in the XML 1.1 Recommendation
 *
 * @param nmtoken string to check
 * @return true if nmtoken is a valid Nmtoken 
 */
public static boolean isXML11ValidNmtoken(String nmtoken) {
  int length = nmtoken.length();
  if (length == 0)
    return false;
  for (int i = 0; i < length; ++i ) {
    char ch = nmtoken.charAt(i);
    if( !isXML11Name(ch) ) {
      if ( ++i < length && isXML11NameHighSurrogate(ch) ) {
        char ch2 = nmtoken.charAt(i);
        if ( !XMLChar.isLowSurrogate(ch2) || 
           !isXML11Name(XMLChar.supplemental(ch, ch2)) ) {
          return false;
        }
      }
      else {
        return false;
      }
    }
  }
  return true;
} // isXML11ValidName(String):boolean

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

/**
 * Check to see if a string is a valid Nmtoken according to [7]
 * in the XML 1.1 Recommendation
 *
 * @param nmtoken string to check
 * @return true if nmtoken is a valid Nmtoken 
 */
public static boolean isXML11ValidNmtoken(String nmtoken) {
  int length = nmtoken.length();
  if (length == 0)
    return false;
  for (int i = 0; i < length; ++i ) {
    char ch = nmtoken.charAt(i);
    if( !isXML11Name(ch) ) {
      if ( ++i < length && isXML11NameHighSurrogate(ch) ) {
        char ch2 = nmtoken.charAt(i);
        if ( !XMLChar.isLowSurrogate(ch2) || 
           !isXML11Name(XMLChar.supplemental(ch, ch2)) ) {
          return false;
        }
      }
      else {
        return false;
      }
    }
  }
  return true;
} // isXML11ValidName(String):boolean

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

/**
 * Check to see if a string is a valid Nmtoken according to [7]
 * in the XML 1.1 Recommendation
 *
 * @param nmtoken string to check
 * @return true if nmtoken is a valid Nmtoken 
 */
public static boolean isXML11ValidNmtoken(String nmtoken) {
  int length = nmtoken.length();
  if (length == 0)
    return false;
  for (int i = 0; i < length; ++i ) {
    char ch = nmtoken.charAt(i);
    if( !isXML11Name(ch) ) {
      if ( ++i < length && isXML11NameHighSurrogate(ch) ) {
        char ch2 = nmtoken.charAt(i);
        if ( !XMLChar.isLowSurrogate(ch2) || 
           !isXML11Name(XMLChar.supplemental(ch, ch2)) ) {
          return false;
        }
      }
      else {
        return false;
      }
    }
  }
  return true;
} // isXML11ValidName(String):boolean

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

/**
 * Check to see if a string is a valid Nmtoken according to [7]
 * in the XML 1.1 Recommendation
 *
 * @param nmtoken string to check
 * @return true if nmtoken is a valid Nmtoken 
 */
public static boolean isXML11ValidNmtoken(String nmtoken) {
  int length = nmtoken.length();
  if (length == 0)
    return false;
  for (int i = 0; i < length; ++i ) {
    char ch = nmtoken.charAt(i);
    if( !isXML11Name(ch) ) {
      if ( ++i < length && isXML11NameHighSurrogate(ch) ) {
        char ch2 = nmtoken.charAt(i);
        if ( !XMLChar.isLowSurrogate(ch2) || 
           !isXML11Name(XMLChar.supplemental(ch, ch2)) ) {
          return false;
        }
      }
      else {
        return false;
      }
    }
  }
  return true;
} // isXML11ValidName(String):boolean

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

/**
 * Check to see if a string is a valid Nmtoken according to [7]
 * in the XML 1.1 Recommendation
 *
 * @param nmtoken string to check
 * @return true if nmtoken is a valid Nmtoken 
 */
public static boolean isXML11ValidNmtoken(String nmtoken) {
  int length = nmtoken.length();
  if (length == 0)
    return false;
  for (int i = 0; i < length; ++i ) {
    char ch = nmtoken.charAt(i);
    if( !isXML11Name(ch) ) {
      if ( ++i < length && isXML11NameHighSurrogate(ch) ) {
        char ch2 = nmtoken.charAt(i);
        if ( !XMLChar.isLowSurrogate(ch2) || 
           !isXML11Name(XMLChar.supplemental(ch, ch2)) ) {
          return false;
        }
      }
      else {
        return false;
      }
    }
  }
  return true;
} // isXML11ValidName(String):boolean

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

/**
 * Check to see if a string is a valid Nmtoken according to [7]
 * in the XML 1.1 Recommendation
 *
 * @param nmtoken string to check
 * @return true if nmtoken is a valid Nmtoken 
 */
public static boolean isXML11ValidNmtoken(String nmtoken) {
  int length = nmtoken.length();
  if (length == 0)
    return false;
  for (int i = 0; i < length; ++i ) {
    char ch = nmtoken.charAt(i);
    if( !isXML11Name(ch) ) {
      if ( ++i < length && isXML11NameHighSurrogate(ch) ) {
        char ch2 = nmtoken.charAt(i);
        if ( !XMLChar.isLowSurrogate(ch2) || 
           !isXML11Name(XMLChar.supplemental(ch, ch2)) ) {
          return false;
        }
      }
      else {
        return false;
      }
    }
  }
  return true;
} // isXML11ValidName(String):boolean

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

/**
 * Check to see if a string is a valid Nmtoken according to [7]
 * in the XML 1.1 Recommendation
 *
 * @param nmtoken string to check
 * @return true if nmtoken is a valid Nmtoken 
 */
public static boolean isXML11ValidNmtoken(String nmtoken) {
  int length = nmtoken.length();
  if (length == 0)
    return false;
  for (int i = 0; i < length; ++i ) {
    char ch = nmtoken.charAt(i);
    if( !isXML11Name(ch) ) {
      if ( ++i < length && isXML11NameHighSurrogate(ch) ) {
        char ch2 = nmtoken.charAt(i);
        if ( !XMLChar.isLowSurrogate(ch2) || 
           !isXML11Name(XMLChar.supplemental(ch, ch2)) ) {
          return false;
        }
      }
      else {
        return false;
      }
    }
  }
  return true;
} // isXML11ValidName(String):boolean

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

/**
 * Check to see if a string is a valid Nmtoken according to [7]
 * in the XML 1.1 Recommendation
 *
 * @param nmtoken string to check
 * @return true if nmtoken is a valid Nmtoken 
 */
public static boolean isXML11ValidNmtoken(String nmtoken) {
  int length = nmtoken.length();
  if (length == 0)
    return false;
  for (int i = 0; i < length; ++i ) {
    char ch = nmtoken.charAt(i);
    if( !isXML11Name(ch) ) {
      if ( ++i < length && isXML11NameHighSurrogate(ch) ) {
        char ch2 = nmtoken.charAt(i);
        if ( !XMLChar.isLowSurrogate(ch2) || 
           !isXML11Name(XMLChar.supplemental(ch, ch2)) ) {
          return false;
        }
      }
      else {
        return false;
      }
    }
  }
  return true;
} // isXML11ValidName(String):boolean

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

/**
 * Check to see if a string is a valid Nmtoken according to [7]
 * in the XML 1.1 Recommendation
 *
 * @param nmtoken string to check
 * @return true if nmtoken is a valid Nmtoken 
 */
public static boolean isXML11ValidNmtoken(String nmtoken) {
  int length = nmtoken.length();
  if (length == 0)
    return false;
  for (int i = 0; i < length; ++i ) {
    char ch = nmtoken.charAt(i);
    if( !isXML11Name(ch) ) {
      if ( ++i < length && isXML11NameHighSurrogate(ch) ) {
        char ch2 = nmtoken.charAt(i);
        if ( !XMLChar.isLowSurrogate(ch2) || 
           !isXML11Name(XMLChar.supplemental(ch, ch2)) ) {
          return false;
        }
      }
      else {
        return false;
      }
    }
  }
  return true;
} // isXML11ValidName(String):boolean

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

char ch = name.charAt(0);
if( !isXML11NameStart(ch) ) {
  if ( length > 1 && isXML11NameHighSurrogate(ch) ) {
    char ch2 = name.charAt(1);
    if ( !XMLChar.isLowSurrogate(ch2) || 
  ch = name.charAt(i);
  if ( !isXML11Name(ch) ) {
    if ( ++i < length && isXML11NameHighSurrogate(ch) ) {
      char ch2 = name.charAt(i);
      if ( !XMLChar.isLowSurrogate(ch2) ||

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

char ch = name.charAt(0);
if( !isXML11NameStart(ch) ) {
  if ( length > 1 && isXML11NameHighSurrogate(ch) ) {
    char ch2 = name.charAt(1);
    if ( !XMLChar.isLowSurrogate(ch2) || 
  ch = name.charAt(i);
  if ( !isXML11Name(ch) ) {
    if ( ++i < length && isXML11NameHighSurrogate(ch) ) {
      char ch2 = name.charAt(i);
      if ( !XMLChar.isLowSurrogate(ch2) ||

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

char ch = name.charAt(0);
if( !isXML11NameStart(ch) ) {
  if ( length > 1 && isXML11NameHighSurrogate(ch) ) {
    char ch2 = name.charAt(1);
    if ( !XMLChar.isLowSurrogate(ch2) || 
  ch = name.charAt(i);
  if ( !isXML11Name(ch) ) {
    if ( ++i < length && isXML11NameHighSurrogate(ch) ) {
      char ch2 = name.charAt(i);
      if ( !XMLChar.isLowSurrogate(ch2) ||

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

char ch = name.charAt(0);
if( !isXML11NameStart(ch) ) {
  if ( length > 1 && isXML11NameHighSurrogate(ch) ) {
    char ch2 = name.charAt(1);
    if ( !XMLChar.isLowSurrogate(ch2) || 
  ch = name.charAt(i);
  if ( !isXML11Name(ch) ) {
    if ( ++i < length && isXML11NameHighSurrogate(ch) ) {
      char ch2 = name.charAt(i);
      if ( !XMLChar.isLowSurrogate(ch2) ||

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

char ch = ncName.charAt(0);
if( !isXML11NCNameStart(ch) ) {
  if ( length > 1 && isXML11NameHighSurrogate(ch) ) {
    char ch2 = ncName.charAt(1);
    if ( !XMLChar.isLowSurrogate(ch2) || 
  ch = ncName.charAt(i);
  if ( !isXML11NCName(ch) ) {
    if ( ++i < length && isXML11NameHighSurrogate(ch) ) {
      char ch2 = ncName.charAt(i);
      if ( !XMLChar.isLowSurrogate(ch2) ||

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

char ch = name.charAt(0);
if( !isXML11NameStart(ch) ) {
  if ( length > 1 && isXML11NameHighSurrogate(ch) ) {
    char ch2 = name.charAt(1);
    if ( !XMLChar.isLowSurrogate(ch2) || 
  ch = name.charAt(i);
  if ( !isXML11Name(ch) ) {
    if ( ++i < length && isXML11NameHighSurrogate(ch) ) {
      char ch2 = name.charAt(i);
      if ( !XMLChar.isLowSurrogate(ch2) ||

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

char ch = ncName.charAt(0);
if( !isXML11NCNameStart(ch) ) {
  if ( length > 1 && isXML11NameHighSurrogate(ch) ) {
    char ch2 = ncName.charAt(1);
    if ( !XMLChar.isLowSurrogate(ch2) || 
  ch = ncName.charAt(i);
  if ( !isXML11NCName(ch) ) {
    if ( ++i < length && isXML11NameHighSurrogate(ch) ) {
      char ch2 = ncName.charAt(i);
      if ( !XMLChar.isLowSurrogate(ch2) ||

相关文章