You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
517 B
C++
22 lines
517 B
C++
#ifndef MISC_STRINGOPS_H
|
|
#define MISC_STRINGOPS_H
|
|
|
|
namespace Misc
|
|
{
|
|
|
|
/// Returns true if str1 begins with substring str2
|
|
bool begins(const char* str1, const char* str2);
|
|
|
|
/// Returns true if str1 ends with substring str2
|
|
bool ends(const char* str1, const char* str2);
|
|
|
|
/// 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);
|
|
|
|
}
|
|
|
|
#endif
|