回答編集履歴
1
半角ー>全角を追加
test
CHANGED
@@ -27,3 +27,15 @@
|
|
27
27
|
print(result)
|
28
28
|
|
29
29
|
```
|
30
|
+
|
31
|
+
---
|
32
|
+
|
33
|
+
半角 -> 全角としたいなら、
|
34
|
+
|
35
|
+
```lang-swift
|
36
|
+
|
37
|
+
CFStringTransform(xxxxxx, nil, kCFStringTransformFullwidthHalfwidth, true)
|
38
|
+
|
39
|
+
```
|
40
|
+
|
41
|
+
[CFMutableString Reference](https://developer.apple.com/library/ios/documentation/CoreFoundation/Reference/CFMutableStringRef/#//apple_ref/c/func/CFStringTransform)
|