Home
last modified time | relevance | path

Searched refs:chars (Results 1 – 3 of 3) sorted by relevance

/bionic/tests/
Dwchar_test.cpp121 const wchar_t chars[] = { L'h', L'e', L'l', L'l', L'o', 0 }; in TEST() local
127 EXPECT_EQ(5U, wcstombs(nullptr, chars, 0)); in TEST()
128 EXPECT_EQ(5U, wcstombs(nullptr, chars, 4)); in TEST()
129 EXPECT_EQ(5U, wcstombs(nullptr, chars, 256)); in TEST()
130 src = chars; in TEST()
132 EXPECT_EQ(&chars[0], src); in TEST()
133 src = chars; in TEST()
135 EXPECT_EQ(&chars[0], src); in TEST()
136 src = chars; in TEST()
138 EXPECT_EQ(&chars[0], src); in TEST()
[all …]
Dstdio_test.cpp371 wchar_t chars[] = { L'h', L'i', 0 }; in TEST() local
372 ws = chars; in TEST()
383 wchar_t chars[] = { L'h', L'i', 0 }; in TEST() local
384 ws = chars; in TEST()
/bionic/libc/tzcode/
Dlocaltime.c134 char chars[BIGGEST(BIGGEST(TZ_MAX_CHARS + CHARS_EXTRA, member
228 char const *abbr = &sp->chars[sp->ttis[i].tt_desigidx]; in ttunspecified()
283 tzname[ttisp->tt_isdst] = (char *) &sp->chars[ttisp->tt_desigidx]; in update_tzname_etc()
357 if (strchr(TZ_ABBR_CHAR_SET, sp->chars[i]) == NULL) in scrub_abbrs()
358 sp->chars[i] = TZ_ABBR_ERR_CHAR; in scrub_abbrs()
364 char *cp = &sp->chars[ttisp->tt_desigidx]; in scrub_abbrs()
584 sp->chars[i] = *p++; in tzloadbody()
587 memset(&sp->chars[i], 0, CHARS_EXTRA); in tzloadbody()
674 char *tsabbr = ts->chars + ts->ttis[i].tt_desigidx; in tzloadbody()
677 if (strcmp(sp->chars + j, tsabbr) == 0) { in tzloadbody()
[all …]