Lines Matching refs:ret
28 int ret = strverscmp("hello world !", "HELLO WORLD"); variable
29 EXPECT_GT(ret, 0);
31 ret = strverscmp("HELLO WORLD", "hello world !");
32 EXPECT_LT(ret, 0);
34 ret = strverscmp("hello world !", "hello world !");
35 EXPECT_EQ(ret, 0);
45 int ret = strcoll("AbC", "ABC"); variable
46 EXPECT_GT(ret, 0);
48 ret = strcoll("ABC", "abc");
49 EXPECT_LT(ret, 0);
51 ret = strcoll("ABC", "ABC");
52 EXPECT_EQ(ret, 0);
62 int ret = strcmp("abcdef", "ABCDEF"); variable
63 EXPECT_GT(ret, 0);
65 ret = strcmp("123456", "654321");
66 EXPECT_LT(ret, 0);
80 int ret = strncmp(dest, src, 1); variable
81 EXPECT_GT(ret, 0);
83 ret = strncmp("123456", "654321", 6);
84 EXPECT_LT(ret, 0);
86 ret = strncmp("~!@#$%^&*()_+", "~!@#$%^&*()_+", 8);
87 EXPECT_EQ(ret, 0);
98 size_t ret = strxfrm(dest, "hello world !", sizeof(dest)); variable
99 EXPECT_EQ(ret, 13U);
103 ret = strxfrm(destT, "this is string", sizeof(destT));
104 EXPECT_EQ(ret, 14UL);
115 char *ret = strsignal(14); variable
116 EXPECT_STREQ(ret, "Alarm clock");
118 ret = strsignal(-1);
119 EXPECT_STREQ(ret, "Unknown signal");
131 char *ret = stpcpy(dest, src); variable
132 ASSERT_NE(ret, nullptr);
137 ret = stpcpy(destT, srcT);
138 ASSERT_NE(ret, nullptr);
151 char *ret = stpncpy(dest, src, 5); variable
152 EXPECT_STREQ(ret, "");
157 ret = stpncpy(destT, srcT, 15);
158 EXPECT_STREQ(ret, "");
171 size_t ret = strlcpy(dest, src, sizeof(dest)); variable
172 EXPECT_EQ(ret, 12U);
177 ret = strlcpy(destT, srcT, 15);
178 EXPECT_EQ(ret, 14U);
191 char *ret = strcpy(dest, src); variable
192 EXPECT_STREQ(ret, dest);
196 ret = strcpy(destT, srcT);
197 EXPECT_STREQ(ret, destT);
209 char *ret = strncpy(dest, src, 6); variable
210 EXPECT_STREQ(ret, dest);
213 ret = strncpy(destT, "hello world", 0);
214 EXPECT_STREQ(ret, destT);
223 char *ret = strcasestr("hello world !", " "); variable
224 EXPECT_STREQ(ret, " world !");
226 ret = strcasestr("This is String1", "Str");
227 EXPECT_STREQ(ret, "String1");
229 ret = strcasestr("hello world !", "ABC");
230 EXPECT_STREQ(ret, nullptr);
242 size_t ret = strlcat(dest, src, 8); variable
243 EXPECT_EQ(ret, 13U);
248 ret = strlcat(destT, srcT, 11);
249 EXPECT_EQ(ret, 14U);
261 char *ret = strcat(dest, "hello world !"); variable
262 EXPECT_STREQ(ret, dest);
265 ret = strcat(destT, "This is String1");
266 EXPECT_STREQ(ret, destT);
277 char *ret = strncat(dest, "This is String1", 7); variable
278 EXPECT_STREQ(ret, "hello world || This is");
281 ret = strncat(destT, "~!@#$%^&*()_+", 13);
282 EXPECT_STREQ(ret, destT);
293 char *ret = strchr(src, '!'); variable
294 EXPECT_STREQ(ret, "!! world");
296 ret = strchr(src, '?');
297 EXPECT_STREQ(ret, nullptr);
308 char *ret = strrchr(src, '&'); variable
309 EXPECT_STREQ(ret, "& WORLD");
311 ret = strrchr(src, '?');
312 EXPECT_STREQ(ret, nullptr);
326 size_t ret = strnlen(src, ltSrcSize); variable
327 EXPECT_EQ(ret, ltSrcSize);
329 ret = strnlen(src, gtSrcSize);
330 EXPECT_EQ(ret, strlen(src));
341 char *ret = strtok(src, "&"); variable
342 EXPECT_STREQ(ret, src);
344 ret = strtok(nullptr, "-");
345 EXPECT_STREQ(ret, " This is");
348 ret = strtok(srcS, "?");
349 EXPECT_STREQ(ret, srcS);
352 ret = strtok(srcT, "~");
353 EXPECT_STREQ(ret, nullptr);
365 char *ret = strtok_r(str, "&", &endPtr); variable
366 EXPECT_STREQ(ret, str);
369 ret = strtok_r(nullptr, "-", &endPtr);
370 EXPECT_STREQ(ret, " This is");
374 ret = strtok_r(strS, "?", &endPtr);
375 EXPECT_STREQ(ret, strS);
379 ret = strtok_r(strT, "!", &endPtr);
380 EXPECT_STREQ(ret, nullptr);
393 char *ret = strsep(&str, "="); variable
394 EXPECT_STREQ(ret, "123");
398 ret = strsep(&strS, "?");
399 EXPECT_STREQ(ret, "hello world !");
404 ret = strsep(&strT, "?");
405 EXPECT_STREQ(ret, "");
416 char *ret = strdup(src); variable
417 EXPECT_STREQ(ret, src) << "> strdup fail, errno = " << errno;
420 ret = strdup(srcS);
421 EXPECT_STREQ(ret, "This is String1") << "> strdup fail, errno = " << errno;
422 free(ret);
433 char *ret = strndup(src, 5); variable
434 EXPECT_STREQ(ret, "hello") << "> strndup fail, errno = " << errno;
437 ret = strndup(srcS, 20);
438 EXPECT_STREQ(ret, "This is String1") << "> strndup fail, errno = " << errno;
439 free(ret);
451 const char *ret = strpbrk(dest, src); variable
452 EXPECT_STREQ(ret, "!! world");
455 ret = strpbrk(dest, srcS);
456 EXPECT_STREQ(ret, nullptr);
468 size_t ret = strcspn(dest, src); variable
469 EXPECT_EQ(ret, 12U);
472 ret = strcspn(dest, srcS);
473 EXPECT_EQ(ret, 13U);
485 size_t ret = strspn(dest, src); variable
486 EXPECT_EQ(ret, 5U);
487 EXPECT_EQ(ret, 5U);
491 ret = strspn(destS, srcS);
492 EXPECT_EQ(ret, 0U);
495 ret = strspn(dest, srcT);
496 EXPECT_EQ(ret, 5U);
508 const char *ret = strstr(dest, src); variable
509 EXPECT_STREQ(ret, nullptr);
513 ret = strstr(destS, srcS);
514 EXPECT_STREQ(ret, "string this is string");
517 ret = strstr(dest, srcT);
518 EXPECT_STREQ(ret, "hello world !");
529 int ret = strcoll_l("AbC", "ABC", locale); variable
530 EXPECT_GT(ret, 0);
532 ret = strcoll_l("ABC", "abc", locale);
533 EXPECT_LT(ret, 0);
535 ret = strcoll_l("ABC", "ABC", locale);
536 EXPECT_EQ(ret, 0);
548 size_t ret = strxfrm_l(dest, "hello world !", sizeof(dest), locale); variable
549 EXPECT_EQ(ret, 13UL);
553 ret = strxfrm_l(destT, "this is string", sizeof(destT), locale);
554 EXPECT_EQ(ret, 14UL);