private boolean setToKeywordStart ( ) { for ( int i = index ; i < id . length ; ++ i ) { if ( id [ i ] == KEYWORD_SEPARATOR ) { if ( canonicalize ) { for ( int j = ++ i ; j < id . length ; ++ j ) { // increment i past separator for return if ( id [ j ] == KEYWORD_ASSIGN ) { index = i ; return true ; } } } else { if ( ++ i < id . length ) { index = i ; return true ; } } break ; } } return false ; }
If we have keywords advance index to the start of the keywords and return true otherwise return false .