Skip to content

mekaem/graphmemes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

graphmemes

A #![no_std] compatible, zero-allocation Unicode grapheme cluster iterator.

Key Features

  • Zero-Allocation Design: Fixed-size buffer implementation with no heap allocations
  • Unicode Processing:
    • Complete UAX #29 grapheme cluster boundary detection
    • Efficient bit pattern-based boundary rules
    • Support for combining marks, emoji, and ZWJ sequences
    • Regional indicator (flag) handling
    • RTL text with combining marks
  • ANSI Support:
    • Optional ANSI escape sequence counting
    • Safe sequence validation and processing

#![no_std] Support

This crate is #![no_std] compatible and makes zero heap allocations. All operations use fixed-size buffers and stack-only data structures.

Dependencies

[dependencies]
owo-colors = "4.1.0"

License

This project is licensed under License: MPL 2.0

About

A zero-allocation, no-std grapheme cluster iterator

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages