mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibUnicode+LibJS: Propagate OOM from Unicode normalization
This commit is contained in:
parent
1ff29afc45
commit
3d22efccca
Notes:
sideshowbarker
2024-07-17 03:03:37 +09:00
Author: https://github.com/trflynn89
Commit: 3d22efccca
Pull-request: https://github.com/SerenityOS/serenity/pull/16909
4 changed files with 74 additions and 82 deletions
|
@ -7,6 +7,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/DeprecatedString.h>
|
||||
#include <AK/Error.h>
|
||||
#include <AK/Forward.h>
|
||||
#include <AK/Optional.h>
|
||||
#include <AK/Span.h>
|
||||
|
@ -28,6 +29,6 @@ enum class NormalizationForm {
|
|||
NormalizationForm normalization_form_from_string(StringView form);
|
||||
StringView normalization_form_to_string(NormalizationForm form);
|
||||
|
||||
[[nodiscard]] DeprecatedString normalize(StringView string, NormalizationForm form);
|
||||
ErrorOr<DeprecatedString> normalize(StringView string, NormalizationForm form);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue