Skip to content

encoding.utf8.east_asian #

Copyright (c) 2021 Takahiro Yaota, a.k.a. zakuro. All rights reserved. Use of this source code is governed by an MIT license that can be found in the LICENSE file.

fn display_width #

fn display_width(s string, ambiguous_width int) int

display_width return the display width as number of unicode chars from a string.

fn east_asian_width_property_at #

fn east_asian_width_property_at(s string, index int) EastAsianWidthProperty

width_property_at returns the East Asian Width properties at string[index]

enum EastAsianWidthProperty #

enum EastAsianWidthProperty {
	full
	half
	wide
	narrow
	ambiguous
	neutral
}

EastAsianWidthType represents East_Asian_Width informative prorperty