Boost logo

Boost :

From: Alexander Nasonov (alnsn_at_[hidden])
Date: 2006-05-02 16:33:58


Martin Bonner wrote:
> The culturally correct formating in (most of) India would be something
> like "12,34,56,789"

Thanks for the info. I already knows it by grepping all LC_NUMERIC files
on my FreeBSD.

$ cat /usr/share/locale/hi_IN.ISCII-DEV/LC_NUMERIC
.
,
2;3

Futher analysis showed that

$ find /usr/share/locale/ -name LC_NUMERIC -exec cat {} \; | sort -u

,
-1
.
.
0;0
2;3
3;3

I have yet to dechiper -1 and 0;0. Presumably, it's no grouping at all.

> grouping() returns a vector with .size()=2, [0]='\3', and [1]='\2'.
>
> I don't know how much that helps ...

Actually, it returns std::string. C counterpart returns char* which,
I believe, is faster.

C++ locales are unsupported on FreeBSD 6.1 RC #2. I will have to boot
knoppix to check how num_punct<>::grouping() works.

-- 
Alexander Nasonov
Project Manager
http://www.akmosoft.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk