Files
Aerofoil/PortabilityLayer/PLStringCompare.h
2019-12-31 05:20:07 -05:00

21 lines
495 B
C++

#pragma once
#include "PLCore.h"
#include "PLPasStr.h"
namespace StrCmp
{
int CompareCaseInsensitive(const PLPasStr &string1, const PLPasStr &string2);
int Compare(const PLPasStr &string1, const PLPasStr &string2);
inline bool EqualCaseInsensitive(const PLPasStr &string1, const PLPasStr &string2)
{
return CompareCaseInsensitive(string1, string2) == 0;
}
inline bool Equal(const PLPasStr &string1, const PLPasStr &string2)
{
return Compare(string1, string2) == 0;
}
}