|
Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
|
Natural alphanumeric sorting and glob pattern expansion utilities. More...
#include <algorithm>#include <cctype>#include <filesystem>#include <stdexcept>#include <string>#include <string_view>#include <vector>#include <glob.h>

Go to the source code of this file.
Namespaces | |
| namespace | correlation |
| namespace | correlation::readers |
| namespace | correlation::readers::detail |
Functions | |
| std::string_view | correlation::readers::detail::extractDigits (std::string_view str_view, size_t &pos) noexcept |
| std::string_view | correlation::readers::detail::stripLeadingZeros (std::string_view num) noexcept |
| bool | correlation::readers::detail::wildcardMatch (std::string_view pattern, std::string_view str) noexcept |
| Checks if a string matches a wildcard pattern containing '*' and '?'. | |
| std::vector< std::filesystem::path > | correlation::readers::detail::matchComponentEntries (std::string_view component_pattern, bool is_last, const std::vector< std::filesystem::path > &candidate_paths) |
| Matches directory entries against a component pattern for all candidate paths. | |
| std::vector< std::string > | correlation::readers::detail::expandWildcardsFilesystem (const std::string &pattern) |
| Cross-platform filesystem-based wildcard expansion. | |
| bool | correlation::readers::naturalLess (std::string_view str_a, std::string_view str_b) noexcept |
| Performs natural alphanumeric comparison of two strings. | |
| void | correlation::readers::naturalSort (std::vector< std::string > &paths) |
| Sorts a container of file paths in natural alphanumeric order. | |
| std::vector< std::string > | correlation::readers::expandWildcards (const std::string &pattern) |
| Expands wildcard patterns (*, ?) in a path and sorts naturally. | |
Natural alphanumeric sorting and glob pattern expansion utilities.