Home
last modified time | relevance | path

Searched refs:string (Results 1 – 25 of 78) sorted by relevance

1234

/picolibc-3.7.0-3.6.0/newlib/libc/string/
Dstrings.tex18 @chapter Strings and Memory (@file{string.h})
20 This chapter describes string-handling functions and functions for
22 @file{string.h}.
28 * index:: Search for character in string
39 * rindex:: Reverse search for character in string
40 * stpcpy:: Copy string returning a pointer to its end
41 * stpncpy:: Counted copy string returning a pointer to its end
43 * strcasestr:: Find string segment ignoring case
45 * strchr:: Search for character in string
46 * strchrnul:: Search for character in string
[all …]
Dwcstrings.tex4 This chapter describes wide-character string-handling functions and
16 * wcschr:: Search for wide character in string
17 * wcscmp:: Wide-character string compare
18 * wcscoll:: Locale-specific wide-character string compare
19 * wcscpy:: Copy wide-character string
20 * wcpcpy:: Copy a wide-character string returning a pointer to its end
21 * wcscspn:: Count wide characters not in string
22 * wcsftime:: Convert date and time to a formatted wide-character string
24 * wcslcpy:: Copy wide-character string to specified length
25 * wcslen:: Wide-character string length
[all …]
Dmeson.build153 message('libc/string/' + file + ': machine overrides generic')
155 message('libc/string/' + s_file + ': machine overrides generic')
165 message('libc/string/' + file + ': machine overrides generic')
167 message('libc/string/' + s_file + ': machine overrides generic')
/picolibc-3.7.0-3.6.0/newlib/libc/posix/
Dfnmatch.c57 fnmatch(const char *pattern, const char *string, int flags) in fnmatch() argument
63 for (stringstart = string;;) in fnmatch()
66 if ((flags & FNM_LEADING_DIR) && *string == '/') in fnmatch()
68 return (*string == EOS ? 0 : FNM_NOMATCH); in fnmatch()
70 if (*string == EOS) in fnmatch()
72 if (*string == '/' && (flags & FNM_PATHNAME)) in fnmatch()
74 if (*string == '.' && (flags & FNM_PERIOD) && in fnmatch()
75 (string == stringstart || in fnmatch()
76 ((flags & FNM_PATHNAME) && *(string - 1) == '/'))) in fnmatch()
78 ++string; in fnmatch()
[all …]
Dregexec.c158 const char *__restrict string, in regexec() argument
178 return(smatcher(g, (char *)string, nmatch, pmatch, eflags)); in regexec()
180 return(lmatcher(g, (char *)string, nmatch, pmatch, eflags)); in regexec()
/picolibc-3.7.0-3.6.0/test/
Dtest-strtod.c51 char *string; member
127 d = strtod(tests[i].string, &end); in main()
129 printf("strtod(\"%s\"): got %.17e %a want %.17e %a\n", tests[i].string, in main()
135 tests[i].string, end); in main()
138 f = strtof(tests[i].string, &end); in main()
140 printf("strtof(\"%s\"): got %.17e %a want %.17e %a\n", tests[i].string, in main()
145 printf("strtof(\"%s\") end is \"%s\"\n", tests[i].string, end); in main()
151 ld = strtold(tests[i].string, &end); in main()
153 printf("strtold(\"%s\"): got %.17Le %La want %.17Le %La\n", tests[i].string, in main()
158 printf("strtold(\"%s\") end is \"%s\"\n", tests[i].string, end); in main()
Dregex.c45 const char *string; member
52 { .pattern = ".", .string = "xxx",
55 { .pattern = ".*", .string = "xxx",
58 { .pattern = "(.)(.)(.)", .string = "xxx",
66 { .pattern = "x[a-c]*y", .string = "fooxaccabybar",
91 ret = regexec(&regex, tests[t].string, MAX_MATCH, matches, 0); in main()
95 tests[t].pattern, tests[t].string, ret, tests[t].ret); in main()
Dlong_double_gen.5c8 string name;
13 string name;
18 string name;
23 string name;
28 string name;
31 string[] limited_funcs = {
59 is_full_func(string name)
73 string
74 toupper(string s)
76 string o = "";
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/argz/
Dargz_create_sep.c15 argz_create_sep (const char *string, in argz_create_sep() argument
31 if (!string || string[0] == '\0') in argz_create_sep()
40 running = strdup(string); in argz_create_sep()
55 running = strdup(string); in argz_create_sep()
/picolibc-3.7.0-3.6.0/newlib/libc/stdlib/
Dstdlib.tex24 * ecvtbuf:: Double or float to string of digits
25 * ecvt:: Double or float to string of digits (malloc result)
27 * gcvt:: Format double or float as string
30 * itoa:: Integer to string
38 * mbsrtowcs:: Convert a character string to a wide-character string
39 * mbstowcs:: Minimal multibyte string to wide string converter
53 * wcsrtombs:: Convert a wide-character string to a character string
54 * wcstod:: Wide string to double or float
55 * wcstol:: Wide string to long
56 * wcstoll:: Wide string to long long
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/machine/i960/
Dstrcspn.S69 lda (g0),g3 # copy string pointer
73 ldob (g3),g7 # fetch next character of string
76 cmpobe.f 0,g7,Lexit # quit if at end of string
78 cmpo g6,g7 # is charset char same as string char?
85 addo 1,g3,g3 # check next character of string
89 subo g0,g3,g0 # compute string length
Dstrpbrk.S79 ldob (g0),g7 # fetch next character of string
81 cmpobe.f 0,g7,Lexit_char_not_found # quit if at end of string
83 cmpo g6,g7 # is brkset char equal to string char?
90 addo 1,g0,g0 # check next character of string
94 mov 0,g0 # return null if brkset char not found in string
Dstrncat.S98 ld (g5), g7 # fetch word of dest string
105 and g7, g3, g14 # extract byte of last word of dest string
111 ld (g1), g7 # fetch first word of source string
134 bx (g6) # g0 = dest string address; g14 = 0
150 bx (g6) # g0 = dest string address; g14 = 0
Dstrdup.S57 mov g0,r3 # Keep a copy of the original string addr
62 mov r3,g1 # Original string addr is now src for copy
/picolibc-3.7.0-3.6.0/newlib/libm/test/
Dconvert.c57 v = strtod(pd->string, &tail); in test_strtod()
58 if (tail - pd->string) { in test_strtod()
62 if (strncasecmp(pd->string, "0x", 2) == 0) in test_strtod()
73 test_iok(tail - pd->string, pd->endscan & ENDSCAN_MASK); in test_strtod()
83 v = strtof(pd->string, &tail); in test_strtof()
84 if (tail - pd->string) { in test_strtof()
94 test_iok(tail - pd->string, pd->endscan & ENDSCAN_MASK); in test_strtof()
115 v = strtold(pd->string, &tail); in test_strtold()
116 if (tail - pd->string) { in test_strtold()
129 test_iok(tail - pd->string, pd->endscan & ENDSCAN_MASK); in test_strtold()
[all …]
Dtest.c45 int string= 1; in main() local
61 string= 0; in main()
62 (void) string; in main()
87 if (string) in main()
105 void newfunc (const char *string) in newfunc() argument
107 if (strcmp(iname, string)) in newfunc()
111 if (memcheck && !strcmp(string, memcheck)) in newfunc()
120 printf("testing %s\n", string); in newfunc()
122 iname = string; in newfunc()
/picolibc-3.7.0-3.6.0/semihost/
Dsys_write0.c39 sys_semihost_write0(const char *string) in sys_semihost_write0() argument
41 (void) sys_semihost(SYS_WRITE0, (uintptr_t) string); in sys_semihost_write0()
/picolibc-3.7.0-3.6.0/test/libc-testsuite/
Dfnmatch.c73 const char *string; member
158 r = fnmatch(tests[i].pattern, tests[i].string, tests[i].flags); in test_fnmatch()
163 tests[i].pattern, tests[i].string); in test_fnmatch()
/picolibc-3.7.0-3.6.0/newlib/libc/stdio/
Dstdio.tex22 to generate or scan strings according to specifications from a format string.
54 * fgets:: Get character string from a file or stream
56 * fgetws:: Get a wide character string from a file or stream
63 * fputs:: Write a character string in a file or stream
65 * fputws:: Write a wide character string to a file or stream
79 * getdelim:: Get character string from a file or stream
80 * getline:: Get character string from a file or stream
81 * gets:: Get character string from standard input (obsolete)
91 * puts:: Write a character string on standard output
/picolibc-3.7.0-3.6.0/cmake/
Dpicolibc.cmake109 string(MAKE_C_IDENTIFIER ${flag} flag_under)
140 string(REPLACE "_" "-" flag_dash ${flag})
141 string(REGEX REPLACE "^-" "" flag_trim ${flag_dash})
142 string(TOLOWER ${flag_trim} flag_lower)
/picolibc-3.7.0-3.6.0/newlib/libc/time/
Dtime.tex68 * asctime:: Format time as string
70 * ctime:: Convert time to local and format as string
75 * strftime:: Convert date and time to a user-formatted string
/picolibc-3.7.0-3.6.0/newlib/libc/include/
Dargz.h19 error_t argz_create_sep (const char *string, int sep, char **argz, size_t *argz_len);
/picolibc-3.7.0-3.6.0/newlib/libc/machine/rx/
Dstrncat.S40 suntil.b ; Find the end of the destination string.
49 …beq 1f ; If we copied 0 bytes then we already know that the dest string is NUL terminated, so w…
Dstrcmp.S27 scmpu ; Perform the string comparison
Dstrlen.S22 add #0, r1, r4 ; Save a copy of the string start address and set the condition flags.

1234