1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 21:07:36 +00:00

AK: Add String constructor from ReadonlyBytes.

This commit is contained in:
asynts 2020-08-05 10:37:34 +02:00 committed by Andreas Kling
parent 42b4880653
commit 75cde94c6a
3 changed files with 23 additions and 0 deletions

View file

@ -45,6 +45,7 @@ public:
static NonnullRefPtr<StringImpl> create_uninitialized(size_t length, char*& buffer);
static RefPtr<StringImpl> create(const char* cstring, ShouldChomp = NoChomp);
static RefPtr<StringImpl> create(const char* cstring, size_t length, ShouldChomp = NoChomp);
static RefPtr<StringImpl> create(ReadonlyBytes, ShouldChomp = NoChomp);
NonnullRefPtr<StringImpl> to_lowercase() const;
NonnullRefPtr<StringImpl> to_uppercase() const;