1 /** 2 * D header file for POSIX. 3 * 4 * Copyright: Public Domain 5 * License: Public Domain 6 */ 7 module tango.stdc.posix.langinfo; 8 9 private import tango.stdc.locale; 10 private import tango.text.locale.Posix; 11 12 13 alias int nl_item; 14 15 /* 16 Return the current locale's value for ITEM. 17 If ITEM is invalid, an empty string is returned. 18 19 The string returned will not change until `setlocale' is called; 20 it is usually in read-only memory and cannot be modified. 21 */ 22 extern(C) char* nl_langinfo (nl_item __item); 23 24 enum : nl_item 25 { 26 /* LC_TIME category: date and time formatting. */ 27 28 /* Abbreviated days of the week. */ 29 ABDAY_1 = (((LC_TIME) << 16) | 0), /* Sun */ 30 ABDAY_2, 31 ABDAY_3, 32 ABDAY_4, 33 ABDAY_5, 34 ABDAY_6, 35 ABDAY_7, 36 37 /* Long-named days of the week. */ 38 DAY_1, /* Sunday */ 39 DAY_2, 40 DAY_3, 41 DAY_4, 42 DAY_5, 43 DAY_6, 44 DAY_7, 45 46 /* Abbreviated month names. */ 47 ABMON_1, /* Jan */ 48 ABMON_2, 49 ABMON_3, 50 ABMON_4, 51 ABMON_5, 52 ABMON_6, 53 ABMON_7, 54 ABMON_8, 55 ABMON_9, 56 ABMON_10, 57 ABMON_11, 58 ABMON_12, 59 60 /* Long month names. */ 61 MON_1, /* January */ 62 MON_2, 63 MON_3, 64 MON_4, 65 MON_5, 66 MON_6, 67 MON_7, 68 MON_8, 69 MON_9, 70 MON_10, 71 MON_11, 72 MON_12, 73 74 AM_STR, /* Ante meridiem string. */ 75 PM_STR, /* Post meridiem string. */ 76 77 D_T_FMT, /* Date and time format for strftime. */ 78 D_FMT, /* Date format for strftime. */ 79 T_FMT, /* Time format for strftime. */ 80 T_FMT_AMPM, /* 12-hour time format for strftime. */ 81 82 ERA, /* Alternate era. */ 83 ERA_YEAR, /* Year in alternate era format. */ 84 ERA_D_FMT, /* Date in alternate era format. */ 85 ALT_DIGITS, /* Alternate symbols for digits. */ 86 ERA_D_T_FMT, /* Date and time in alternate era format. */ 87 ERA_T_FMT, /* Time in alternate era format. */ 88 }