10 releases

0.4.1 Oct 28, 2025
0.4.0 Feb 26, 2025
0.3.0 Nov 23, 2024
0.2.0 May 28, 2024
0.1.0 Apr 29, 2021

#107 in Text processing

Download history 23274/week @ 2025-10-30 25170/week @ 2025-11-06 24418/week @ 2025-11-13 25131/week @ 2025-11-20 19776/week @ 2025-11-27 21999/week @ 2025-12-04 25579/week @ 2025-12-11 21898/week @ 2025-12-18 14622/week @ 2025-12-25 22452/week @ 2026-01-01 22468/week @ 2026-01-08 26846/week @ 2026-01-15 60275/week @ 2026-01-22 95552/week @ 2026-01-29 132039/week @ 2026-02-05 71394/week @ 2026-02-12

364,098 downloads per month
Used in 111 crates (6 directly)

Unicode-3.0

335KB
5.5K SLoC

icu_pattern crates.io

icu_pattern is a utility crate of the ICU4X project.

It includes a Pattern type which supports patterns with various storage backends.

The types are tightly coupled with the writeable crate.

Examples

Parsing and interpolating with a single-placeholder pattern:

use icu_pattern::SinglePlaceholderPattern;
use writeable::assert_writeable_eq;

// Parse a pattern string:
let pattern = SinglePlaceholderPattern::try_from_str(
    "Hello, {0}!",
    Default::default(),
)
.unwrap();

// Interpolate into the pattern string:
assert_writeable_eq!(pattern.interpolate(["World"]), "Hello, World!");

More Information

For more information on development, authorship, contributing etc. please visit ICU4X home page.

Dependencies

~155–650KB
~15K SLoC