Compare commits
2 Commits
0965d38675
...
f7722a1b1c
Author | SHA1 | Date | |
---|---|---|---|
f7722a1b1c | |||
c2d29861e3 |
@ -253,8 +253,10 @@
|
||||
|
||||
#if defined(AU_LANG_CPP_20_)
|
||||
#define AU_BIT_FIELD_AFTER_20(n) : n
|
||||
#define AU_BIT_FIELD_INIT_AFTER_20(n) { n }
|
||||
#else
|
||||
#define AU_BIT_FIELD_AFTER_20(n)
|
||||
#define AU_BIT_FIELD_INIT_AFTER_20(n)
|
||||
#endif
|
||||
|
||||
#if defined(AU_LANG_CPP_20_)
|
||||
|
@ -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