Re: [swift-corelibs-dev] NSRegularExpression implementation

2016-01-05 Thread Philippe Hausler via swift-corelibs-dev
NSRegularExpression is backed by ICU’s uregex; there is no regex support in CF however since ICU is a pretty involved C API it would not be un-reasonable to create an accessor API to make certain behaviors easier to deal with in swift. > On Jan 4, 2016, at 8:58 PM, Lukas Stabe via

Re: [swift-corelibs-dev] #if __CORELIBS_FOUNDATION__

2016-01-05 Thread Tony Parker via swift-corelibs-dev
Hi Drew, > On Jan 5, 2016, at 12:08 AM, Drew Crawford wrote: > > >> On Jan 4, 2016, at 3:09 PM, Tony Parker > > wrote: >> >> In this particular case, how would you use the #if? Any should be source >>

Re: [swift-corelibs-dev] Locale formatting (UAMeasureFormat)

2016-01-05 Thread Philippe Hausler via swift-corelibs-dev
Length, Energy and Mass formatters should definitely use the ICU backing. It might be a good idea to funnel them all into one unit formatter access point. I personally find it is sometimes easier to interface to C APIs in C and expose them back up as simple funnel methods but it depends on