Lines Matching refs:buffer

41         char buffer[gBufferSize];
47 size_t count = strftime(buffer, sizeof(buffer) - 1, "%c", timeptr);
49 EXPECT_STREQ("strftime_0100", buffer, test_asctime_data[i].result);
74 char buffer[gBufferSize];
75 size_t count = strftime(buffer, sizeof(buffer) - 1, "%c %Z%z", timeptr);
77 EXPECT_STREQ("strftime_0200", buffer, test_strftime_data[i].result);
101 char buffer[gBufferSize];
102 size_t count = strftime(buffer, sizeof(buffer) - 1, "%k", timeptr);
104 EXPECT_STREQ("strftime_0300", buffer, " 2");
127 char buffer[gBufferSize];
128 size_t count = strftime(buffer, sizeof(buffer) - 1, "%k", timeptr);
130 EXPECT_STREQ("strftime_0400", buffer, "18");
153 char buffer[gBufferSize];
154 size_t count = strftime(buffer, sizeof(buffer) - 1, "%I", timeptr);
156 EXPECT_STREQ("strftime_0500", buffer, "06");
179 char buffer[gBufferSize];
180 size_t count = strftime(buffer, sizeof(buffer) - 1, "%P", timeptr);
182 EXPECT_STREQ("strftime_0600", buffer, "pm");
205 char buffer[gBufferSize];
206 size_t count = strftime(buffer, sizeof(buffer) - 1, "%v", timeptr);
208 EXPECT_STREQ("strftime_0700", buffer, "30-Jul-2022");
231 char buffer[gBufferSize];
232 size_t count = strftime(buffer, sizeof(buffer) - 1, "%j", timeptr);
234 EXPECT_STREQ("strftime_0800", buffer, "211");
257 char buffer[gBufferSize];
258 size_t count = strftime(buffer, sizeof(buffer) - 1, "%l", timeptr);
260 EXPECT_STREQ("strftime_0900", buffer, " 6");
289 char buffer[gBufferSize];
290 size_t count = strftime(buffer, sizeof(buffer) - 1, "%V", timeptr);
292 EXPECT_STREQ("strftime_1000", buffer, "01");
303 char buffer[gBufferSize];
304 size_t count = strftime(buffer, sizeof(buffer) - 1, "%l", &tm);
306 EXPECT_STREQ("strftime_1100", buffer, "12");
335 char buffer[gBufferSize];
336 size_t count = strftime(buffer, sizeof(buffer) - 1, "%G", timeptr);
338 EXPECT_STREQ("strftime_1200", buffer, "2101");
367 char buffer[gBufferSize];
368 size_t count = strftime(buffer, sizeof(buffer) - 1, "%G", timeptr);
370 EXPECT_STREQ("strftime_1300", buffer, "2000");
399 char buffer[gBufferSize];
400 size_t count = strftime(buffer, sizeof(buffer) - 1, "%G", timeptr);
402 EXPECT_STREQ("strftime_1400", buffer, "2002");
426 char buffer[gBufferSize];
427 size_t count = strftime(buffer, sizeof(buffer) - 1, "%B", timeptr);
429 EXPECT_STREQ("strftime_1500", buffer, "July");
454 char buffer[gBufferSize];
455 size_t count = strftime(buffer, sizeof(buffer) - 1, "%B", timeptr);
457 EXPECT_STREQ("strftime_1600", buffer, "-");
469 char buffer[gBufferSize];
470 size_t count = strftime(buffer, sizeof(buffer) - 1, "%l", &tm);
472 EXPECT_STREQ("strftime_1700", buffer, " 1");
483 char buffer[gBufferSize];
484 size_t count = strftime(buffer, sizeof(buffer) - 1, "%u", &tm);
486 EXPECT_STREQ("strftime_1800", buffer, "7");
498 char buffer[gBufferSize];
499 size_t count = strftime(buffer, sizeof(buffer) - 1, "%u", &tm);
501 EXPECT_STREQ("strftime_1900", buffer, "3");
513 char buffer[gBufferSize];
514 size_t count = strftime(buffer, sizeof(buffer) - 1, "%-y", &tm);
516 EXPECT_STREQ("strftime_2000", buffer, "99");
528 char buffer[gBufferSize];
529 size_t count = strftime(buffer, sizeof(buffer) - 1, "%z", &tm);
531 EXPECT_STREQ("strftime_2100", buffer, "");
543 char buffer[gBufferSize];
544 size_t count = strftime(buffer, sizeof(buffer) - 1, "%Z", &tm);
546 EXPECT_STREQ("strftime_2200", buffer, "");
557 char buffer[gBufferSize];
558 size_t count = strftime(buffer, sizeof(buffer) - 1, "%E%", &tm);
560 EXPECT_STREQ("strftime_2300", buffer, "%");
571 char buffer[gBufferSize];
572 size_t count = strftime(buffer, sizeof(buffer) - 1, "%O%", &tm);
574 EXPECT_STREQ("strftime_2400", buffer, "%");