Logo Search packages:      
Sourcecode: scummvm version File versions

bool Common::FSNode::operator< ( const FSNode node  )  const

Compare the name of this node to the name of another. Directories go before normal files.

Definition at line 50 of file fs.cpp.

References Common::String::compareToIgnoreCase(), getDisplayName(), and isDirectory().

      if (isDirectory() != node.isDirectory())
            return isDirectory();

      return getDisplayName().compareToIgnoreCase(node.getDisplayName()) < 0;

Generated by  Doxygen 1.6.0   Back to index