public static boolean parseWithKeyword ( final char [ ] query , int offset ) { if ( query . length < ( offset + 4 ) ) { return false ; } return ( query [ offset ] | 32 ) == ' ' && ( query [ offset + 1 ] | 32 ) == ' ' && ( query [ offset + 2 ] | 32 ) == ' ' && ( query [ offset + 3 ] | 32 ) == ' ' ; }
Parse string to check presence of WITH keyword regardless of case .