/** * Returns true if the message bytes starts with the specified string. * @param c the character */ public int indexOf(char c, int starting) { int ret = indexOf( buff, start+starting, end, c ); return (ret >= start) ? ret - start : -1; }
/** * Returns true if the message bytes starts with the specified string. * @param c the character */ public int indexOf(char c, int starting) { int ret = indexOf( buff, start+starting, end, c ); return (ret >= start) ? ret - start : -1; }
/** * Returns true if the message bytes starts with the specified string. * @param c the character */ public int indexOf(char c, int starting) { int ret = indexOf( buff, start+starting, end, c ); return (ret >= start) ? ret - start : -1; }
/** * Returns true if the message bytes starts with the specified string. * @param c the character */ public int indexOf(char c, int starting) { int ret = indexOf( buff, start+starting, end, c ); return (ret >= start) ? ret - start : -1; }
/** * Returns true if the message bytes starts with the specified string. * @param c the character */ public int indexOf(char c, int starting) { int ret = indexOf( buff, start+starting, end, c ); return (ret >= start) ? ret - start : -1; }
/** * Returns true if the message bytes starts with the specified string. * @param c the character */ public int indexOf(char c, int starting) { int ret = indexOf( buff, start+starting, end, c ); return (ret >= start) ? ret - start : -1; }
/** * Returns true if the message bytes starts with the specified string. * @param c the character */ public int indexOf(char c, int starting) { int ret = indexOf( buff, start+starting, end, c ); return (ret >= start) ? ret - start : -1; }
public int indexOf(char c) { return indexOf( c, start); }
public int indexOf(char c) { return indexOf( c, start); }
public int indexOf(char c) { return indexOf( c, start); }
/** * Returns the first instance of the given character in this CharChunk * starting at the specified char. If the character is not found, -1 is * returned. <br> * * @param c The character * @param starting The start position * @return The position of the first instance of the character or -1 if the * character is not found. */ public int indexOf(char c, int starting) { int ret = indexOf(buff, start + starting, end, c); return (ret >= start) ? ret - start : -1; }
public int indexOf(char c) { return indexOf( c, start); }
public int indexOf(char c) { return indexOf(c, start); }
public int indexOf(char c) { return indexOf( c, start); }
public int indexOf(char c) { return indexOf( c, start); }
public int indexOf(char c) { return indexOf( c, start); }
/** * Returns true if the message bytes starts with the specified string. * @param c the character * @param starting The start position */ public int indexOf(char c, int starting) { switch (type) { case T_STR: return strValue.indexOf( c, starting ); case T_CHARS: return charC.indexOf( c, starting); case T_BYTES: return byteC.indexOf( c, starting ); default: return -1; } }
/** * Returns true if the message bytes starts with the specified string. * @param c the character * @param starting The start position */ public int indexOf(char c, int starting) { switch (type) { case T_STR: return strValue.indexOf( c, starting ); case T_CHARS: return charC.indexOf( c, starting); case T_BYTES: return byteC.indexOf( c, starting ); default: return -1; } }
/** * Returns true if the message bytes starts with the specified string. * @param c the character * @param starting The start position */ public int indexOf(char c, int starting) { switch (type) { case T_STR: return strValue.indexOf( c, starting ); case T_CHARS: return charC.indexOf( c, starting); case T_BYTES: return byteC.indexOf( c, starting ); default: return -1; } }
/** * Returns true if the message bytes starts with the specified string. * @param c the character * @param starting The start position * @deprecated Unused. Will be removed in Tomcat 8.0.x onwards. */ @Deprecated public int indexOf(char c, int starting) { switch (type) { case T_STR: return strValue.indexOf( c, starting ); case T_CHARS: return charC.indexOf( c, starting); case T_BYTES: return byteC.indexOf( c, starting ); default: return -1; } }