Categories
- Code (3)
- Code Snippets (12)
- git (1)
- Hardware (1)
- News (5)
- Objective-C (6)
- Precompiled (4)
- Programming (1)
- Review (1)
- Swift (9)
- Swift Standard Library (3)
- Tips (3)
- Tutorial (22)
- Uncategorized (3)
- WWDC (1)
-
Recent Posts
Meta
-
Tag Archives: SinkType
Swift Standard Library: transcode
Swift Standard Library: transcode The transcode function lets to convert strings from one Unicode encoding to another, for example UTF16 to UTF8. The definition you get when you command-click on the function is quite intimidating:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
/* func transcode< Input : GeneratorType, Output : SinkType, InputEncoding : UnicodeCodecType, OutputEncoding : UnicodeCodecType where InputEncoding.CodeUnit == InputEncoding.CodeUnit, OutputEncoding.CodeUnit == OutputEncoding.CodeUnit> (inputEncoding: InputEncoding.Type, outputEncoding: OutputEncoding.Type, input: Input, output: Output, #stopOnError: Bool) -> (Bool) */ |
It is also incorrect; … Continue reading
Posted in Swift, Swift Standard Library
Tagged SinkType, transcode, Unicode, UnicodeCodecType, UTF16, UTF32, UTF8
1 Comment