File tree Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -444,7 +444,7 @@ extension _StringObject {
444
444
#if _pointerBitWidth(_64) && false
445
445
return 32
446
446
#elseif _pointerBitWidth(_32) || true
447
- return 20
447
+ return 32
448
448
#else
449
449
#error("Unknown platform")
450
450
#endif
Original file line number Diff line number Diff line change @@ -24,16 +24,10 @@ func printUppercase(_ string: String) {
24
24
@main
25
25
struct Main {
26
26
static func main( ) {
27
- let str = " Hello "
28
- print ( str)
29
- // CHECK: Hello
30
- let str2 = " World "
31
- print ( str2)
32
- // CHECK: World
33
- printUppercase ( " abcde " )
34
- // CHECK: ABCDE
35
- let str3 = " ! " + str2. uppercased ( )
36
- print ( str3)
37
- // CHECK: ! WORLD
27
+ let str = " Hello Hello This Is A Long String "
28
+ print ( str. uppercased ( ) )
29
+ for word in str. split ( separator: " " ) {
30
+ print ( word. lowercased ( ) )
31
+ }
38
32
}
39
33
}
You can’t perform that action at this time.
0 commit comments