mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-25 03:36:36 +00:00
AK: Use new format functions.
This commit is contained in:
parent
560c52989c
commit
1d96d5eea4
Notes:
sideshowbarker
2024-07-19 01:58:58 +09:00
Author: https://github.com/asynts
Commit: 1d96d5eea4
Pull-request: https://github.com/SerenityOS/serenity/pull/3705
Reviewed-by: https://github.com/awesomekling
13 changed files with 74 additions and 91 deletions
|
@ -96,7 +96,7 @@ String urlencode(const StringView& input)
|
|||
for (char ch : input) {
|
||||
if (in_userinfo_set((u8)ch)) {
|
||||
builder.append('%');
|
||||
builder.appendf("%02X", (u8)ch);
|
||||
builder.appendff("{:02X}", ch);
|
||||
} else {
|
||||
builder.append(ch);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue