Re: conversion printf format to icu style format
Re: conversion printf format to icu style format
- Subject: Re: conversion printf format to icu style format
- From: Dmitry Markman <email@hidden>
- Date: Sat, 03 Oct 2009 07:05:44 -0400
the following choice format pattern emulate %G format
{0,choice,-∞#{0,number,@'#####'E+00}|-1e6<{0,number,@'#####'}|-1e-4<
{0,number,@'#####'E00}|1e-4#{0,number,@'#####'}|1e6#{0,number,@'#####'E
+00}}
%g uses lower case letter e for the exponent, so it looks like we can
not get it with icu
but I have a problem to emulate .4g format
{0,choice,-∞#{0,number,@'###'E+00}|-1e6<{0,number,'*
###########'@'###'}|-1e-4<{0,number,@'###'E00}|1e-4#{0,number,'*
###########'@'###'}|1e6#{0,number,@'###'E+00}}
works only for format without exp notation
I can set padding for number without exponential notation
but I don't know how to set padding for exponential notation
* ########@'###'E+00
doesn't work - icu format error
* ##########0.###E00 doesn't work exactly as .4g
On Sep 25, 2009, at 10:05 PM, Dmitry Markman wrote:
thanks
I posted my questin to icu-support list too
but didn't get answer yet
On Sep 25, 2009, at 7:20 PM, Terry Lambert wrote:
On Sep 25, 2009, at 1:31 PM, Alastair Houghton wrote:
On 25 Sep 2009, at 19:54, Terry Lambert wrote:
I don't know if anyone has done this, as I don't know of anyone
who actually uses ICU in production software.
Apple? :-D
It seems to me, though, that that question might be better asked
at the ICU site than on this list, since there's no vested
interest here in tools to start using ICU, whereas the ICU people
are the ones most likely to provide such a tool as part of
advocating their library.
Well, whoever it is that works on CoreFoundation is probably
interested in this kind of thing also. And the Core Text/Cocoa
Text people probably are too... Not to mention some of the other
framework guys (NSPredicate uses ICU as well).
I expect that if they are using ICU formatting, they've probably
already got ICU formatting in their code, or it doesn't work
because it doesn't have ICU formatting in it. So no converter
needed there. 8-) 8-).
The only Apple use I can verify is in WebKit, which is an Open
Source project. The only Apple mailing list I know that might be
appropriate would be the Webkitsdk-dev list, which I would think
would not be very ICU-centric.
Either way, this is not the list, and the appropriate best place to
ask the question would be at:
mailto:email@hidden
-- Terry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
Dmitry Markman
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
Dmitry Markman
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden