1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 12:57:35 +00:00

AK: Add String::repeated(StringView, size_t count)

This commit is contained in:
Matthew Olsson 2021-05-23 16:14:48 -07:00 committed by Ali Mohammad Pur
parent be6e4b6f3c
commit 777c232e16
2 changed files with 13 additions and 0 deletions

View file

@ -92,6 +92,7 @@ public:
String(const FlyString&);
[[nodiscard]] static String repeated(char, size_t count);
[[nodiscard]] static String repeated(const StringView&, size_t count);
[[nodiscard]] static String bijective_base_from(size_t value, unsigned base = 26, StringView map = {});