summaryrefslogtreecommitdiff
path: root/AK/UnicodeUtils.h
blob: e7211deaeac9d20667a7e5bdc2c06af5e5f9add7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * Copyright (c) 2021, Max Wipfli <mail@maxwipfli.ch>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include <AK/Forward.h>

namespace AK::UnicodeUtils {

constexpr bool is_unicode_control_code_point(u32 code_point)
{
    return code_point < 0x20 || (code_point >= 0x80 && code_point < 0xa0);
}

Optional<StringView> get_unicode_control_code_point_alias(u32);

}