Files
Aerofoil/PortabilityLayer/PLStringCompare.h

21 lines
485 B
C
Raw Permalink Normal View History

2021-03-08 19:07:06 -05:00
#pragma once
#include "PLCore.h"
#include "PLPasStr.h"
2019-12-31 05:20:07 -05:00
namespace StrCmp
2021-03-08 19:07:06 -05:00
{
2019-12-31 05:20:07 -05:00
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)
2021-03-08 19:07:06 -05:00
{
return CompareCaseInsensitive(string1, string2) == 0;
2019-12-31 05:20:07 -05:00
}
inline bool Equal(const PLPasStr &string1, const PLPasStr &string2)
2021-03-08 19:07:06 -05:00
{
return Compare(string1, string2) == 0;
}
2019-12-31 05:20:07 -05:00
}