1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-24 06:23:52 +00:00
openmw-tes3mp/components/misc/stringops.hpp

31 lines
717 B
C++
Raw Normal View History

#ifndef MISC_STRINGOPS_H
#define MISC_STRINGOPS_H
2012-12-28 16:54:56 +00:00
#include <string>
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);
2012-12-28 16:54:56 +00:00
std::string toLower (const std::string& name);
bool stringCompareNoCase (std::string first, std::string second);
bool compare_string_ci (std::string first, std::string second);
}
#endif