1 /* PSPP - computes sample statistics.
2 Copyright (C) 1997-9, 2000, 2006 Free Software Foundation, Inc.
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License as
6 published by the Free Software Foundation; either version 2 of the
7 License, or (at your option) any later version.
9 This program is distributed in the hope that it will be useful, but
10 WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19 /* Basic numeric formats. */
20 FMT (F, number, 1, 1, 5, FMT_CAT_BASIC)
21 FMT (COMMA, number, 1, 1, 3, FMT_CAT_BASIC)
22 FMT (DOT, number, 1, 1, 32, FMT_CAT_BASIC)
23 FMT (DOLLAR, number, 1, 2, 4, FMT_CAT_BASIC)
24 FMT (PCT, number, 1, 2, 31, FMT_CAT_BASIC)
25 FMT (E, number, 1, 6, 17, FMT_CAT_BASIC)
27 /* Custom currency formats. */
28 FMT (CCA, number, -1, 2, 33, FMT_CAT_CUSTOM)
29 FMT (CCB, number, -1, 2, 34, FMT_CAT_CUSTOM)
30 FMT (CCC, number, -1, 2, 35, FMT_CAT_CUSTOM)
31 FMT (CCD, number, -1, 2, 36, FMT_CAT_CUSTOM)
32 FMT (CCE, number, -1, 2, 37, FMT_CAT_CUSTOM)
34 /* Legacy numeric formats. */
35 FMT (N, N, 1, 1, 16, FMT_CAT_LEGACY)
36 FMT (Z, Z, 1, 1, 16, FMT_CAT_LEGACY)
38 /* Binary and hexadecimal formats. */
39 FMT (P, P, 1, 1, 8, FMT_CAT_BINARY)
40 FMT (PK, PK, 1, 1, 10, FMT_CAT_BINARY)
41 FMT (IB, IB, 1, 1, 6, FMT_CAT_BINARY)
42 FMT (PIB, PIB, 1, 1, 9, FMT_CAT_BINARY)
43 FMT (PIBHEX, PIBHEX, 2, 2, 7, FMT_CAT_HEXADECIMAL)
44 FMT (RB, RB, 2, 2, 11, FMT_CAT_BINARY)
45 FMT (RBHEX, RBHEX, 4, 4, 12, FMT_CAT_HEXADECIMAL)
47 /* Time and date formats. */
48 FMT (DATE, date, 8, 9, 20, FMT_CAT_DATE)
49 FMT (ADATE, date, 8, 8, 23, FMT_CAT_DATE)
50 FMT (EDATE, date, 8, 8, 38, FMT_CAT_DATE)
51 FMT (JDATE, date, 5, 5, 24, FMT_CAT_DATE)
52 FMT (SDATE, date, 8, 8, 39, FMT_CAT_DATE)
53 FMT (QYR, date, 4, 6, 29, FMT_CAT_DATE)
54 FMT (MOYR, date, 6, 6, 28, FMT_CAT_DATE)
55 FMT (WKYR, date, 6, 8, 30, FMT_CAT_DATE)
56 FMT (DATETIME, date, 7, 17, 22, FMT_CAT_DATE)
57 FMT (TIME, date, 5, 5, 21, FMT_CAT_TIME)
58 FMT (DTIME, date, 8, 8, 25, FMT_CAT_TIME)
60 /* Date component formats. */
61 FMT (WKDAY, WKDAY, 2, 2, 26, FMT_CAT_DATE_COMPONENT)
62 FMT (MONTH, MONTH, 3, 3, 27, FMT_CAT_DATE_COMPONENT)
65 FMT (A, A, 1, 1, 1, FMT_CAT_STRING)
66 FMT (AHEX, AHEX, 2, 2, 2, FMT_CAT_STRING)