runes

package
v0.0.0-...-dc64ae7 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2021 License: CC0-1.0 Imports: 1 Imported by: 0

Documentation

Overview

Package runes implements simple functions to manipulate Unicode runes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteLen

func ByteLen(r rune) int

ByteLen returns the byte length of the rune when encoded into UTF-8 using `utf8.EncodeRune`.

func ToBytes

func ToBytes(s []rune) []byte

ToBytes converts a rune slice to a UTF-8 encoded byte slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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