[+] AuEndsWith char variant
[+] AuStartsWith char variant
This commit is contained in:
parent
0965d38675
commit
c2d29861e3
@ -52,6 +52,18 @@ static auline AU_CONSTEXPR_17 bool AuEndsWith(AuROString const &value, AuROStrin
|
||||
}
|
||||
}
|
||||
|
||||
static auline AU_CONSTEXPR_17 bool AuEndsWith(AuROString const &value, const char &ending)
|
||||
{
|
||||
if (value.empty())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
return value[value.size() - 1] == ending;
|
||||
}
|
||||
}
|
||||
|
||||
static auline AU_CONSTEXPR_17 bool AuStartsWith(AuROString const &value, AuROString const &starting)
|
||||
{
|
||||
#if defined(AU_STRING_IS_TINYUTF_EXPERIMENT)
|
||||
@ -63,6 +75,18 @@ static auline AU_CONSTEXPR_17 bool AuStartsWith(AuROString const &value, AuROStr
|
||||
#endif
|
||||
}
|
||||
|
||||
static auline AU_CONSTEXPR_17 bool AuStartsWith(AuROString const &value, const char &starting)
|
||||
{
|
||||
if (value.empty())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
return value[0] == starting;
|
||||
}
|
||||
}
|
||||
|
||||
/// Alias for AuCodepointsToLower
|
||||
static AuString AuToLower(const AuROString &in)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user