strutils

package module
v0.0.0-...-f8d14f0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2020 License: MIT Imports: 7 Imported by: 1

Documentation

Overview

generated by unicodegen

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Block

func Block(r rune) string

Block returns the name of the Unicode block that contains the rune r.

func FindRunesByName

func FindRunesByName(needle string) []rune

FindRunesByName returns a list of runes whose name contains needle.

func OldUnicodeName

func OldUnicodeName(r rune) string

OldUnicodeName returns the Unicode 1.0 name of the given rune.

func RuneName

func RuneName(r rune) string

RuneName returns a name for the given rune (either new Unicode or Unicode 1.0).

func SplitLength

func SplitLength(s string, length int) []string

SplitLength returns a slice of strings, each string is at most length bytes long. Does not break UTF-8 codepoints.

func TruncateString

func TruncateString(s string, length int) string

TruncateString truncates s to a maximum of length bytes without breaking UTF-8 codepoints.

func UnicodeName

func UnicodeName(r rune) string

UnicodeName returns the Unicode name of the given rune.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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