BlinkenArea - GitList
Repositories
Blog
Wiki
permissioner
Code
Commits
Branches
Tags
Search
Tree:
355a113
Branches
Tags
master
permissioner
libpermissioner
include
permissioner
StringUtils.h
add copyright & license
Stefan Schuermans
commited
355a113
at 2020-09-17 19:23:53
StringUtils.h
Blame
History
Raw
/** * Permissioner: set file ownerships and permissions * Copyright 2020: Stefan Schuermans, Aachen, Germany <stefan@schuermans.info> * Copyleft: GNU GENERAL PUBLIC LICENSE version 3 (see LICENSE) */ #ifndef STRING_UTILS_H #define STRING_UTILS_H #include <string> class StringUtils { public: /** * @brief get next whitespace separated field in string * @param[in] str string on which to operate * @param[in, out] pos current position, updated to begin of next field * @param[out] field value of field extracted from string * @param[in] name filed name for exception * @throws std::exception if something goes wrong */ static void getNextField(std::string const &str, std::string::size_type &pos, std::string &field, std::string const &name); }; #endif // #ifndef STRING_UTILS_H