3 ms·
The string indexing extensions are just terrible. There are good reasons why Swift does not provide these things out of the box even though objective-c did: htt
by masklinn 11y ago
The string indexing extensions are just terrible. There are good reasons why Swift does not provide these things out of the box even though objective-c did: http://oleb.net/blog/2014/07/swift-strings/#character-indices-and-ranges http://oleb.net/blog/2014/07/swift-strings/#character-indice...
- gok2 11y agoDid you read the source code: https://github.com/goktugyil/EZSwiftExtensions/blob/master/Sources/StringExtensions.swift https://github.com/goktugyil/EZSwiftExtensions/blob/master/S... I don't see the problem?
- masklinn 11y agoDid you read what I linked, and the sub-linked https://devforums.apple.com/message/1009537#1009537 https://devforums.apple.com/message/1009537#1009537 ? The way it's implemented is not relevant.