2011-06-19 18:14:03 +02:00
|
|
|
#ifndef MISC_STRINGOPS_H
|
|
|
|
#define MISC_STRINGOPS_H
|
|
|
|
|
|
|
|
namespace Misc
|
|
|
|
{
|
2010-01-04 14:48:18 +01:00
|
|
|
|
|
|
|
/// Returns true if str1 begins with substring str2
|
|
|
|
bool begins(const char* str1, const char* str2);
|
|
|
|
|
2010-01-07 20:33:29 +01:00
|
|
|
/// Returns true if str1 ends with substring str2
|
|
|
|
bool ends(const char* str1, const char* str2);
|
|
|
|
|
2010-02-17 16:45:55 +01:00
|
|
|
/// Case insensitive, returns true if str1 begins with substring str2
|
|
|
|
bool ibegins(const char* str1, const char* str2);
|
|
|
|
|
|
|
|
/// Case insensitive, returns true if str1 ends with substring str2
|
|
|
|
bool iends(const char* str1, const char* str2);
|
|
|
|
|
2011-06-19 18:14:03 +02:00
|
|
|
}
|
|
|
|
|
2010-01-04 14:48:18 +01:00
|
|
|
#endif
|