2022-10-02 22:57:22 -03:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2022, mat
|
2024-06-18 11:24:06 -04:00
|
|
|
* Copyright (c) 2024, Tim Flynn <trflynn89@serenityos.org>
|
2022-10-02 22:57:22 -03:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2023-01-14 09:52:38 -05:00
|
|
|
#include <AK/String.h>
|
2022-10-02 22:57:22 -03:00
|
|
|
#include <AK/StringView.h>
|
|
|
|
|
|
|
|
namespace Unicode {
|
|
|
|
|
|
|
|
enum class NormalizationForm {
|
|
|
|
NFD,
|
|
|
|
NFC,
|
|
|
|
NFKD,
|
|
|
|
NFKC
|
|
|
|
};
|
2024-06-18 11:24:06 -04:00
|
|
|
NormalizationForm normalization_form_from_string(StringView);
|
|
|
|
StringView normalization_form_to_string(NormalizationForm);
|
2022-10-06 10:45:59 -04:00
|
|
|
|
2023-09-06 07:25:56 -04:00
|
|
|
String normalize(StringView string, NormalizationForm form);
|
2022-10-02 22:57:22 -03:00
|
|
|
|
|
|
|
}
|