搜尋套件、儲存庫與 APP 分類

套件詳情v0.0.10

remove_emoji

Dart 與 Flutter 套件精確地取代或移除文字中的表情符號

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
1.1萬
喜歡數
41
Pub 分數
160

安裝套件

flutter pub add remove_emoji

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

remove_emoji 包是一個 Dart 和 Flutter 工具,旨在跨多個平台準確檢測、替換或移除文字中的表情符號。它支援廣泛的表情符號字元,包括複雜的符號如旗幟和膚色修飾符,確保可靠的文本處理。非常適合清潔使用者輸入或準備文字進行分析,可無縫整合至 Android、iOS、Web、macOS、Windows 和 Linux 上的 Flutter 應用程式。該套件輕量且高效,適用於即時文字操作。

適用情境

  • 清理使用者產生的內容
  • 準備文本以進行NLP處理
  • 在聊天應用中過濾表情符號
  • 儲存前的資料清理
  • 從表單輸入中刪除表情符號

主要特色

  • 精確的 emoji 檢測
  • 對複雜表情符號序列的支援
  • 跨平台相容性
  • 簡單的 API 結合
  • 可設定的取代或移除

適合對象

  • 文字預處理管道
  • 使用者輸入驗證
  • 內容審核工具
  • 國際化應用開發
  • 需要乾淨文本輸出的應用程式

使用建議

  • 可能無法立即處理稀有或新新增的表情符號
  • 對超大文字塊的效能影響
  • 需要手動更新以支援新的Unicode表情符號標準

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

Remove Emoji 😢

Dart package accurately replace/remove emojis in text. Remove-emoji heavily inspired by NodeJS package emoji-regex.

Usage

A simple usage example:

import 'package:remove_emoji/remove_emoji.dart';

void main() {
  var word = '🤣h😌e🙄l😪l😓o😳🤔👨‍🦰🤶🏿 🧝‍♂️🍝🥘🌯🍦🥂🥂🎂🍰🧁🍨🍧😁w🤷‍♂️o😎r🤪l🤦‍♂️d🐸🤑😆😖🎉🍾🤟🤩😢🐭😡😍📧😄😔😇🧐😈🙁🤓🙂🥱';
  var remove = RemoveEmoji();

  //  with trim
  print(remove.clean(word));

  // without trim
  print(remove.clean(word,'', false));

  // or use extension 🤓

  // with trim
  print(word.removEmoji);
 // without trim
 print(word.removEmojiNoTrim);
}

output

hello world
hello world

Contribution

Happy 😍 to recieve or provide contributions related to this package.

Features and bugs

Please file feature requests and bugs at the issue tracker.

所屬分類

原始碼儲存庫

使用此套件的專案