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

套件詳情v1.4.1

characters

使用對 Unicode/字形簇感知的操作進行字串取代。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
1140萬
喜歡數
507
Pub 分數
160

安裝套件

flutter pub add characters

套件介紹

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

characters 套件為 Dart 提供 Unicode 意識的字串操作,確保索引與取代等運算能尊重字形群組——由多個碼點組成的單一可見字元。此套件讓國際化應用中的文字處理更安全且精確,特別是在使用者輸入複雜文字或表情符號時。該套件擴充 String 並提供 Characters 類別,正確處理組合標記與代理對等邊際情況。

適用情境

  • 國際化文字處理
  • 表情符號和複雜腳本處理
  • 安全的字串切片和索引
  • 文字編輯中的正確游標定位
  • 準確的字串長度計算
  • 使用者輸入驗證

主要特色

  • 字形簇意識
  • Unicode 安全的字串操作
  • 將 String 擴充為 Characters 類
  • 支援所有主要平台
  • 不可變且高效的設計
  • 全面的測試覆蓋率

適合對象

  • 面向全球受眾的應用
  • 文字編輯器和輸入欄位
  • 本地化和國際化專案
  • 使用表情符號或非拉丁文字系統的應用程式
  • 需要精確字串操作的開發者

使用建議

  • 增加最小開銷
  • 需要顯式使用 Characters 類
  • 對於僅包含 ASCII 字符的簡單字串不需要
  • 僅限字串操作
  • 無其他套件的執行時依賴

原始 README

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

Overview

This repository is home to various Dart packages under the dart.dev publisher.

Packages

Package Description Issues Version
args Library for defining parsers for parsing raw command-line arguments into a set of options and values using GNU and POSIX style options. issues pub package
async Utility functions and classes related to the 'dart:async' library. issues pub package
characters String replacement with operations that are Unicode/grapheme cluster aware. issues pub package
collection Collections and utilities functions and classes related to collections. issues pub package
convert Utilities for converting between data representations. Provides a number of Sink, Codec, Decoder, and Encoder types. issues pub package
crypto Implementations of SHA, MD5, and HMAC cryptographic functions. issues pub package
fixnum Library for 32- and 64-bit signed fixed-width integers with consistent behavior between native and JS runtimes. issues pub package
lints Official Dart lint rules. Defines the 'core' and 'recommended' set of lints suggested by the Dart team. issues pub package
logging Provides APIs for debugging and error logging, similar to loggers in other languages, such as the Closure JS Logger and java.util.logging.Logger. issues pub package
os_detect Platform independent OS detection. issues pub package
path A string-based path manipulation library. issues pub package
platform A pluggable, mockable platform information abstraction for Dart. issues pub package
typed_data Utility functions and classes related to the dart:typed_data library. issues pub package

Publishing automation

For information about our publishing automation and release process, see https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.

For additional information about contributing, see our contributing page.

所屬分類

原始碼儲存庫

使用此套件的專案

所在榜單