2025-08-11 18:05:26 -07:00
|
|
|
|
CFStringRef s
|
|
|
|
|
|
|
|
|
|
|
|
s = @"møøse"
|
|
|
|
|
|
printf @"\"%@\"",s
|
|
|
|
|
|
print @"character length:",len(s)
|
|
|
|
|
|
print @"unicode length:",,len(s,_kLenUnicode)
|
|
|
|
|
|
print @"byte length UTF8:",len(s,_kLenBytesUTF8)
|
|
|
|
|
|
print @"byte length UTF16:",len(s,_kLenBytesUTF16)
|
|
|
|
|
|
|
|
|
|
|
|
print
|
|
|
|
|
|
|
|
|
|
|
|
s = @"𝔘𝔫𝔦𝔠𝔬𝔡𝔢"
|
|
|
|
|
|
printf @"\"%@\"",s
|
|
|
|
|
|
print @"character length:",len(s)
|
|
|
|
|
|
print @"unicode length:",,len(s,_kLenUnicode)
|
|
|
|
|
|
print @"byte length UTF8:",len(s,_kLenBytesUTF8)
|
|
|
|
|
|
print @"byte length UTF16:",len(s,_kLenBytesUTF16)
|
2026-02-01 16:33:20 -08:00
|
|
|
|
|
|
|
|
|
|
HandleEvents
|