Home
last modified time | relevance | path

Searched refs:strlen (Results 1 – 25 of 2226) sorted by relevance

12345678910>>...90

/external/valgrind/memcheck/tests/amd64/
Dinsn-pcmpistri.stdout.exp1 strlen("")=0
2 strlen("a")=1
3 strlen("ab")=2
4 strlen("abc")=3
5 strlen("abcd")=4
6 strlen("abcde")=5
7 strlen("abcdef")=6
8 strlen("abcdefg")=7
9 strlen("abcdefgh")=8
10 strlen("abcdefghi")=9
[all …]
Dinsn-pcmpistri.stderr.exp11 strlen("")=false
22 strlen("a")=true
33 strlen("ab")=true
44 strlen("abc")=true
55 strlen("abcd")=true
66 strlen("abcde")=true
77 strlen("abcdef")=true
88 strlen("abcdefg")=true
99 strlen("abcdefgh")=true
110 strlen("abcdefghi")=true
[all …]
/external/clang/test/Analysis/
Dstring.c38 #define strlen BUILTIN(strlen) macro
39 size_t strlen(const char *s);
42 clang_analyzer_eval(strlen("123") == 3); // expected-warning{{TRUE}} in strlen_constant0()
47 clang_analyzer_eval(strlen(a) == 3); // expected-warning{{TRUE}} in strlen_constant1()
52 clang_analyzer_eval(strlen(a) == 3); // expected-warning{{TRUE}} in strlen_constant2()
55 clang_analyzer_eval(strlen(a) == 3); // expected-warning{{UNKNOWN}} in strlen_constant2()
59 return strlen(0); // expected-warning{{Null pointer argument in call to string length function}} in strlen_null()
63 …return strlen((char*)&strlen_fn); // expected-warning{{Argument to string length function is the a… in strlen_fn()
68 …return strlen((char*)&&label); // expected-warning{{Argument to string length function is the addr… in strlen_nonloc()
78 size_t a = strlen(z.a); in strlen_subregion()
[all …]
Dcomparison-implicit-casts.cpp74 size_t strlen(const char *s);
87 if (strlen(x) != value) return; in PR12206_strlen()
90 clang_analyzer_eval(strlen(x) >= 2); // expected-warning{{TRUE}} in PR12206_strlen()
91 clang_analyzer_eval(2 <= strlen(x)); // expected-warning{{TRUE}} in PR12206_strlen()
94 clang_analyzer_eval(strlen(x) != 1); // expected-warning{{TRUE}} in PR12206_strlen()
95 clang_analyzer_eval(1 != strlen(x)); // expected-warning{{TRUE}} in PR12206_strlen()
/external/jsmn/
Djsmn_test.c35 && strlen(s) == (t).end - (t).start)
52 r = jsmn_parse(&p, js, strlen(js), t, 10); in test_empty()
59 r = jsmn_parse(&p, js, strlen(js), t, 10); in test_empty()
66 r = jsmn_parse(&p, js, strlen(js), t, 10); in test_empty()
74 r = jsmn_parse(&p, js, strlen(js), t, 10); in test_empty()
91 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_simple()
103 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_simple()
108 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_simple()
122 r = jsmn_parse(&p, js, strlen(js), tok, 10); in test_primitive()
130 r = jsmn_parse(&p, js, strlen(js), tok, 10); in test_primitive()
[all …]
/external/svox/pico/tts/
Dsvox_ssml_parser.cpp83 int doclen = (int)strlen(ssmldoc) + 1; in parseDocument()
112 if (strlen(m_data) > 0) in startElement()
133 m_docLanguage = new char[strlen(attributes[i+1])+1]; in startElement()
142 if (strlen(m_data) + 4 > (size_t)m_datasize) in startElement()
154 if (strlen(m_data) + 4 > (size_t)m_datasize) in startElement()
209 xsampasize = strlen(xsampastr); in startElement()
216 char* phonstr = createPhonemeString(xsampastr, strlen(xsampastr) + 1); in startElement()
219 xsampastr = (char*)malloc(strlen(phonstr) + 1); in startElement()
228 if (strlen(m_data) + strlen(xsampastr) + 1 > (size_t)m_datasize) in startElement()
240 if (strlen(m_data) + strlen(xsampastr) + 17 > (size_t)m_datasize) in startElement()
[all …]
Dcom_svox_picottsengine.cpp533 textlen = strlen(str) + 1; in doAddProperties()
535 textlen += strlen(PICO_PITCH_OPEN_TAG) + 5; in doAddProperties()
536 textlen += strlen(PICO_PITCH_CLOSE_TAG); in doAddProperties()
540 textlen += strlen(PICO_SPEED_OPEN_TAG) + 5; in doAddProperties()
541 textlen += strlen(PICO_SPEED_CLOSE_TAG); in doAddProperties()
546 textlen += strlen(PICO_VOLUME_OPEN_TAG) + 5; in doAddProperties()
547 textlen += strlen(PICO_VOLUME_CLOSE_TAG); in doAddProperties()
558 char* tmp = (char*)malloc(strlen(PICO_PITCH_OPEN_TAG) + strlen(PICO_PITCH_CLOSE_TAG) + 5); in doAddProperties()
565 char* tmp = (char*)malloc(strlen(PICO_SPEED_OPEN_TAG) + strlen(PICO_SPEED_CLOSE_TAG) + 5); in doAddProperties()
572 char* tmp = (char*)malloc(strlen(PICO_VOLUME_OPEN_TAG) + strlen(PICO_VOLUME_CLOSE_TAG) + 5); in doAddProperties()
[all …]
/external/openssh/
Dauth-options.c108 if (strncasecmp(opts, cp, strlen(cp)) == 0) { in auth_parse_options()
110 opts += strlen(cp); in auth_parse_options()
114 if (strncasecmp(opts, cp, strlen(cp)) == 0) { in auth_parse_options()
117 opts += strlen(cp); in auth_parse_options()
121 if (strncasecmp(opts, cp, strlen(cp)) == 0) { in auth_parse_options()
124 opts += strlen(cp); in auth_parse_options()
128 if (strncasecmp(opts, cp, strlen(cp)) == 0) { in auth_parse_options()
131 opts += strlen(cp); in auth_parse_options()
135 if (strncasecmp(opts, cp, strlen(cp)) == 0) { in auth_parse_options()
138 opts += strlen(cp); in auth_parse_options()
[all …]
Dmd5crypt.c47 return (strncmp(salt, magic, strlen(magic)) == 0); in is_md5_salt()
64 if(strncmp(sp, magic, strlen(magic)) == 0) in md5_crypt()
65 sp += strlen(magic); in md5_crypt()
83 MD5_Update(&ctx, pw, strlen(pw)); in md5_crypt()
86 MD5_Update(&ctx, magic, strlen(magic)); in md5_crypt()
93 MD5_Update(&ctx1, pw, strlen(pw)); in md5_crypt()
95 MD5_Update(&ctx1, pw, strlen(pw)); in md5_crypt()
98 for(pl = strlen(pw); pl > 0; pl -= 16) in md5_crypt()
105 for (j = 0, i = strlen(pw); i != 0; i >>= 1) in md5_crypt()
124 MD5_Update(&ctx1, pw, strlen(pw)); in md5_crypt()
[all …]
Dprogressmeter.c179 snprintf(buf + strlen(buf), win_size - strlen(buf), in refresh_progress_meter()
183 format_size(buf + strlen(buf), win_size - strlen(buf), in refresh_progress_meter()
188 format_rate(buf + strlen(buf), win_size - strlen(buf), in refresh_progress_meter()
214 snprintf(buf + strlen(buf), win_size - strlen(buf), in refresh_progress_meter()
217 snprintf(buf + strlen(buf), win_size - strlen(buf), in refresh_progress_meter()
/external/libvncserver/x11vnc/
Dsolid.c75 newpath = (char *) malloc(strlen(oldpath) + strlen(addpath) + 1); in usr_bin_path()
148 if (strlen(output) + strlen(line) + 1 < 50000) { in cmd_output()
561 if (dbus_env != NULL && strlen(dbus_env) > 0) { in dbus_session()
701 cmd = (char *) malloc(strlen(set_option) - 2 + strlen(orig_option) + strlen(dbus) + 1); in solid_gnome()
705 cmd = (char *) malloc(strlen(set_color) - 2 + strlen(orig_color) + strlen(dbus) + 1); in solid_gnome()
715 cmd = (char *) malloc(strlen(get_color) + strlen(dbus) + 1); in solid_gnome()
732 cmd = (char *) malloc(strlen(get_option) + strlen(dbus) + 1); in solid_gnome()
750 cmd = (char *) malloc(strlen(set_color) + strlen(color) + strlen(dbus) + 1); in solid_gnome()
755 cmd = (char *) malloc(strlen(set_option) + strlen("none") + strlen(dbus) + 1); in solid_gnome()
761 cmd = (char *) malloc(strlen(set_filename) + strlen("none") + 1); in solid_gnome()
[all …]
Duser.c215 char *p = q + strlen(user) + strlen(":DPY"); in get_login_list()
309 char *w = user2group[i] + strlen(user); in user2uid()
404 len = strlen(logins); in lurk()
407 len += strlen(*u) + strlen(":DPY,"); in lurk()
420 char *p = q + strlen(chk); in lurk()
446 list = (char **) calloc((strlen(logins)+2)*sizeof(char *), 1); in lurk()
535 if (strlen(str) > strlen("lurk=")) { in lurk_loop()
577 if (strstr(str, "guess=") == str && strlen(str) > strlen("guess=")) { in guess_user_and_switch()
588 list = (char **) calloc((strlen(logins)+2)*sizeof(char *), 1); in guess_user_and_switch()
887 filename += strlen("rm:"); in read_passwds()
[all …]
Dsslcmds.c109 path = (char *) malloc(strlen(path)+strlen(extra)+1); in start_stunnel()
117 exe = (char *) malloc(strlen(path) + 1 + strlen("stunnel4") + 1); in start_stunnel()
241 st_if = (char *) malloc(strlen(st_if) + 2); in start_stunnel()
500 cdir = (char *) malloc(strlen(home) + strlen("/.vnc/certs/CA") + 1); in get_Cert_dir()
518 tmp = (char *) malloc(strlen(cdir) + strlen("/tmp") + 1); in get_Cert_dir()
563 scr = (char *) malloc(strlen(tmp) + 1 + strlen(name) + 30); in getsslscript()
601 cmd = (char *)malloc(strlen("/bin/sh ") + strlen(scr) + 1); in sslGenCA()
618 cmd = (char *)malloc(strlen("/bin/sh ") + strlen(scr) + 1); in sslGenCert()
633 q += strlen("SAVE-"); in sslGenCert()
698 tca = (char *) malloc(strlen(cdir)+strlen("/CA/cacert.pem")+1); in sslEncKey()
[all …]
/external/e2fsprogs/intl/
Dos2compat.c59 size_t sl = strlen (root); in nlos2_initialize()
60 _nlos2_libdir = (char *) malloc (sl + strlen (LIBDIR) + 1); in nlos2_initialize()
62 memcpy (_nlos2_libdir + sl, LIBDIR, strlen (LIBDIR) + 1); in nlos2_initialize()
73 size_t sl = strlen (root); in nlos2_initialize()
74 _nlos2_localealiaspath = (char *) malloc (sl + strlen (LOCALE_ALIAS_PATH) + 1); in nlos2_initialize()
76 memcpy (_nlos2_localealiaspath + sl, LOCALE_ALIAS_PATH, strlen (LOCALE_ALIAS_PATH) + 1); in nlos2_initialize()
87 size_t sl = strlen (root); in nlos2_initialize()
88 _nlos2_localedir = (char *) malloc (sl + strlen (LOCALEDIR) + 1); in nlos2_initialize()
90 memcpy (_nlos2_localedir + sl, LOCALEDIR, strlen (LOCALEDIR) + 1); in nlos2_initialize()
96 if (strlen (_nlos2_localedir) <= MAXPATHLEN) in nlos2_initialize()
/external/libvncserver/libvncserver/
Dhttpd.c282 if (strlen(rfbScreen->httpDir) > 255) { in httpProcessInput()
288 fname = &fullFname[strlen(fullFname)]; in httpProcessInput()
289 maxFnameLen = 511 - strlen(fullFname); in httpProcessInput()
338 rfbWriteExact(&cl,INVALID_REQUEST_STR, strlen(INVALID_REQUEST_STR)); in httpProcessInput()
344 rfbWriteExact(&cl,PROXY_OK_STR,strlen(PROXY_OK_STR)); in httpProcessInput()
352 rfbWriteExact(&cl,PROXY_OK_STR,strlen(PROXY_OK_STR)); in httpProcessInput()
368 if (strlen(buf) > maxFnameLen) { in httpProcessInput()
382 rfbWriteExact(&cl, NOT_FOUND_STR, strlen(NOT_FOUND_STR)); in httpProcessInput()
422 if (strlen(fname) >= 4 && strcmp(&fname[strlen(fname)-4], ".vnc") == 0) { in httpProcessInput()
430 rfbWriteExact(&cl, NOT_FOUND_STR, strlen(NOT_FOUND_STR)); in httpProcessInput()
[all …]
/external/valgrind/include/
Dpub_tool_options.h53 (VG_STREQN(VG_(strlen)(qq_option)+1, qq_arg, qq_option"=") && \
55 const HChar* val = &(qq_arg)[ VG_(strlen)(qq_option)+1 ]; \
66 (VG_STREQN(VG_(strlen)(qq_option)+1, qq_arg, qq_option"=") && \
68 const HChar* val = &(qq_arg)[ VG_(strlen)(qq_option)+1 ]; \
77 (VG_STREQN(VG_(strlen)(qq_option)+1, qq_arg, qq_option"=") && \
79 const HChar* val = &(qq_arg)[ VG_(strlen)(qq_option)+1 ]; \
101 (VG_STREQN(VG_(strlen)(qq_option)+1, qq_arg, qq_option"=") && \
103 const HChar* val = &(qq_arg)[ VG_(strlen)(qq_option)+1 ]; \
117 (VG_STREQN(VG_(strlen)(qq_option)+1, qq_arg, qq_option"=") && \
119 const HChar* val = &(qq_arg)[ VG_(strlen)(qq_option)+1 ]; \
[all …]
/external/llvm/test/Transforms/InstCombine/
Dstrlen-1.ll1 ; Test that the strlen library call simplifier works correctly.
14 declare i32 @strlen(i8*)
16 ; Check strlen(string constant) -> integer constant.
21 %hello_l = call i32 @strlen(i8* %hello_p)
29 %null_l = call i32 @strlen(i8* %null_p)
37 %null_hello_l = call i32 @strlen(i8* %null_hello_p)
44 %len = tail call i32 @strlen(i8* @nullstring) nounwind
49 ; Check strlen(x) == 0 --> *x == 0.
54 %hello_l = call i32 @strlen(i8* %hello_p)
63 %null_l = call i32 @strlen(i8* %null_p)
[all …]
/external/protobuf/src/google/protobuf/stubs/
Dsubstitute.h90 : text_(value), size_(strlen(text_)) {} in SubstituteArg()
107 : text_(FastInt32ToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg()
109 : text_(FastUInt32ToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg()
111 : text_(FastInt32ToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg()
113 : text_(FastUInt32ToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg()
115 : text_(FastLongToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg()
117 : text_(FastULongToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg()
119 : text_(FastInt64ToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg()
121 : text_(FastUInt64ToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg()
123 : text_(FloatToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg()
[all …]
/external/apache-xml/src/main/java/org/apache/xml/utils/
DFastStringBuffer.java482 int strlen = value.length(); in append() local
484 if (0 == strlen) in append()
492 while (strlen > 0) in append()
496 if (available > strlen) in append()
497 available = strlen; in append()
502 strlen -= available; in append()
506 if (strlen > 0) in append()
564 int strlen = value.length(); in append() local
566 if (0 == strlen) in append()
574 while (strlen > 0) in append()
[all …]
/external/valgrind/
Dglibc-2.3.supp33 strlen/__GI__dl_open/dlopen_doit
35 fun:strlen
40 strlen/_dl_signal_cerror/_dl_lookup_symbol_internal/do_dlsym
47 strlen/*dl_map_object*(Cond)
49 fun:strlen
54 strlen/*dl_open_worker*(Cond)
56 fun:strlen
60 strlen/_dl_sym/dlsym_doit
62 fun:strlen
80 strlen/decompose_rpath/_dl_map_object
[all …]
/external/compiler-rt/test/msan/Linux/
Dglob_altdirfunc.cc34 assert(__msan_test_shadow(s, strlen(s) + 1) == (size_t)-1); in my_gl_opendir()
39 assert(__msan_test_shadow(s, strlen(s) + 1) == (size_t)-1); in my_gl_lstat()
46 assert(__msan_test_shadow(s, strlen(s) + 1) == (size_t)-1); in my_gl_stat()
68 printf("%zu\n", strlen(globbuf.gl_pathv[0])); in main()
69 printf("%zu\n", strlen(globbuf.gl_pathv[1])); in main()
70 __msan_poison(globbuf.gl_pathv[0], strlen(globbuf.gl_pathv[0]) + 1); in main()
71 __msan_poison(globbuf.gl_pathv[1], strlen(globbuf.gl_pathv[1]) + 1); in main()
/external/netperf/
Dnetserver.c179 snprintf(&FileName[strlen(FileName)], sizeof(FileName) - strlen(FileName), "_%d", getpid()); in open_debug_file()
677 snprintf(&cmdline[strlen(cmdline)], sizeof(cmdline) - strlen(cmdline), " -v %d", verbosity); in set_up_server()
680 snprintf(&cmdline[strlen(cmdline)], sizeof(cmdline) - strlen(cmdline), " -d"); in set_up_server()
682 …snprintf(&cmdline[strlen(cmdline)], sizeof(cmdline) - strlen(cmdline), " -I %x", (int)(UINT_PTR)se… in set_up_server()
683 …snprintf(&cmdline[strlen(cmdline)], sizeof(cmdline) - strlen(cmdline), " -i %x", (int)(UINT_PTR)se… in set_up_server()
684 …snprintf(&cmdline[strlen(cmdline)], sizeof(cmdline) - strlen(cmdline), " -i %x", (int)(UINT_PTR)wh… in set_up_server()
814 program = (char *)malloc(strlen(argv[0]) + 1); in main()
816 printf("malloc(%zu) failed!\n", strlen(argv[0]) + 1); in main()
921 snprintf(&FileName[strlen(FileName)], sizeof(FileName) - strlen(FileName), "_%d", getpid()); in main()
930 snprintf(&FileName[strlen(FileName)], sizeof(FileName) - strlen(FileName), "_%x", getpid()); in main()
/external/boringssl/src/crypto/base64/
Dbase64_test.cc46 strlen(t->decoded)); in TestEncode()
47 if (len != strlen(t->encoded) || in TestEncode()
64 size_t expected_len = strlen(t->decoded); in TestDecode()
66 (const uint8_t*)t->encoded, strlen(t->encoded))) { in TestDecode()
70 if (len != strlen(t->decoded) || in TestDecode()
79 strlen(t->encoded)); in TestDecode()
91 if (static_cast<size_t>(ret) != strlen(t->decoded) || in TestDecode()
/external/e2fsprogs/util/
Dsymlinks.c44 int oldlen = strlen(old), newlen = 0; in substr()
50 newlen = strlen(new); in substr()
53 if ((tmp = malloc(strlen(s))) == NULL) { in substr()
83 s = path + strlen(path) - 1; in tidy_path()
103 p = path + strlen(path) - 1; in tidy_path()
124 while (abspath && strlen(abspath) > 1 && (p = strstr(path,"../"))) { in shorten_path()
143 a = abspath + strlen(abspath) - 1; in shorten_path()
152 if (strncmp(dir, a, strlen(dir))) in shorten_path()
179 c = strlen(abspath); in fix_symlink()
294 dirwalk(path, strlen(path), dev); in dirwalk()
[all …]
/external/toybox/lib/
Dgetmountlist.c19 if (atold[strlen(atold)-1] == ',') comma = ""; in comma_collate()
37 *len = strlen(*list); in comma_iterate()
72 int optlen = strlen(opt), len, no, got = 0; in comma_scan()
81 if (clean) memmove(s, optlist, strlen(optlist)+1); in comma_scan()
151 mt = xzalloc(sizeof(struct mtab_list) + strlen(me->mnt_fsname) + in xgetmountlist()
152 strlen(me->mnt_dir) + strlen(me->mnt_type) + strlen(me->mnt_opts) + 4); in xgetmountlist()

12345678910>>...90