Support conversion of linkshere
[dueringa_WikiWalker.git] / inc / StringUtils.h
blobdf0ef9351e0e87b0a8da7fa311dd8fc82768fd55
1 //! \file StringUtils.h
3 #ifndef WIKIWALKER_STRINGUTILS_H
4 #define WIKIWALKER_STRINGUTILS_H
6 #include <string>
8 namespace WikiWalker
10 //! A collection of string utilities
11 namespace StringUtils
13 /*!
14 * Checks whether a string begins with another string.
15 * \param stringToTest the string that should be tested
16 * \param beginning the search string
17 * \returns true if first string begins with the second one, otherwise
18 * false. Also returns false if either string is empty.
20 bool startsWith(const std::string& stringToTest,
21 const std::string& beginning);
22 } // namespace StringUtils
23 } // namespace WikiWalker
25 #endif // WIKIWALKER_STRINGUTILS_H