Commits

Russ Cox  committed 8521946

spacing nits

  • Participants
  • Parent commits 4816e3c

Comments (0)

Files changed (2)

File re2/prefilter_tree.h

   // of regexps that should be searched.  The matched_atoms should
   // contain all the ids of string atoms that were found to match the
   // content. The caller can use any string match engine to perform
-  // this function.
+  // this function.  This function is thread safe.
   void RegexpsGivenStrings(const vector<int>& matched_atoms,
                            vector<int>* regexps) const;
 
 //                               *args[0], *args[1], ..., *args[n - 1]);
 //
 // -----------------------------------------------------------------------
-// -----------------------------------------------------------------------
 // PARSING HEX/OCTAL/C-RADIX NUMBERS
 //
 // By default, if you pass a pointer to a numeric value, the
   static bool FullMatchN(const StringPiece& text, const RE2& re,
                          const Arg* const args[], int argc);
   static const VariadicFunction2<
-    bool, const StringPiece&, const RE2&, Arg, RE2::FullMatchN> FullMatch;
+      bool, const StringPiece&, const RE2&, Arg, RE2::FullMatchN> FullMatch;
 
   // Exactly like FullMatch(), except that "pattern" is allowed to match
   // a substring of "text".
   static bool PartialMatchN(const StringPiece& text, const RE2& re, // 3..16 args
                             const Arg* const args[], int argc);
   static const VariadicFunction2<
-    bool, const StringPiece&, const RE2&, Arg, RE2::PartialMatchN> PartialMatch;
+      bool, const StringPiece&, const RE2&, Arg, RE2::PartialMatchN> PartialMatch;
 
   // Like FullMatch() and PartialMatch(), except that pattern has to
   // match a prefix of "text", and "input" is advanced past the matched
   static bool ConsumeN(StringPiece* input, const RE2& pattern, // 3..16 args
                        const Arg* const args[], int argc);
   static const VariadicFunction2<
-    bool, StringPiece*, const RE2&, Arg, RE2::ConsumeN> Consume;
+      bool, StringPiece*, const RE2&, Arg, RE2::ConsumeN> Consume;
 
   // Like Consume(..), but does not anchor the match at the beginning of the
   // string.  That is, "pattern" need not start its match at the beginning of
   static bool FindAndConsumeN(StringPiece* input, const RE2& pattern,
                              const Arg* const args[], int argc);
   static const VariadicFunction2<
-    bool, StringPiece*, const RE2&, Arg, RE2::FindAndConsumeN> FindAndConsume;
+      bool, StringPiece*, const RE2&, Arg, RE2::FindAndConsumeN> FindAndConsume;
 
   // Replace the first match of "pattern" in "str" with "rewrite".
   // Within "rewrite", backslash-escaped digits (\1 to \9) can be