Hey,
I've been looking at the init(contentsOfFile, usedEncoding) initializer for
NSString in corelibs-foundation.
Am I right in thinking that this initializer should use some method to
attempt to detect the character encoding of the file before returning a
decoded String?
If so, I've been workin
Hey,
I've been looking at the init(contentsOfFile, usedEncoding) initializer for
NSString in corelibs-foundation.
Am I right in thinking that this method should use some method to attempt
to detect the character encoding of the file before returning a decoded
String?
If so, I've been working on
017, at 7:39 AM, Andy Best via swift-corelibs-dev <
> swift-corelibs-dev@swift.org> wrote:
>
> Hey,
>
> I've been looking at the init(contentsOfFile, usedEncoding) initializer
> for NSString in corelibs-foundation.
>
> Am I right in thinking that this method sh
Hey,
I'm looking at implementing the final missing NSString method (
enumerateSubstrings(in:using:) ), and I noticed that there is no
implementation of CFStringTokenizer in the provided CoreFoundation.
Is this meant to be the case?
If so, I'll go ahead and implement it in pure Swift
Andy
_
Great, I'll do it that way then, thanks :)
On 22 June 2017 at 17:45, Philippe Hausler wrote:
> That particular implementation is not part of the open source side of CF,
> so a re-implementation in Swift/C would be the way to go here.
>
> > On Jun 22, 2017, at 9:44 AM,
Hey,
I've been working on implementing NSString enumerateSubstrings, and I was
wondering if anyone had any ideas about test cases.
My current implementation so far is here
https://github.com/andybest/swift-corelibs-foundation/commit/58ab2927a4678e54c5176be7113170d2bdf53d78
I've been testing loca