VirtualBox

Changeset 19942 in vbox for trunk/include


Ignore:
Timestamp:
May 23, 2009 3:42:57 PM (16 years ago)
Author:
vboxsync
Message:

IPRT: Implemented thousand separators for the string formatting code and RTStrFormatNumber. (For instance %'u.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/string.h

    r18556 r19942  
    530530 * that not all flags makes sense to both of the functions.
    531531 * @{ */
    532 #define RTSTR_F_CAPITAL    0x0001
    533 #define RTSTR_F_LEFT       0x0002
    534 #define RTSTR_F_ZEROPAD    0x0004
    535 #define RTSTR_F_SPECIAL    0x0008
    536 #define RTSTR_F_VALSIGNED  0x0010
    537 #define RTSTR_F_PLUS       0x0020
    538 #define RTSTR_F_BLANK      0x0040
    539 #define RTSTR_F_WIDTH      0x0080
    540 #define RTSTR_F_PRECISION  0x0100
    541 
    542 #define RTSTR_F_BIT_MASK   0xf800
    543 #define RTSTR_F_8BIT       0x0800
    544 #define RTSTR_F_16BIT      0x1000
    545 #define RTSTR_F_32BIT      0x2000
    546 #define RTSTR_F_64BIT      0x4000
    547 #define RTSTR_F_128BIT     0x8000
     532#define RTSTR_F_CAPITAL         0x0001
     533#define RTSTR_F_LEFT            0x0002
     534#define RTSTR_F_ZEROPAD         0x0004
     535#define RTSTR_F_SPECIAL         0x0008
     536#define RTSTR_F_VALSIGNED       0x0010
     537#define RTSTR_F_PLUS            0x0020
     538#define RTSTR_F_BLANK           0x0040
     539#define RTSTR_F_WIDTH           0x0080
     540#define RTSTR_F_PRECISION       0x0100
     541#define RTSTR_F_THOUSAND_SEP    0x0200
     542
     543#define RTSTR_F_BIT_MASK        0xf800
     544#define RTSTR_F_8BIT            0x0800
     545#define RTSTR_F_16BIT           0x1000
     546#define RTSTR_F_32BIT           0x2000
     547#define RTSTR_F_64BIT           0x4000
     548#define RTSTR_F_128BIT          0x8000
    548549/** @} */
    549550
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette