private int putPattern(String name, Pattern p) {
   int start = _buf.position();
   _put(REGEX, name);
   _put(p.pattern());
   _put(patternFlags(p.flags()));
   return _buf.position() - start;
 }
Example #2
0
 private void putPattern(String name, Pattern p) {
   _put(REGEX, name);
   _put(p.pattern());
   _put(regexFlags(p.flags()));
 }