mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-11 12:06:07 +00:00
AK: Move to_int(), to_uint() implementations to StringUtils (#1338)
Provide wrappers in String and StringView. Add some tests for the implementations.
This commit is contained in:
parent
918ebabf60
commit
d75fa80a7b
Notes:
sideshowbarker
2024-07-19 17:37:55 +09:00
Author: https://github.com/f-eiwu
Commit: d75fa80a7b
Pull-request: https://github.com/SerenityOS/serenity/pull/1338
7 changed files with 141 additions and 73 deletions
|
@ -112,7 +112,6 @@ public:
|
|||
static String repeated(char, size_t count);
|
||||
bool matches(const StringView& mask, CaseSensitivity = CaseSensitivity::CaseInsensitive) const;
|
||||
|
||||
// FIXME: These should be shared between String and StringView somehow!
|
||||
int to_int(bool& ok) const;
|
||||
unsigned to_uint(bool& ok) const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue