python compare Filenames

This commit is contained in:
David Rose 2006-10-13 21:13:39 +00:00
parent 14350abf52
commit cd89c39c51
2 changed files with 11 additions and 0 deletions

View File

@ -537,6 +537,16 @@ operator < (const string &other) const {
return (*(string *)this) < other; return (*(string *)this) < other;
} }
////////////////////////////////////////////////////////////////////
// Function: Filename::compare_to
// Access: Published
// Description:
////////////////////////////////////////////////////////////////////
INLINE int Filename::
compare_to(const Filename &other) const {
return strcmp(_filename.c_str(), other._filename.c_str());
}
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// Function: Filename::output // Function: Filename::output

View File

@ -187,6 +187,7 @@ PUBLISHED:
INLINE bool operator == (const string &other) const; INLINE bool operator == (const string &other) const;
INLINE bool operator != (const string &other) const; INLINE bool operator != (const string &other) const;
INLINE bool operator < (const string &other) const; INLINE bool operator < (const string &other) const;
INLINE int compare_to(const Filename &other) const;
INLINE void output(ostream &out) const; INLINE void output(ostream &out) const;