/[debian]/mimetic/trunk/mimetic/utils.cxx
ViewVC logotype

Diff of /mimetic/trunk/mimetic/utils.cxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1730 by gregoa, Wed Oct 8 16:20:52 2008 UTC revision 1731 by gregoa, Fri May 15 15:35:42 2009 UTC
# Line 22  namespace mimetic Line 22  namespace mimetic
22    
23  using namespace std;  using namespace std;
24    
25    
26  /**  /**
27   * same as std::endl but NOT flush the buffer   * same as std::endl but NOT flush the buffer
28   */   */
# Line 76  private: Line 77  private:
77  };  };
78    
79    
80    bool string_is_blank(const std::string& s)
81    {
82        size_t i, len = s.length();
83    
84        for(i = 0; i < len; ++i)
85            if(!isblank(s[i]))
86                return false;
87        return true;
88    }
89    
90  /// extract the filename from a fqn  /// extract the filename from a fqn
91  string extractFilename(const string& fqn)  string extractFilename(const string& fqn)

Legend:
Removed from v.1730  
changed lines
  Added in v.1731

  ViewVC Help
Powered by ViewVC 1.1.26