libunibreak: eastasianwidthdef.h File Reference

libunibreak 7.0

Loading...
Searching...
No Matches
Data Structures | Enumerations | Functions
eastasianwidthdef.h File Reference
`#include "unibreakdef.h"`
Include dependency graph for eastasianwidthdef.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Data Structures
struct | EastAsianWidthProperties
| Struct for entries of East Asian Width properties. More...

## Enumerations
enum | EastAsianWidthClass { EAW_A , EAW_F , EAW_H , EAW_Na , EAW_W , EAW_N }
| East Asian Width (ea) class. More...

## Functions
enum EastAsianWidthClass | ub_get_char_eaw_class (utf32_t ch)
| Gets the East Asian Width class of a character.
bool | ub_is_op_east_asian (utf32_t ch)
| Returns whether an OP (Open Punctuation) is East Asian.

## Enumeration Type Documentation

## ◆ EastAsianWidthClass

enum EastAsianWidthClass

East Asian Width (ea) class.

This is defined in Unicode Standard Annex 11.

Enumerator
EAW_A | Ambiguous.
EAW_F | Fullwidth.
EAW_H | Halfwidth.
EAW_Na | Narrow.
EAW_W | Wide.
EAW_N | Neutral.

## Function Documentation

## ◆ ub_get_char_eaw_class()

enum EastAsianWidthClass ub_get_char_eaw_class | ( | utf32_t | ch | ) |

Gets the East Asian Width class of a character.

Parameters

  ch | character to check

Returns
  the East Asian Width class if found; `EAW_N` otherwise

## ◆ ub_is_op_east_asian()

bool ub_is_op_east_asian | ( | utf32_t | ch | ) |

Returns whether an OP (Open Punctuation) is East Asian.

For the purpose of supporting LB30, being "east asian" here means the char has East_Asian_Width Property F/W/H.

Parameters

  ch | Unicode codepoint (must be an OP)

Returns
  it is east asian or not