1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-04-02 11:36:41 +00:00
openmw/libs/platform/stringops.hpp

19 lines
563 B
C++

#ifndef __STRINGOPS_H
#define __STRINGOPS_H
namespace OMW { namespace Platform {
/// 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