-private:
- std::list<int> extract_numbers (boost::filesystem::path p)
- {
- p = p.leaf ();
-
- std::list<std::string> numbers;
-
- std::string current;
- for (size_t i = 0; i < p.string().size(); ++i) {
- if (isdigit (p.string()[i])) {
- current += p.string()[i];
- } else {
- if (!current.empty ()) {
- numbers.push_back (current);
- current.clear ();
- }
- }
- }
-
- if (!current.empty ()) {
- numbers.push_back (current);
- }