std.c.locale - D Programming Language - Digital Mars

D Programming Language 1.0

- Comments
- D
- Search
- Home

Last update Wed Sep 2 00:11:33 2009

# std.c.locale

C's <locale.h>
License:
Public Domain
Standards:
ISO/IEC 9899:1999 7.11

struct lconv;
  Structure giving information about numeric and monetary notation.
  char* decimal_point;
    The decimal-point character used to format nonmonetary quantities.
  char* thousands_sep;
    The character used to separate groups of digits before the decimal-point character in formatted nonmonetary quantities.
  char* grouping;
    A string whose elements indicate the size of each group of digits in formatted nonmonetary quantities.
  char* int_curr_symbol;
    The international currency symbol applicable to the current locale. The first three characters contain the alphabetic international currency symbol in accordance with those specified in ISO 4217. The fourth character (immediately preceding the null character) is the character used to separate the international currency symbol from the monetary quantity.
  char* currency_symbol;
    The local currency symbol applicable to the current locale.
  char* mon_decimal_point;
    The decimal-point used to format monetary quantities.
  char* mon_thousands_sep;
    The separator for groups of digits before the decimal-point in formatted monetary quantities.
  char* mon_grouping;
    A string whose elements indicate the size of each group of digits in formatted monetary quantities.
  char* positive_sign;
    The string used to indicate a nonnegative-valued formatted monetary quantity.
  char* negative_sign;
    The string used to indicate a negative-valued formatted monetary quantity.
  char int_frac_digits;
    The number of fractional digits (those after the decimal-point) to be displayed in an internationally formatted monetary quantity.
  char frac_digits;
    The number of fractional digits (those after the decimal-point) to be displayed in a locally formatted monetary quantity.
  char p_cs_precedes;
    1 if currency_symbol precedes a positive value, 0 if succeeds.
  char p_sep_by_space;
    1 if a space separates currency_symbol from a positive value.
  char n_cs_precedes;
    1 if currency_symbol precedes a negative value, 0 if succeeds.
  char n_sep_by_space;
    1 if a space separates currency_symbol from a negative value.
  char int_p_cs_precedes;
    1 if int_curr_symbol precedes a positive value, 0 if succeeds.
  char int_p_sep_by_space;
    1 iff a space separates int_curr_symbol from a positive value.
  char int_n_cs_precedes;
    1 if int_curr_symbol precedes a negative value, 0 if succeeds.
  char int_n_sep_by_space;
    1 iff a space separates int_curr_symbol from a negative value.
const int LC_CTYPE;
  Affects the behavior of C's character handling functions and C's multibyte and wide character functions.
const int LC_NUMERIC;
  Affects the decimal-point character for C's formatted input/output functions and C's string conversion functions, as well as C's nonmonetary formatting information returned by the localeconv function.
const int LC_TIME;
  Affects the behavior of the strftime and wcsftime functions.
const int LC_COLLATE;
  Affects the behavior of the strcoll and strxfrm functions.
const int LC_MONETARY;
  Affects the monetary formatting information returned by the localeconv function.
const int LC_ALL;
  The program's entire locale.
char* setlocale(int category, char* locale);
  The setlocale function selects the appropriate portion of the program's locale as specified by the category and locale arguments.
lconv* localeconv();
  The localeconv function sets the components of an object with type lconv with values appropriate for the formatting of numeric quantities (monetary and otherwise) according to the rules of the current locale.

Copyright © 1999-2009 by Digital Mars, All Rights Reserved | Page generated by Ddoc.