mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 20:28:11 +00:00
AK: Add FlyString::to_lowercase() and LogStream operator<<(FlyString)
This commit is contained in:
parent
7f8dc347b5
commit
c4a6d6ae9f
6 changed files with 39 additions and 16 deletions
17
AK/String.h
17
AK/String.h
|
@ -111,25 +111,16 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
String(const FlyString&);
|
||||
|
||||
static String repeated(char, size_t count);
|
||||
bool matches(const StringView& mask, CaseSensitivity = CaseSensitivity::CaseInsensitive) const;
|
||||
|
||||
int to_int(bool& ok) const;
|
||||
unsigned to_uint(bool& ok) const;
|
||||
|
||||
String to_lowercase() const
|
||||
{
|
||||
if (!m_impl)
|
||||
return String();
|
||||
return m_impl->to_lowercase();
|
||||
}
|
||||
|
||||
String to_uppercase() const
|
||||
{
|
||||
if (!m_impl)
|
||||
return String();
|
||||
return m_impl->to_uppercase();
|
||||
}
|
||||
String to_lowercase() const;
|
||||
String to_uppercase() const;
|
||||
|
||||
bool equals_ignoring_case(const StringView&) const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue