MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / indexOf

Method indexOf

vm/JavaAPI/src/java/lang/String.java:350–352  ·  view source on GitHub ↗

Returns the index within this string of the first occurrence of the specified character. If a character with value ch occurs in the character sequence represented by this String object, then the index of the first such occurrence is returned -- that is, the smallest value such that: this.charAt( ) =

(int ch)

Source from the content-addressed store, hash-verified

348 * ) == ch is true. If no such character occurs in this string, then -1 is returned.
349 */
350 public int indexOf(int ch){
351 return indexOf(ch, 0);
352 }
353
354 /**
355 * Returns the index within this string of the first occurrence of the specified character, starting the search at the specified index.

Callers 15

buildRequestBodyMethod · 0.95
replaceMethod · 0.95
longValMethod · 0.95
resolveBufferMethod · 0.95
readImageBytesMethod · 0.95
runMethod · 0.95
parseMethod · 0.95
parseCookieHeaderMethod · 0.95
handleURLMethod · 0.95
readResponseMethod · 0.95

Calls

no outgoing calls