private static final int findKeyword ( String s , String [ ] list ) { s = PatternProps . trimWhiteSpace ( s ) . toLowerCase ( rootLocale ) ; for ( int i = 0 ; i < list . length ; ++ i ) { if ( s . equals ( list [ i ] ) ) return i ; } return - 1 ; }
Locale . ROOT only