Lines 143-148
Link Here
|
143 |
#include <stdlib.h> |
143 |
#include <stdlib.h> |
144 |
|
144 |
|
145 |
#if defined(HAVE_LIBICU) |
145 |
#if defined(HAVE_LIBICU) |
|
|
146 |
#include <stdbool.h> |
146 |
#include <unicode/ucal.h> |
147 |
#include <unicode/ucal.h> |
147 |
#include <unicode/ustring.h> |
148 |
#include <unicode/ustring.h> |
148 |
#else |
149 |
#else |
Lines 1079-1085
icalarray *icalrecurrencetype_rscale_supported_calendars(void)
Link Here
|
1079 |
|
1080 |
|
1080 |
calendars = icalarray_new(sizeof(const char **), 20); |
1081 |
calendars = icalarray_new(sizeof(const char **), 20); |
1081 |
|
1082 |
|
1082 |
en = ucal_getKeywordValuesForLocale("calendar", NULL, FALSE, &status); |
1083 |
en = ucal_getKeywordValuesForLocale("calendar", NULL, false, &status); |
1083 |
while ((cal = uenum_next(en, NULL, &status))) { |
1084 |
while ((cal = uenum_next(en, NULL, &status))) { |
1084 |
cal = icalmemory_tmp_copy(cal); |
1085 |
cal = icalmemory_tmp_copy(cal); |
1085 |
icalarray_append(calendars, &cal); |
1086 |
icalarray_append(calendars, &cal); |
Lines 1472-1478
static int initialize_rscale(icalrecur_iterator *impl)
Link Here
|
1472 |
} |
1473 |
} |
1473 |
|
1474 |
|
1474 |
/* Check if specified calendar is supported */ |
1475 |
/* Check if specified calendar is supported */ |
1475 |
en = ucal_getKeywordValuesForLocale("calendar", NULL, FALSE, &status); |
1476 |
en = ucal_getKeywordValuesForLocale("calendar", NULL, false, &status); |
1476 |
while ((cal = uenum_next(en, NULL, &status))) { |
1477 |
while ((cal = uenum_next(en, NULL, &status))) { |
1477 |
if (!strcmp(cal, rule.rscale)) { |
1478 |
if (!strcmp(cal, rule.rscale)) { |
1478 |
is_hebrew = !strcmp(rule.rscale, "hebrew"); |
1479 |
is_hebrew = !strcmp(rule.rscale, "hebrew"); |
1479 |
- |
|
|