Re: [swift-corelibs-dev] Bring NSString functions to String

2017-05-12 Thread Tony Parker via swift-corelibs-dev
> On May 11, 2017, at 5:17 PM, Andrey Fidrya wrote: > >> >> On 12 May 2017, at 00:05, Tony Parker > > wrote: >> >>> On May 10, 2017, at 4:19 AM, Andrey Fidrya via swift-corelibs-dev >>> mailto:[email protected]>> wrote: >>> >>> Hi All, >>> >>> Bt

Re: [swift-corelibs-dev] Bring NSString functions to String

2017-05-11 Thread Andrey Fidrya via swift-corelibs-dev
> On 12 May 2017, at 00:05, Tony Parker wrote: > >> On May 10, 2017, at 4:19 AM, Andrey Fidrya via swift-corelibs-dev >> mailto:[email protected]>> wrote: >> >> Hi All, >> >> Btw, when migrating from NSString's methods to URL I've noticed >> that they work a bit differently: URL's

Re: [swift-corelibs-dev] Bring NSString functions to String

2017-05-11 Thread Tony Parker via swift-corelibs-dev
> On May 10, 2017, at 4:19 AM, Andrey Fidrya via swift-corelibs-dev > wrote: > > Hi All, > > Btw, when migrating from NSString's methods to URL I've noticed > that they work a bit differently: URL's methods convert strings > from NFC to NFD (decomposed) unicode form which is demonstrated > by

Re: [swift-corelibs-dev] Bring NSString functions to String

2017-05-10 Thread Andrey Fidrya via swift-corelibs-dev
Hi All, Btw, when migrating from NSString's methods to URL I've noticed that they work a bit differently: URL's methods convert strings from NFC to NFD (decomposed) unicode form which is demonstrated by the example below. I had to additionally call .precomposedStringWithCanonicalMapping on result

Re: [swift-corelibs-dev] Bring NSString functions to String

2017-05-10 Thread Eric Blachère via swift-corelibs-dev
Thanks for the answer ! It seems a bit weird from them to advocate using NSString methods in the unavailability comment. I would rather use URL when I can even if the conversions are a bit tedious ^^ Thanks a lot, Eric 2017-05-10 10:52 GMT+02:00 Brent Royal-Gordon : > > On May 8, 2017, at 9:39 A

Re: [swift-corelibs-dev] Bring NSString functions to String

2017-05-10 Thread Brent Royal-Gordon via swift-corelibs-dev
> On May 8, 2017, at 9:39 AM, Eric Blachère via swift-corelibs-dev > wrote: > > I was just wondering if there are plans to bring NSString functions > manipulating paths into the native String class. (such as lastPathComponent, > pathComponents etc...) > Because even if we can always make an ex