2010-01-04 13:48:18 +00:00
|
|
|
#ifndef __STRINGOPS_H
|
|
|
|
#define __STRINGOPS_H
|
|
|
|
|
|
|
|
/// Returns true if str1 begins with substring str2
|
|
|
|
bool begins(const char* str1, const char* str2);
|
|
|
|
|
2010-01-07 19:33:29 +00:00
|
|
|
/// Returns true if str1 ends with substring str2
|
|
|
|
bool ends(const char* str1, const char* str2);
|
|
|
|
|
2010-02-17 15:45:55 +00: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);
|
|
|
|
|
2010-01-04 13:48:18 +00:00
|
|
|
#endif
|