sincerely Singaporean

If you have not done so, read this full tutorial on how to use SGEXTN to build an application.

SGXNumberAwareFilePathLesserThan

see header file

see source file

class SGXNumberAwareFilePathLesserThan;

part of SGEXTN module SG_FileSystem

sorts file paths in alphabetical order taking into account numbers in file names

detailed description

list of all including inherited members

implementation details

preprocessor file inclusion directive: #include ‹SGXFileSystem.h›

CMake target for BuildLah: SGEXTN::SG_FileSystem

see this link for more information about BuildLah

parent class: (none)

children classes: (none)

instance member functions

[[nodiscard]] bool operator()(const SGXString& a, const SGXString& b);

Detailed Description

SGXNumberAwareFilePathLesserThan provides a comparator struct for sorting file paths in ascending alphabetical order for display to the user. This takes into account numbers in file names, so file9 would be before file10.

Implementation Details

Uses SGXFileSystem::numberAwareLesserThan

[[nodiscard]] bool operator()(const SGXString& a, const SGXString& b);

Returns if a should be in front of b.

The presence of operator() makes SGXNumberAwareFilePathLesserThan a functor.

The file names are decoded before comparison.

©2025 05524F.sg (Singapore)

contact 05524F / report a bug / make a suggestion

about 05524F SINGAPORE values

list of 05524F projects