Loading...
Searching...
No Matches
eastasianwidthdef.h
Go to the documentation of this file.
/*
* Definitions of internal data types for Indic Conjunct Break.
*
* Copyright (C) 2024 Wu Yongwei <wuyongwei at gmail dot com>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the author be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* including commercial applications, and to alter it and redistribute
* it freely, subject to the following restrictions:
*
* 1. The origin of this software must not be misrepresented; you must
* not claim that you wrote the original software. If you use this
* software in a product, an acknowledgement in the product
* documentation would be appreciated but is not required.
* 2. Altered source versions must be plainly marked as such, and must
* not be misrepresented as being the original software.
* 3. This notice may not be removed or altered from any source
* distribution.
*/
#ifndef EASTASIANWIDTHDEF_H
#define EASTASIANWIDTHDEF_H
#include "unibreakdef.h"
enum EastAsianWidthClass
{
EAW_A,
EAW_F,
EAW_H,
EAW_Na,
EAW_W,
EAW_N,
};
struct EastAsianWidthProperties
{
utf32_t start;
utf32_t end;
enum EastAsianWidthClass prop;
};
enum EastAsianWidthClass ub_get_char_eaw_class(utf32_t ch);
#endif /* EASTASIANWIDTHDEF_H */
EastAsianWidthClass
EastAsianWidthClass
East Asian Width (ea) class.
Definition eastasianwidthdef.h:34
EAW_W
@ EAW_W
Wide.
Definition eastasianwidthdef.h:39
EAW_A
@ EAW_A
Ambiguous.
Definition eastasianwidthdef.h:35
EAW_Na
@ EAW_Na
Narrow.
Definition eastasianwidthdef.h:38
EAW_H
@ EAW_H
Halfwidth.
Definition eastasianwidthdef.h:37
EAW_N
@ EAW_N
Neutral.
Definition eastasianwidthdef.h:40
EAW_F
@ EAW_F
Fullwidth.
Definition eastasianwidthdef.h:36
ub_get_char_eaw_class
enum EastAsianWidthClass ub_get_char_eaw_class(utf32_t ch)
Gets the East Asian Width class of a character.
Definition eastasianwidthdef.c:34
EastAsianWidthProperties
Struct for entries of East Asian Width properties.
Definition eastasianwidthdef.h:48
EastAsianWidthProperties::end
utf32_t end
End codepoint, inclusive.
Definition eastasianwidthdef.h:50
EastAsianWidthProperties::start
utf32_t start
Start codepoint.
Definition eastasianwidthdef.h:49
EastAsianWidthProperties::prop
enum EastAsianWidthClass prop
The East Asian Width property.
Definition eastasianwidthdef.h:51
utf32_t
unsigned int utf32_t
Type for UTF-32 data points.
Definition unibreakbase.h:49
unibreakdef.h
Header file for private definitions in the libunibreak library.