Changeset 226 for trunk/lib/utility.h


Ignore:
Timestamp:
Mar 11, 2007, 8:32:41 PM (15 years ago)
Author:
Peter Johansson
Message:

added reading of config file in Parameter closes ##106 and #98. Move function check_target from svndigest.cc to utility.cc and changed name to node_exist. added support for aliases in Copyright update refs #36

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/utility.h

    r217 r226  
    6363  std::string getenv(const std::string& var);
    6464
     65  ///
     66  /// @brief remove trailing whitespaces
     67  ///
     68  std::string htrim(std::string str);
     69
     70  ///
     71  /// @brief remove leading whitespaces
     72  ///
     73  std::string ltrim(std::string str);
     74
    6575  inline bool match_begin(std::string::const_iterator first,
    6676                          std::string::const_iterator last,
     
    8494
    8595  ///
     96  /// @brief Check whether \a path already exists or not.
     97  ///
     98  /// @return True if \a path exists, false otherwise.
     99  ///
     100  bool node_exist(const std::string& path);
     101
     102  ///
    86103  /// @return the current working directory.
    87104  ///
     
    97114  ///
    98115  time_t str2time(const std::string&);
     116
     117  ///
     118  /// remove leading and trailing whitespaces
     119  ///
     120  inline std::string trim(std::string str) { return htrim(ltrim(str)); }
    99121
    100122  ///
Note: See TracChangeset for help on using the changeset viewer.