mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-24 16:40:21 +00:00
26 lines
483 B
C++
26 lines
483 B
C++
/*
|
|
* Copyright (c) 2022, mat
|
|
* Copyright (c) 2024, Tim Flynn <trflynn89@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/String.h>
|
|
#include <AK/StringView.h>
|
|
|
|
namespace Unicode {
|
|
|
|
enum class NormalizationForm {
|
|
NFD,
|
|
NFC,
|
|
NFKD,
|
|
NFKC
|
|
};
|
|
NormalizationForm normalization_form_from_string(StringView);
|
|
StringView normalization_form_to_string(NormalizationForm);
|
|
|
|
String normalize(StringView string, NormalizationForm form);
|
|
|
|
}
|