projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update bockbuild
[mono.git]
/
mono
/
metadata
/
culture-info.h
diff --git
a/mono/metadata/culture-info.h
b/mono/metadata/culture-info.h
index 5ee2eaf03f3a840e974db2f53d8c0e4fe078f85a..f88f8dcd7834f34221dfe062b01c26c3a726431e 100644
(file)
--- a/
mono/metadata/culture-info.h
+++ b/
mono/metadata/culture-info.h
@@
-11,23
+11,20
@@
#define NUM_CALENDARS 4
#define NUM_SHORT_DATE_PATTERNS 14
#define NUM_CALENDARS 4
#define NUM_SHORT_DATE_PATTERNS 14
-#define NUM_LONG_DATE_PATTERNS
8
+#define NUM_LONG_DATE_PATTERNS
10
#define NUM_SHORT_TIME_PATTERNS 12
#define NUM_LONG_TIME_PATTERNS 9
#define NUM_SHORT_TIME_PATTERNS 12
#define NUM_LONG_TIME_PATTERNS 9
+#define NUM_YEAR_MONTH_PATTERNS 8
#define idx2string(idx) (locale_strings + (idx))
#define idx2string(idx) (locale_strings + (idx))
+#define pattern2string(idx) (patterns + (idx))
+#define dtidx2string(idx) (datetime_strings + (idx))
/* need to change this if the string data ends up to not fit in a 64KB array. */
typedef guint16 stridx_t;
typedef struct {
/* need to change this if the string data ends up to not fit in a 64KB array. */
typedef guint16 stridx_t;
typedef struct {
- const stridx_t long_date_pattern;
- const stridx_t short_date_pattern;
- const stridx_t long_time_pattern;
- const stridx_t short_time_pattern;
- const stridx_t year_month_pattern;
const stridx_t month_day_pattern;
const stridx_t month_day_pattern;
-
const stridx_t am_designator;
const stridx_t pm_designator;
const stridx_t am_designator;
const stridx_t pm_designator;
@@
-49,13
+46,12
@@
typedef struct {
const stridx_t long_date_patterns [NUM_LONG_DATE_PATTERNS];
const stridx_t short_time_patterns [NUM_SHORT_TIME_PATTERNS];
const stridx_t long_time_patterns [NUM_LONG_TIME_PATTERNS];
const stridx_t long_date_patterns [NUM_LONG_DATE_PATTERNS];
const stridx_t short_time_patterns [NUM_SHORT_TIME_PATTERNS];
const stridx_t long_time_patterns [NUM_LONG_TIME_PATTERNS];
+ const stridx_t year_month_patterns [NUM_YEAR_MONTH_PATTERNS];
} DateTimeFormatEntry;
typedef struct {
const stridx_t currency_decimal_separator;
const stridx_t currency_group_separator;
} DateTimeFormatEntry;
typedef struct {
const stridx_t currency_decimal_separator;
const stridx_t currency_group_separator;
- const stridx_t percent_decimal_separator;
- const stridx_t percent_group_separator;
const stridx_t number_decimal_separator;
const stridx_t number_group_separator;
const stridx_t number_decimal_separator;
const stridx_t number_group_separator;
@@
-76,11
+72,9
@@
typedef struct {
const gint8 number_negative_pattern;
const gint8 currency_decimal_digits;
const gint8 number_negative_pattern;
const gint8 currency_decimal_digits;
- const gint8 percent_decimal_digits;
const gint8 number_decimal_digits;
const gint currency_group_sizes [GROUP_SIZE];
const gint8 number_decimal_digits;
const gint currency_group_sizes [GROUP_SIZE];
- const gint percent_group_sizes [GROUP_SIZE];
const gint number_group_sizes [GROUP_SIZE];
} NumberFormatEntry;
const gint number_group_sizes [GROUP_SIZE];
} NumberFormatEntry;