Skip to main content

encode_ccc_table_bytes

Function encode_ccc_table_bytes 

Source
pub fn encode_ccc_table_bytes(table: &[(u32, u8)]) -> Vec<u8> 
Expand description

Encode the canonical-combining-class table.

Layout: [count: u32 LE] followed by count records of (cp: u32 LE, ccc: u32 LE) - 8 bytes per record so the runtime helper can reuse the same (table_addr + 4 + mid * 8) rebase arithmetic as the existing case-folding helper. The CCC value is widened from u8 to u32 for the same alignment reason as the decomposition pool_len.