runes

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: GPL-3.0, MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(s, needle []rune) bool

func Equal

func Equal(a, b []rune) bool

func HasPrefix

func HasPrefix(s, prefix []rune) bool

HasPrefix tests whether the string s begins with prefix.

func HasSuffix

func HasSuffix(s, suffix []rune) bool

HasSuffix tests whether the string s ends with suffix.

func Index

func Index(s, needle []rune) int

func IndexAny

func IndexAny(s, chars []rune) int

IndexAny returns the index of the first instance of any Unicode code point from chars in s, or -1 if no Unicode code point from chars is present in s.

func IndexLastRune

func IndexLastRune(s []rune, r rune) int

func IndexRune

func IndexRune(s []rune, r rune) int

func LastIndex

func LastIndex(s, needle []rune) int

func Max

func Max(s []rune) (max rune)

func Min

func Min(s []rune) rune

Types

This section is empty.

Jump to

Keyboard shortcuts

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