mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 01:59:31 +00:00
LibUnicode: Support IgnorePunnycode option in ToAscii algorithm
This was introduced in UTS 46 revision 31.
This commit is contained in:
parent
5dfb825c5c
commit
923ab8658e
Notes:
github-actions[bot]
2024-12-05 16:30:43 +00:00
Author: https://github.com/shannonbooth
Commit: 923ab8658e
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2675
2 changed files with 11 additions and 0 deletions
|
@ -42,6 +42,11 @@ enum class VerifyDnsLength {
|
|||
Yes,
|
||||
};
|
||||
|
||||
enum class IgnoreInvalidPunycode {
|
||||
No,
|
||||
Yes,
|
||||
};
|
||||
|
||||
struct ToAsciiOptions {
|
||||
CheckHyphens check_hyphens { CheckHyphens::Yes };
|
||||
CheckBidi check_bidi { CheckBidi::Yes };
|
||||
|
@ -49,6 +54,7 @@ struct ToAsciiOptions {
|
|||
UseStd3AsciiRules use_std3_ascii_rules { UseStd3AsciiRules::No };
|
||||
TransitionalProcessing transitional_processing { TransitionalProcessing::No };
|
||||
VerifyDnsLength verify_dns_length { VerifyDnsLength::Yes };
|
||||
IgnoreInvalidPunycode ignore_invalid_punycode { IgnoreInvalidPunycode::No };
|
||||
};
|
||||
|
||||
ErrorOr<String> to_ascii(Utf8View domain_name, ToAsciiOptions const& = {});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue