textwidth

package module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2021 License: MIT-0 Imports: 3 Imported by: 0

Documentation

Overview

textwidth provides functions for getting the fixed-width width of unicode byte slices, runes and strings.

https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms#In_Unicode

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WidthByte

func WidthByte(b byte) int

func WidthBytes

func WidthBytes(s []byte) (n int)

func WidthRune

func WidthRune(r rune) int

func WidthRunes

func WidthRunes(s []rune) (n int)

func WidthString

func WidthString(s string) (n int)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL