Home
last modified time | relevance | path

Searched refs:wlen (Results 1 – 19 of 19) sorted by relevance

/external/toybox/toys/posix/
Dstrings.c34 int nread, i, wlen = TT.num, count = 0; local
36 char *string = xzalloc(wlen + 1);
44 if (count == wlen) fputc(toybuf[i], stdout);
47 if (count == wlen) {
50 printf("%7lld ",(long long)(offset - wlen));
55 if (count == wlen) xputc('\n');
/external/skia/src/utils/win/
DSkDWrite.cpp57 int wlen = MultiByteToWideChar(CP_UTF8, 0, skname, -1, nullptr, 0); in sk_cstring_to_wchar() local
58 if (0 == wlen) { in sk_cstring_to_wchar()
62 name->reset(wlen); in sk_cstring_to_wchar()
63 wlen = MultiByteToWideChar(CP_UTF8, 0, skname, -1, name->get(), wlen); in sk_cstring_to_wchar()
64 if (0 == wlen) { in sk_cstring_to_wchar()
/external/pdfium/core/src/fxcrt/
Dfx_basic_gcc.cpp226 int wlen, in FXSYS_WideCharToMultiByte() argument
232 for (int i = 0; i < wlen; i++) { in FXSYS_WideCharToMultiByte()
248 int wlen = 0; in FXSYS_MultiByteToWideChar() local
250 if (buf && wlen < buflen) { in FXSYS_MultiByteToWideChar()
251 buf[wlen] = bstr[i]; in FXSYS_MultiByteToWideChar()
253 wlen++; in FXSYS_MultiByteToWideChar()
255 return wlen; in FXSYS_MultiByteToWideChar()
Dfx_basic_wstring.cpp366 FX_STRSIZE wlen) { in FromUTF16LE() argument
367 if (!wstr || 0 == wlen) { in FromUTF16LE()
372 FX_WCHAR* buf = result.GetBuffer(wlen); in FromUTF16LE()
373 for (int i = 0; i < wlen; i++) { in FromUTF16LE()
376 result.ReleaseBuffer(wlen); in FromUTF16LE()
/external/webrtc/webrtc/base/
Dwin32.cc376 int wlen = ::MultiByteToWideChar(CP_UTF8, 0, utf8.c_str(), in Utf8ToWindowsFilename() local
379 if (0 == wlen) { in Utf8ToWindowsFilename()
382 wchar_t* wfilename = STACK_ARRAY(wchar_t, wlen); in Utf8ToWindowsFilename()
385 wfilename, wlen)) { in Utf8ToWindowsFilename()
389 std::replace(wfilename, wfilename + wlen, L'/', L'\\'); in Utf8ToWindowsFilename()
/external/ppp/pppd/
Dupap.c619 int mlen, ulen, wlen; local
645 wlen = p[ulen + 1];
646 if (len < ulen + wlen + 2)
650 p += ulen + wlen + 2;
651 len -= ulen + wlen + 2;
656 print_string(pwd, wlen, printer, arg);
/external/toybox/kconfig/lxdialog/
Dutil.c317 int i, prompt_len, room, wlen; in print_autowrap() local
349 wlen = strlen(word); in print_autowrap()
350 if (wlen > room || in print_autowrap()
351 (newl && wlen < 4 && sp in print_autowrap()
352 && wlen + 1 + strlen(sp) > room in print_autowrap()
354 || wlen + 1 + (sp2 - sp) > room))) { in print_autowrap()
/external/libpcap/
Dpcap-dag.c386 packet_len = ntohs(header->wlen) + dag_record_size; in dag_read()
425 packet_len = ntohs(header->wlen); in dag_read()
435 packet_len = ntohs(header->wlen); in dag_read()
470 packet_len = ntohs(header->wlen); in dag_read()
485 packet_len = ntohs(header->wlen); in dag_read()
497 packet_len = ntohs(header->wlen); in dag_read()
525 packet_len = ntohs(header->wlen); in dag_read()
Dpcap-win32.c363 swt = SWAPS(header->wlen); in pcap_read_win32_dag()
375 swt = SWAPS(header->wlen); in pcap_read_win32_dag()
/external/toybox/toys/pending/
Dsyslogd.c363 int wlen, isNetwork = *tf->filename == '@'; in logmsg() local
365 wlen = sendto(tf->logfd, omsg, olen, 0, (struct sockaddr*)&tf->saddr, sizeof(tf->saddr)); in logmsg()
366 else wlen = write_rotate(tf, len); in logmsg()
367 if (wlen < 0) perror_msg("write failed file : %s ", tf->filename + isNetwork); in logmsg()
Dtelnet.c73 int wlen = write(TT.sfd, TT.iac, TT.piac); in flush_iac() local
75 if(wlen <= 0) error_msg("IAC : send failed."); in flush_iac()
/external/libmtp/src/
Dlibusb-glue.c1173 int wlen, datawlen; in ptp_usb_senddata() local
1193 wlen = PTP_USB_BULK_HDR_LEN; in ptp_usb_senddata()
1198 wlen = PTP_USB_BULK_HDR_LEN + datawlen; in ptp_usb_senddata()
1206 ptp_init_send_memory_handler (&memhandler, (unsigned char *)&usbdata, wlen); in ptp_usb_senddata()
1208 ret = ptp_write_func(wlen, &memhandler, params->data, &written); in ptp_usb_senddata()
/external/libpng/
Dpngwutil.c1785 png_size_t wlen, hlen, total_len; in png_write_sCAL_s() local
1789 wlen = strlen(width); in png_write_sCAL_s()
1791 total_len = wlen + hlen + 2; in png_write_sCAL_s()
1800 memcpy(buf + 1, width, wlen + 1); /* Append the '\0' here */ in png_write_sCAL_s()
1801 memcpy(buf + wlen + 2, height, hlen); /* Do NOT append the '\0' here */ in png_write_sCAL_s()
/external/pdfium/core/include/fxcrt/
Dfx_system.h215 int wlen,
/external/pdfium/third_party/lpng_v163/
Dpngwutil.c1861 png_size_t wlen, hlen, total_len; in png_write_sCAL_s() local
1865 wlen = strlen(width); in png_write_sCAL_s()
1867 total_len = wlen + hlen + 2; in png_write_sCAL_s()
1876 memcpy(buf + 1, width, wlen + 1); /* Append the '\0' here */ in png_write_sCAL_s()
1877 memcpy(buf + wlen + 2, height, hlen); /* Do NOT append the '\0' here */ in png_write_sCAL_s()
/external/opencv3/3rdparty/libpng/
Dpngwutil.c1925 png_size_t wlen, hlen, total_len; in png_write_sCAL_s() local
1929 wlen = png_strlen(width); in png_write_sCAL_s()
1931 total_len = wlen + hlen + 2; in png_write_sCAL_s()
1940 png_memcpy(buf + 1, width, wlen + 1); /* Append the '\0' here */ in png_write_sCAL_s()
1941 png_memcpy(buf + wlen + 2, height, hlen); /* Do NOT append the '\0' here */ in png_write_sCAL_s()
/external/mksh/src/
Dedit.c830 size_t add = 0, wlen = len; in x_escape() local
834 while (wlen - add > 0) in x_escape()
847 wlen -= add; in x_escape()
852 if (wlen > 0 && rval == 0) in x_escape()
853 rval = putbuf_func(s, wlen); in x_escape()
/external/selinux/policycoreutils/mcstrans/src/
Dmcstrans.c1201 int wlen = strlen(w->text); in compute_raw_from_trans() local
1202 if (plen >= wlen && !strncmp(w->text, p, strlen(w->text))){ in compute_raw_from_trans()
/external/tpm2/
Dpart4.txt30912 188 // 3. wlen = len (w).
30923 199 // 4.1 Obtain a string b of wlen bits from an RBG.