python compare Filenames
This commit is contained in:
parent
14350abf52
commit
cd89c39c51
|
|
@ -537,6 +537,16 @@ operator < (const string &other) const {
|
|||
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
|
||||
|
|
|
|||
|
|
@ -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 int compare_to(const Filename &other) const;
|
||||
|
||||
INLINE void output(ostream &out) const;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue