本文整理了Java中java.lang.String.fastIndexOf()
方法的一些代码示例,展示了String.fastIndexOf()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。String.fastIndexOf()
方法的具体详情如下:
包路径:java.lang.String
类名称:String
方法名:fastIndexOf
暂无
代码示例来源: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);
}
内容来源于网络,如有侵权,请联系作者删除!