#include "std_cpp_includes.hh"Go to the source code of this file.
Functions | |
| template<typename T> | |
| std::string | findit (std::string arg, char sep, size_t &pos, T &thingie, int &ierr) |
| find a next substring of string arg, terminated by character sep, convert to a thing of type T if possible. | |
| std::string findit | ( | std::string | arg, | |
| char | sep, | |||
| size_t & | pos, | |||
| T & | thingie, | |||
| int & | ierr | |||
| ) |
find a next substring of string arg, terminated by character sep, convert to a thing of type T if possible.
pos is beginning of search zone on call, next occurrence of sep orelse length of arg on return. If at end, returns empty string. Integer flag ierr is = 0 for successful conversion to T, else 1.
1.4.7