official

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package official indicates official unicode emoji variables.

Reference: https://www.unicode.org/Public/emoji/15.0/

Date: 2022-05-06, 16:14:52 GMT

Index

Constants

This section is empty.

Variables

View Source
var AllSequences = Sequences{}

AllSequences indicates all specified unicode emoji sequences (including single basic emojis)

Functions

This section is empty.

Types

type Sequence

type Sequence struct {
	Rune    rune
	End     bool
	Nexts   Sequences
	Comment string
}

Sequence shows unicode Emoji sequences

type Sequences

type Sequences map[rune]*Sequence

Sequences is the collection of Sequence type

func (Sequences) AddSequence

func (seq Sequences) AddSequence(s []rune, comment string)

AddSequence add a sequence identified by unicode slice. Notice: this function is NOT goroutine-safe.

func (Sequences) HasEmojiPrefix

func (seq Sequences) HasEmojiPrefix(s string) (has bool, length int)

HasEmojiPrefix checks whether a string is started with an emoji

Jump to

Keyboard shortcuts

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