Changeset 1052 for trunk/lib/utility.h


Ignore:
Timestamp:
Apr 18, 2010, 4:39:57 AM (13 years ago)
Author:
Peter Johansson
Message:

refs #450. using fnmatch in codon fil name pattern match.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/utility.h

    r978 r1052  
    7878  std::string directory_name(std::string path);
    7979
    80   /**
    81      Function to compare strings. Strings may contain '*'.
    82 
    83      \return true if \a a and \a b are identical.
    84    */
    85   bool equal(std::string::const_iterator first1,
    86              std::string::const_iterator end1,
    87              std::string::const_iterator first2,
    88              std::string::const_iterator end2);
    89 
    9080  ///
    9181  /// @return everything after last '/'
    9282  ///
    9383  std::string file_name(const std::string&);
     84
     85  /**
     86     \return true if \a str matches \a pattern
     87
     88     \see fnmatch(3)
     89   */
     90  bool fnmatch(const std::string& pattern, const std::string& str);
    9491
    9592  ///
Note: See TracChangeset for help on using the changeset viewer.