minus-squareWalnut356@programming.devtoProgramming@programming.dev•The Absolute Minimum Every Software Developer Must Know About Unicode in 2023 (Still No Excuses!)linkfedilinkarrow-up1·edit-22 years agoThat depends on your definition of correct lmao. Rust explicitly counts utf-8 scalar values, because that’s the length of the raw bytes contained in the string. There are many times where that value is more useful than the grapheme count. linkfedilink
That depends on your definition of correct lmao. Rust explicitly counts utf-8 scalar values, because that’s the length of the raw bytes contained in the string. There are many times where that value is more useful than the grapheme count.