umd/external/protobuf-2.6/gtest/fused-src/gtest/gtest-all.cc
bool AtomMatchesChar(bool escaped, char pattern_char, char ch) {
  if (escaped) {  // "\\p" where p is pattern_char.
    switch (pattern_char) {
      case 'd': return IsDigit(ch);
      case 'D': return !IsDigit(ch);
      case 'f': return ch == '\f';
      case 'n': return ch == '\n';
      case 'r': return ch == '\r';
      case 's': return IsWhiteSpace(ch);
      case 'S': return !IsWhiteSpace(ch);
      case 't': return ch == '\t';
      case 'v': return ch == '\v';
      case 'w': return IsWordChar(ch);
      case 'W': return !IsWordChar(ch);
    }
    return IsPunct(pattern_char) && pattern_char == ch;
  }

  return (pattern_char == '.' && ch != '\n') || pattern_char == ch;
}
// Returns true iff the given atom (specified by escaped and pattern)
// matches ch.  The result is undefined if the atom is invalid.
Returns true iff the given atom (specified by escaped and pattern)
matches ch.  The result is undefined if the atom is invalid.
Returns true iff the given atom ( specified by escaped and pattern ) matches ch . The result is undefined if the atom is invalid .
bool AtomMatchesChar(bool escaped, char pattern_char, char ch) {
  if (escaped) {  
    switch (pattern_char) {
      case 'd': return IsDigit(ch);
      case 'D': return !IsDigit(ch);
      case 'f': return ch == '\f';
      case 'n': return ch == '\n';
      case 'r': return ch == '\r';
      case 's': return IsWhiteSpace(ch);
      case 'S': return !IsWhiteSpace(ch);
      case 't': return ch == '\t';
      case 'v': return ch == '\v';
      case 'w': return IsWordChar(ch);
      case 'W': return !IsWordChar(ch);
    }
    return IsPunct(pattern_char) && pattern_char == ch;
  }
  return (pattern_char == '.' && ch != '\n') || pattern_char == ch;
}
bool AtomMatchesChar ( bool escaped , char pattern_char , char ch ) { if ( escaped ) { switch ( pattern_char ) { case ' ' : return IsDigit ( ch ) ; case ' ' : return ! IsDigit ( ch ) ; case ' ' : return ch == ' \f ' ; case ' ' : return ch == ' \n ' ; case ' ' : return ch == ' \r ' ; case ' ' : return IsWhiteSpace ( ch ) ; case ' ' : return ! IsWhiteSpace ( ch ) ; case ' ' : return ch == ' \t ' ; case ' ' : return ch == ' \v ' ; case ' ' : return IsWordChar ( ch ) ; case ' ' : return ! IsWordChar ( ch ) ; } return IsPunct ( pattern_char ) && pattern_char == ch ; } return ( pattern_char == ' ' && ch != ' \n ' ) || pattern_char == ch ; }
Returns true iff the given atom (specified by escaped and pattern)
matches ch.
Returns true iff the given atom ( specified by escaped and pattern ) matches ch .
// "\\p" where p is pattern_char.