java.lang.String.indexOfSupplementary()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(6.5k)|赞(0)|评价(0)|浏览(222)

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

String.indexOfSupplementary介绍

暂无

代码示例

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

/**
 * Searches in this string for the first index of the specified character.
 * The search for the character starts at the beginning and moves towards
 * the end of this string.
 *
 * @param c
 *            the character to find.
 * @return the index in this string of the specified character, -1 if the
 *         character isn't found.
 */
public int indexOf(int c) {
  // TODO: just "return indexOf(c, 0);" when the JIT can inline that deep.
  if (c > 0xffff) {
    return indexOfSupplementary(c, 0);
  }
  return fastIndexOf(c, 0);
}

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

/**
 * Searches in this string for the index of the specified character. The
 * search for the character starts at the specified offset and moves towards
 * the end of this string.
 *
 * @param c
 *            the character to find.
 * @param start
 *            the starting offset.
 * @return the index in this string of the specified character, -1 if the
 *         character isn't found.
 */
public int indexOf(int c, int start) {
  if (c > 0xffff) {
    return indexOfSupplementary(c, start);
  }
  return fastIndexOf(c, start);
}

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

/**
 * Searches in this string for the index of the specified character. The
 * search for the character starts at the specified offset and moves towards
 * the end of this string.
 *
 * @param c
 *            the character to find.
 * @param start
 *            the starting offset.
 * @return the index in this string of the specified character, -1 if the
 *         character isn't found.
 */
public int indexOf(int c, int start) {
  if (c > 0xffff) {
    return indexOfSupplementary(c, start);
  }
  return fastIndexOf(c, start);
}

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

/**
 * Searches in this string for the first index of the specified character.
 * The search for the character starts at the beginning and moves towards
 * the end of this string.
 *
 * @param c
 *            the character to find.
 * @return the index in this string of the specified character, -1 if the
 *         character isn't found.
 */
public int indexOf(int c) {
  // TODO: just "return indexOf(c, 0);" when the JIT can inline that deep.
  if (c > 0xffff) {
    return indexOfSupplementary(c, 0);
  }
  return fastIndexOf(c, 0);
}

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

/**
 * Searches in this string for the first index of the specified character.
 * The search for the character starts at the beginning and moves towards
 * the end of this string.
 *
 * @param c
 *            the character to find.
 * @return the index in this string of the specified character, -1 if the
 *         character isn't found.
 */
public int indexOf(int c) {
  // TODO: just "return indexOf(c, 0);" when the JIT can inline that deep.
  if (c > 0xffff) {
    return indexOfSupplementary(c, 0);
  }
  return fastIndexOf(c, 0);
}

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

/**
 * Searches in this string for the first index of the specified character.
 * The search for the character starts at the beginning and moves towards
 * the end of this string.
 *
 * @param c
 *            the character to find.
 * @return the index in this string of the specified character, -1 if the
 *         character isn't found.
 */
public int indexOf(int c) {
  // TODO: just "return indexOf(c, 0);" when the JIT can inline that deep.
  if (c > 0xffff) {
    return indexOfSupplementary(c, 0);
  }
  return fastIndexOf(c, 0);
}

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

/**
 * Searches in this string for the first index of the specified character.
 * The search for the character starts at the beginning and moves towards
 * the end of this string.
 *
 * @param c
 *            the character to find.
 * @return the index in this string of the specified character, -1 if the
 *         character isn't found.
 */
public int indexOf(int c) {
  // TODO: just "return indexOf(c, 0);" when the JIT can inline that deep.
  if (c > 0xffff) {
    return indexOfSupplementary(c, 0);
  }
  return fastIndexOf(c, 0);
}

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

/**
 * Searches in this string for the index of the specified character. The
 * search for the character starts at the specified offset and moves towards
 * the end of this string.
 *
 * @param c
 *            the character to find.
 * @param start
 *            the starting offset.
 * @return the index in this string of the specified character, -1 if the
 *         character isn't found.
 */
public int indexOf(int c, int start) {
  if (c > 0xffff) {
    return indexOfSupplementary(c, start);
  }
  return fastIndexOf(c, start);
}

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

/**
 * Searches in this string for the index of the specified character. The
 * search for the character starts at the specified offset and moves towards
 * the end of this string.
 *
 * @param c
 *            the character to find.
 * @param start
 *            the starting offset.
 * @return the index in this string of the specified character, -1 if the
 *         character isn't found.
 */
public int indexOf(int c, int start) {
  if (c > 0xffff) {
    return indexOfSupplementary(c, start);
  }
  return fastIndexOf(c, start);
}

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

/**
 * Searches in this string for the first index of the specified character.
 * The search for the character starts at the beginning and moves towards
 * the end of this string.
 *
 * @param c
 *            the character to find.
 * @return the index in this string of the specified character, -1 if the
 *         character isn't found.
 */
public int indexOf(int c) {
  // TODO: just "return indexOf(c, 0);" when the JIT can inline that deep.
  if (c > 0xffff) {
    return indexOfSupplementary(c, 0);
  }
  return fastIndexOf(c, 0);
}

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

/**
 * Searches in this string for the index of the specified character. The
 * search for the character starts at the specified offset and moves towards
 * the end of this string.
 *
 * @param c
 *            the character to find.
 * @param start
 *            the starting offset.
 * @return the index in this string of the specified character, -1 if the
 *         character isn't found.
 */
public int indexOf(int c, int start) {
  if (c > 0xffff) {
    return indexOfSupplementary(c, start);
  }
  return fastIndexOf(c, start);
}

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

/**
 * Searches in this string for the first index of the specified character.
 * The search for the character starts at the beginning and moves towards
 * the end of this string.
 *
 * @param c
 *            the character to find.
 * @return the index in this string of the specified character, -1 if the
 *         character isn't found.
 */
public int indexOf(int c) {
  // TODO: just "return indexOf(c, 0);" when the JIT can inline that deep.
  if (c > 0xffff) {
    return indexOfSupplementary(c, 0);
  }
  return fastIndexOf(c, 0);
}

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

/**
 * Searches in this string for the index of the specified character. The
 * search for the character starts at the specified offset and moves towards
 * the end of this string.
 *
 * @param c
 *            the character to find.
 * @param start
 *            the starting offset.
 * @return the index in this string of the specified character, -1 if the
 *         character isn't found.
 */
public int indexOf(int c, int start) {
  if (c > 0xffff) {
    return indexOfSupplementary(c, start);
  }
  return fastIndexOf(c, start);
}

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

/**
 * Searches in this string for the index of the specified character. The
 * search for the character starts at the specified offset and moves towards
 * the end of this string.
 *
 * @param c
 *            the character to find.
 * @param start
 *            the starting offset.
 * @return the index in this string of the specified character, -1 if the
 *         character isn't found.
 */
public int indexOf(int c, int start) {
  if (c > 0xffff) {
    return indexOfSupplementary(c, start);
  }
  return fastIndexOf(c, start);
}

相关文章

微信公众号

最新文章

更多