Skip to content

New Mojee.Match static method and overload #1

@geoffreymcgill

Description

@geoffreymcgill

The new Mojee.Match static method and overloads enables the easy querying of the input text for list of Emoji Match instances that match emoji shortcodes or emoji characters or both.

Signatures

IEnumberable<Match> Mojee.Match(string text)
IEnumberable<Match> Mojee.Match(string text, MatchType filter)

By default, Mojee.Match will return all MatchType.Shortcode and MatchType.Character matches. The Match results can be narrowed by passing a MatchType as the second argument.

Usage

// Return a collection of all emoji shortcode and character matches from the input string
var list1 = Mojee.Match(text);

// Return a collection of all emoji shortcode matches from the input string
var list2 = Mojee.Match(text, MatchType.Shortcode);

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions