hphp/runtime/ext/json/JSON_parser.cpp
bool matchSeparator(const char** pp, char ch) {
  const char* p = *pp;
  if (LIKELY(*p == ch)) { *pp = p + 1; return true; };
  p = skipSpace(p);
  if (LIKELY(*p == ch)) { *pp = p + 1; return true; }
  return false;
}
/*
 * Skip whitespace, then if next char is 'ch', consume it and return true,
 * otherwise let it be and return false.
 */
Skip whitespace, then if next char is 'ch', consume it and return true,
otherwise let it be and return false.
Skip whitespace then if next char is ' ch ' consume it and return true otherwise let it be and return false .
bool matchSeparator(const char** pp, char ch) {
  const char* p = *pp;
  if (LIKELY(*p == ch)) { *pp = p + 1; return true; };
  p = skipSpace(p);
  if (LIKELY(*p == ch)) { *pp = p + 1; return true; }
  return false;
}
bool matchSeparator ( const char * * pp , char ch ) { const char * p = * pp ; if ( LIKELY ( * p == ch ) ) { * pp = p + 1 ; return true ; } ; p = skipSpace ( p ) ; if ( LIKELY ( * p == ch ) ) { * pp = p + 1 ; return true ; } return false ; }
Skip whitespace, then if next char is 'ch', consume it and return true,
 otherwise let it be and return false.
Skip whitespace then if next char is ' ch ' consume it and return true otherwise let it be and return false .