Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/terhechte/emojito
Find all Emoji in a string. Supports complex emoji such as ๐จโ๐ฉโ๐งโ๐ฆ.
https://github.com/terhechte/emojito
emoji rust unicode
Last synced: about 1 month ago
JSON representation
Find all Emoji in a string. Supports complex emoji such as ๐จโ๐ฉโ๐งโ๐ฆ.
- Host: GitHub
- URL: https://github.com/terhechte/emojito
- Owner: terhechte
- License: mit
- Created: 2022-05-05T09:21:32.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-30T15:38:29.000Z (almost 2 years ago)
- Last Synced: 2024-09-16T04:50:02.266Z (2 months ago)
- Topics: emoji, rust, unicode
- Language: Rust
- Homepage: https://crates.io/crates/emojito
- Size: 290 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE.md
Awesome Lists containing this project
README
[![license](https://shields.io/badge/license-MIT-green)](https://github.com/terhechte/emojito/blob/main/LICENSE.md)
![Rust CI](https://github.com/terhechte/emojito/actions/workflows/ci.yml/badge.svg)
![Documentation](https://docs.rs/emojito/badge.svg)# Emojito
``` toml
emojito = "0.2.1"
```Find Emoji in strings. Supports complex emoji such as ๐จโ๐ฉโ๐งโ๐ฆ.
Uses the `unic-emoji-char` crate in the background, and does not rely on regexes.## Usage
``` rs
let content = "Test ๐โค๏ธ! ๐ป๐ ๐จโ๐ฉโ๐ฆ kk ๐จโ๐ฉโ๐งโ๐ฆ";
let emojis = emojito::find_emoji(content);
assert_eq!(emojis.len(), 6);
```