10Duke Scale C++ Client
Loading...
Searching...
No Matches
StringUtils.h
1#ifndef TENDUKE_UTL_STRINGUTILS_H
2#define TENDUKE_UTL_STRINGUTILS_H
3
4#include <string>
5
6namespace tenduke { namespace utl {
7
8// TODO: Move to tenduke::utl::string
9
16std::string toLowerCaseASCII(const std::string &string);
17
18namespace string {
19
26bool endsWith(
27 const std::string &string,
28 const std::string &suffix
29);
30
37bool startsWith(
38 const std::string &string,
39 const char *prefix
40);
41}
42
43}}
44
45#endif //TENDUKE_UTL_STRINGUTILS_H
bool startsWith(const std::string &string, const char *prefix)
Checks if string starts with given suffix.
Definition StringUtils.cpp:20
bool endsWith(const std::string &string, const std::string &suffix)
Checks if string ends with given suffix.
Definition StringUtils.cpp:8
Utilities.
Definition Base64Decoder.h:10
std::string toLowerCaseASCII(const std::string &string)
Returns a copy of provided ASCII-string converted to lower-case.
Definition StringUtils.cpp:27
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7