Skip to content

Commit 1aadae3

Browse files
committed
sort: define UTF8_NBSP and ISO_NBSP constants
1 parent ef3a503 commit 1aadae3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/uu/sort/src/sort.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ fn locale_decimal_pt() -> u8 {
122122
const NEGATIVE: &u8 = &b'-';
123123
const POSITIVE: &u8 = &b'+';
124124

125+
// Non-breaking space constants
126+
const UTF8_NBSP: &[u8] = &[0xc2, 0xa0]; // UTF-8 encoding of non-breaking space (U+00A0)
127+
const ISO_NBSP: u8 = 0xa0; // ISO 8859-1 non-breaking space
128+
125129
// SI unit constants for byte parsing
126130
const KILO: usize = 1024;
127131
const MEGA: usize = 1024 * 1024;

0 commit comments

Comments
 (0)