diff options
Diffstat (limited to 'src/uscxml/util/String.h')
-rw-r--r-- | src/uscxml/util/String.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/uscxml/util/String.h b/src/uscxml/util/String.h new file mode 100644 index 0000000..5344245 --- /dev/null +++ b/src/uscxml/util/String.h @@ -0,0 +1,34 @@ +/** + * @file + * @author 2016 Stefan Radomski (stefan.radomski@cs.tu-darmstadt.de) + * @copyright Simplified BSD + * + * @cond + * This program is free software: you can redistribute it and/or modify + * it under the terms of the FreeBSD license as published by the FreeBSD + * project. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the FreeBSD license along with this + * program. If not, see <http://www.opensource.org/licenses/bsd-license>. + * @endcond + */ + +#ifndef STRING_H_FD462039 +#define STRING_H_FD462039 + +#include <string> +#include <list> + +namespace uscxml { + +std::list<std::string> tokenize(const std::string& line, const char seperator = ' ', bool trimWhiteSpace = true); +std::string spaceNormalize(const std::string& text); +bool nameMatch(const std::string& eventDescs, const std::string& event); + +} + +#endif /* end of include guard: STRING_H_FD462039 */ |