24.166. String.indexOf( ): search a stringECMAScript v124.166.1. Synopsis
24.166.1.1. Arguments
24.166.1.2. ReturnsThe position of the first occurrence of substring within string that appears after the start position, if any, or -1 if no such occurrence is found. 24.166.2. DescriptionString.indexOf( ) searches the string string from beginning to end to see if it contains an occurrence of substring. The search begins at position start within string, or at the beginning of string if start is not specified. If an occurrence of substring is found, String.indexOf( ) returns the position of the first character of the first occurrence of substring within string. Character positions within string are numbered starting with zero. If no occurrence of substring is found within string, String.indexOf( ) returns -1. 24.166.3. See AlsoString.charAt( ), String.lastIndexOf( ), String.substring( ) |
Monday, November 2, 2009
Section 24.166. String.indexOf( ): search a string
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment