package runes

import "github.com/gobwas/glob/util/runes"

Index

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

Source Files

runes.go

Version
v0.2.3 (latest)
Published
Feb 8, 2018
Platform
linux/amd64
Last checked
5 days ago

Tools for package owners.