mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-30 15:21:16 -03:00
Specifically, the width and precision format specifiers are interpreted as referring to the width of the grapheme clusters rather than the byte count of the string. Note that grapheme clusters can differ in width. If a precision is specified for a string, meaning its "maximum number of characters", we consider this to limit the width displayed. If there is a grapheme cluster whose width is greater than 1, it might not be possible to get precisely the desired width. In such cases, this last grapheme cluster is excluded from the output. Note that the definitions used here are not consistent with the `string length` builtin at the moment, but this has already been the case.
18 lines
396 B
TOML
18 lines
396 B
TOML
[package]
|
|
name = "fish-printf"
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
version = "0.2.1"
|
|
repository = "https://github.com/fish-shell/fish-shell"
|
|
description = "printf implementation, based on musl"
|
|
license = "MIT"
|
|
|
|
[dependencies]
|
|
libc = "0.2.155"
|
|
widestring = { version = "1.0.2", optional = true }
|
|
unicode-segmentation = "1.12.0"
|
|
unicode-width = "0.2.0"
|
|
|
|
[lints]
|
|
workspace = true
|