| 1234567891011121314151617181920212223 |
- #ifndef STRINGUTIL_H_
- #define STRINGUTIL_H_
- #include <string>
- namespace gameplay
- {
- bool startsWith(const char* str, const char* prefix, bool ignoreCase = true);
- bool endsWith(const char* str, const char* suffix, bool ignoreCase = true);
- /**
- * Return true if the strings are equal. Case sensitive.
- */
- bool equals(const std::string& a, const char* b);
- /**
- * Returns true if the strings are equal. Case insensitive.
- */
- bool equalsIgnoreCase(const std::string& a, const char* b);
- }
- #endif
|