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