1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:48:11 +00:00
serenity/Userland/Libraries/LibUnicode/IDNA.h
2023-12-10 08:04:58 -05:00

34 lines
498 B
C++

/*
* Copyright (c) 2023, Simon Wanner <simon@skyrising.xyz>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Utf32View.h>
namespace Unicode::IDNA {
enum class MappingStatus : u8 {
Valid,
Ignored,
Mapped,
Deviation,
Disallowed,
DisallowedStd3Valid,
DisallowedStd3Mapped,
};
enum class IDNA2008Status : u8 {
NV8,
XV8,
};
struct Mapping {
MappingStatus status;
IDNA2008Status idna_2008_status;
Utf32View mapped_to;
};
}