private int findNamedValue ( int begin , String [ ] namedValues , int min ) { int length = ivPos - begin ; for ( int i = 0 ; i < namedValues . length ; i ++ ) { String namedValue = namedValues [ i ] ; if ( length == namedValue . length ( ) && ivString . regionMatches ( true , begin , namedValue , 0 , length ) ) { return min + i ; } } return - 1 ; }
Case - insensitively search the specified list of named values for a substring of the parse string . The substring of the parse string is the range [ begin ivPos ) .