graveyard/tools/org/apache/axis/tools/common/Utils.java
/**
	 * Performs a C-aware version of String.indexOf(char) in
	 * that it skips characters in string literals and comments.
	 */
Performs a C-aware version of String.indexOf(char) in
that it skips characters in string literals and comments.
Performs a C - aware version of String . indexOf ( char ) in that it skips characters in string literals and comments .
static int indexOf(String s, char c) throws ParsingException {
		if ('"' == c)
			rude("Utils.indexOf cannot be passed quotes");
		for (int i = 0; i < s.length(); i++) {
			if (s.charAt(i) == c)
				return i;
			i = skip(s.substring(i), i);
			if (-1 == i)
				return -1;
		}
		return -1;
	}
static int indexOf ( String s , char c ) throws ParsingException { if ( '"' == c ) rude ( "Utils.indexOf cannot be passed quotes" ) ; for ( int i = 0 ; i < s . length ( ) ; i ++ ) { if ( s . charAt ( i ) == c ) return i ; i = skip ( s . substring ( i ) , i ) ; if ( - 1 == i ) return - 1 ; } return - 1 ; }
Performs a C-aware version of String.indexOf(char) in
 that it skips characters in string literals and comments.
Performs a C - aware version of String . indexOf ( char ) in that it skips characters in string literals and comments .