39 std::string::size_type begIdx,endIdx;
40 std::string helpString;
41 std::string delims(
" ");
44 begIdx = algoString.find_first_not_of(delims);
45 while (begIdx != std::string::npos) {
46 endIdx = algoString.find_first_of(delims, begIdx);
47 if (endIdx == std::string::npos)
48 endIdx = algoString.length();
49 helpString = algoString.substr(begIdx, endIdx - begIdx);
53 begIdx = algoString.find_first_not_of(delims, endIdx);