Changeset 214 for trunk/lib/utility.h


Ignore:
Timestamp:
Sep 27, 2006, 1:16:10 PM (15 years ago)
Author:
Peter Johansson
Message:

refs #69 added parsing for comments starting with '#' and '%', respectively

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/utility.h

    r201 r214  
    6363  std::string getenv(const std::string& var);
    6464
    65   inline bool match_begin(std::string::iterator first,
    66                           std::string::iterator last,
     65  inline bool match_begin(std::string::const_iterator first,
     66                          std::string::const_iterator last,
    6767                          const std::string& str)
    6868  { return (std::distance(first, last)>=static_cast<int>(str.size()) &&
     
    7070  }
    7171
    72   inline bool match_end(std::string::iterator first,
    73                         std::string::iterator last,
     72  inline bool match_end(std::string::const_iterator first,
     73                        std::string::const_iterator last,
    7474                        const std::string& str)
    7575  { return (std::distance(first,last)>=static_cast<int>(str.size()) &&
Note: See TracChangeset for help on using the changeset viewer.