[swift-corelibs-dev] NSEnergyFormatter

Philippe Hausler phausler at apple.com
Mon Apr 18 11:33:08 CDT 2016


Sorry one slight clarification; the uplrules is only for the pluralization; uameasfmt_getMultipleUnitNames is the other major component.

> On Apr 18, 2016, at 9:16 AM, Philippe Hausler via swift-corelibs-dev <swift-corelibs-dev at swift.org> wrote:
> 
> The formatter in this case should probably query ICU4C’s function uplrules_select (and other associated functions). On Darwin energy, length and mass formatters all funnel to one unit formatter that can abstractly handle each of those cases (which might not be a bad idea to have in the swift version too.
> 
>> On Apr 18, 2016, at 1:56 AM, Vojtěch Šťavík via swift-corelibs-dev <swift-corelibs-dev at swift.org <mailto:swift-corelibs-dev at swift.org>> wrote:
>> 
>> Actually, I have a question. What is the best way to get localized names for units? It seems Mauricio has the same question at https://github.com/apple/swift-corelibs-foundation/pull/320 <https://github.com/apple/swift-corelibs-foundation/pull/320> .
>> 
>> Subject: Re: [swift-corelibs-dev] NSEnergyFormatter
>> From: anthony.parker at apple.com <mailto:anthony.parker at apple.com>
>> Date: Fri, 15 Apr 2016 10:07:18 -0700
>> CC: swift-corelibs-dev at swift.org <mailto:swift-corelibs-dev at swift.org>
>> To: stavik at outlook.com <mailto:stavik at outlook.com>
>> 
>> We certainly appreciate help on this. Let us know if you have any questions.
>> 
>> - Tony
>> 
>> On Apr 15, 2016, at 7:24 AM, Vojtěch Šťavík via swift-corelibs-dev <swift-corelibs-dev at swift.org <mailto:swift-corelibs-dev at swift.org>> wrote:
>> 
>> Hey guys,
>> 
>> I'd like to help you with the project. I was looking for something simple to start with and I'd choose NSEnergyFormatter. It seems to be pretty straightforward. Is it OK when I start working on it or you have some other plan for formatters?
>> 
>> Vojta
>> @vojtastavik
>> _______________________________________________
>> swift-corelibs-dev mailing list
>> swift-corelibs-dev at swift.org <mailto:swift-corelibs-dev at swift.org>
>> https://lists.swift.org/mailman/listinfo/swift-corelibs-dev <https://lists.swift.org/mailman/listinfo/swift-corelibs-dev>
>> _______________________________________________
>> swift-corelibs-dev mailing list
>> swift-corelibs-dev at swift.org <mailto:swift-corelibs-dev at swift.org>
>> https://lists.swift.org/mailman/listinfo/swift-corelibs-dev <https://lists.swift.org/mailman/listinfo/swift-corelibs-dev>
> _______________________________________________
> swift-corelibs-dev mailing list
> swift-corelibs-dev at swift.org
> https://lists.swift.org/mailman/listinfo/swift-corelibs-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-corelibs-dev/attachments/20160418/5040c61b/attachment.html>


More information about the swift-corelibs-dev mailing list