18 lines
472 B
Text
18 lines
472 B
Text
|
|
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)
|