pub fn calcWtf16LeLen(wtf8: []const u8) CalcWtf16LeLenError!usize
Returns length in WTF-16LE of WTF-8 slice as length of []u16. Length in []u8 is 2*len16.
wtf8: []const u8
1479 1480 1481
pub fn calcWtf16LeLen(wtf8: []const u8) CalcWtf16LeLenError!usize { return calcUtf16LeLenImpl(wtf8, .can_encode_surrogate_half); }
Returns length in WTF-16LE of WTF-8 slice as length of []u16. Length in []u8 is 2*len16.