Data update
This commit is contained in:
parent
4d5544505c
commit
4924dd0264
3073 changed files with 55820 additions and 4408 deletions
17
Task/String-length/FutureBasic/string-length.basic
Normal file
17
Task/String-length/FutureBasic/string-length.basic
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue