Home
last modified time | relevance | path

Searched refs:src_len (Results 1 – 25 of 65) sorted by relevance

123

/external/libchrome/base/strings/
Dutf_string_conversions.cc26 size_t src_len, in ConvertUnicode() argument
30 int32_t src_len32 = static_cast<int32_t>(src_len); in ConvertUnicode()
48 bool WideToUTF8(const wchar_t* src, size_t src_len, std::string* output) { in WideToUTF8() argument
49 if (IsStringASCII(std::wstring(src, src_len))) { in WideToUTF8()
50 output->assign(src, src + src_len); in WideToUTF8()
53 PrepareForUTF8Output(src, src_len, output); in WideToUTF8()
54 return ConvertUnicode(src, src_len, output); in WideToUTF8()
69 bool UTF8ToWide(const char* src, size_t src_len, std::wstring* output) { in UTF8ToWide() argument
70 if (IsStringASCII(StringPiece(src, src_len))) { in UTF8ToWide()
71 output->assign(src, src + src_len); in UTF8ToWide()
[all …]
Dutf_string_conversion_utils.cc14 int32_t src_len, in ReadUnicodeCharacter() argument
21 CBU8_NEXT(src, *char_index, src_len, code_point); in ReadUnicodeCharacter()
33 int32_t src_len, in ReadUnicodeCharacter() argument
38 *char_index + 1 >= src_len || in ReadUnicodeCharacter()
109 size_t src_len, in PrepareForUTF8Output() argument
112 if (src_len == 0) in PrepareForUTF8Output()
116 output->reserve(src_len); in PrepareForUTF8Output()
119 output->reserve(src_len * 3); in PrepareForUTF8Output()
129 size_t src_len, in PrepareForUTF16Or32Output() argument
132 if (src_len == 0) in PrepareForUTF16Or32Output()
[all …]
Dutf_string_conversions.h24 BASE_EXPORT bool WideToUTF8(const wchar_t* src, size_t src_len,
27 BASE_EXPORT bool UTF8ToWide(const char* src, size_t src_len,
31 BASE_EXPORT bool WideToUTF16(const wchar_t* src, size_t src_len,
34 BASE_EXPORT bool UTF16ToWide(const char16* src, size_t src_len,
38 BASE_EXPORT bool UTF8ToUTF16(const char* src, size_t src_len, string16* output);
40 BASE_EXPORT bool UTF16ToUTF8(const char16* src, size_t src_len,
Dutf_string_conversion_utils.h44 int32_t src_len,
50 int32_t src_len,
57 int32_t src_len,
90 void PrepareForUTF8Output(const CHAR* src, size_t src_len, std::string* output);
95 void PrepareForUTF16Or32Output(const char* src, size_t src_len, STRING* output);
/external/libweave/third_party/chromium/base/strings/
Dutf_string_conversion_utils.cc14 int32_t src_len, in ReadUnicodeCharacter() argument
21 CBU8_NEXT(src, *char_index, src_len, code_point); in ReadUnicodeCharacter()
59 size_t src_len, in PrepareForUTF8Output() argument
62 if (src_len == 0) in PrepareForUTF8Output()
66 output->reserve(src_len); in PrepareForUTF8Output()
69 output->reserve(src_len * 3); in PrepareForUTF8Output()
75 size_t src_len, in PrepareForUTF16Or32Output() argument
78 if (src_len == 0) in PrepareForUTF16Or32Output()
82 output->reserve(src_len); in PrepareForUTF16Or32Output()
86 output->reserve(src_len / 2); in PrepareForUTF16Or32Output()
Dutf_string_conversion_utils.h45 int32_t src_len,
52 int32_t src_len,
81 void PrepareForUTF8Output(const CHAR* src, size_t src_len, std::string* output);
86 void PrepareForUTF16Or32Output(const char* src, size_t src_len, STRING* output);
/external/curl/tests/server/
Dgetpart.c156 size_t src_len = strlen(src_buf); in appenddata() local
158 if(!src_len) in appenddata()
161 need_alloc = src_len + *dst_len + 1; in appenddata()
164 if(src_buf[src_len - 1] == '\r') in appenddata()
165 src_len--; in appenddata()
167 if(src_buf[src_len - 1] == '\n') in appenddata()
168 src_len--; in appenddata()
183 memcpy(*dst_buf + *dst_len, src_buf, src_len); in appenddata()
184 *dst_len += src_len; in appenddata()
195 size_t src_len = 0; in decodedata() local
[all …]
/external/boringssl/src/crypto/base64/
Dbase64.c177 size_t EVP_EncodeBlock(uint8_t *dst, const uint8_t *src, size_t src_len) { in EVP_EncodeBlock() argument
179 size_t remaining = src_len, ret = 0; in EVP_EncodeBlock()
430 int EVP_DecodeBlock(uint8_t *dst, const uint8_t *src, size_t src_len) { in EVP_DecodeBlock() argument
434 while (conv_ascii2bin(*src) == B64_WS && src_len > 0) { in EVP_DecodeBlock()
436 src_len--; in EVP_DecodeBlock()
441 while (src_len > 3 && B64_NOT_BASE64(conv_ascii2bin(src[src_len - 1]))) { in EVP_DecodeBlock()
442 src_len--; in EVP_DecodeBlock()
445 if (!EVP_DecodedLength(&dst_len, src_len) || dst_len > INT_MAX) { in EVP_DecodeBlock()
448 if (!EVP_DecodeBase64(dst, &dst_len, dst_len, src, src_len)) { in EVP_DecodeBlock()
/external/libvncserver/common/
Dminilzo.h72 lzo1x_1_compress ( const lzo_bytep src, lzo_uint src_len,
78 lzo1x_decompress ( const lzo_bytep src, lzo_uint src_len,
84 lzo1x_decompress_safe ( const lzo_bytep src, lzo_uint src_len,
Dlzoconf.h235 (__LZO_CDECL *lzo_compress_t) ( const lzo_bytep src, lzo_uint src_len,
240 (__LZO_CDECL *lzo_decompress_t) ( const lzo_bytep src, lzo_uint src_len,
245 (__LZO_CDECL *lzo_optimize_t) ( lzo_bytep src, lzo_uint src_len,
250 (__LZO_CDECL *lzo_compress_dict_t)(const lzo_bytep src, lzo_uint src_len,
256 (__LZO_CDECL *lzo_decompress_dict_t)(const lzo_bytep src, lzo_uint src_len,
/external/valgrind/coregrind/m_debuginfo/
Dminilzo.h87 lzo1x_1_compress ( const lzo_bytep src, lzo_uint src_len,
93 lzo1x_decompress ( const lzo_bytep src, lzo_uint src_len,
99 lzo1x_decompress_safe ( const lzo_bytep src, lzo_uint src_len,
Dlzoconf.h265 (__LZO_CDECL *lzo_compress_t) ( const lzo_bytep src, lzo_uint src_len,
270 (__LZO_CDECL *lzo_decompress_t) ( const lzo_bytep src, lzo_uint src_len,
275 (__LZO_CDECL *lzo_optimize_t) ( lzo_bytep src, lzo_uint src_len,
280 (__LZO_CDECL *lzo_compress_dict_t)(const lzo_bytep src, lzo_uint src_len,
286 (__LZO_CDECL *lzo_decompress_dict_t)(const lzo_bytep src, lzo_uint src_len,
/external/valgrind/none/tests/s390x/
Dmvcl.c159 run_test(void *dst, uint32_t dst_len, void *src, uint32_t src_len, uint32_t pad) in run_test() argument
163 result = mvcl(dst, dst_len, src, src_len, pad); in run_test()
175 uint32_t dst_offset, dst_len, src_offset, src_len; in main() local
267 for (src_len = 0; src_len <= sizeof buf - src_offset; ++src_len) in main()
268 run_test(buf + dst_offset, dst_len, buf + src_offset, src_len, 'x'); in main()
Dcu24_1.c55 do_cu24(uint32_t *dst, uint64_t dst_len, uint16_t *src, uint64_t src_len) in do_cu24() argument
62 register uint64_t source_len asm("5") = src_len; in do_cu24()
86 run_test(uint32_t *dst, uint64_t dst_len, uint16_t *src, uint64_t src_len) in run_test() argument
91 result = do_cu24(dst, dst_len, src, src_len); in run_test()
Dcu24.c55 do_cu24(uint32_t *dst, uint64_t dst_len, uint16_t *src, uint64_t src_len) in do_cu24() argument
62 register uint64_t source_len asm("5") = src_len; in do_cu24()
86 run_test(uint32_t *dst, uint64_t dst_len, uint16_t *src, uint64_t src_len) in run_test() argument
91 result = do_cu24(dst, dst_len, src, src_len); in run_test()
Dcu42.c58 do_cu42(uint16_t *dst, uint64_t dst_len, uint32_t *src, uint64_t src_len) in do_cu42() argument
65 register uint64_t source_len asm("5") = src_len; in do_cu42()
89 run_test(uint16_t *dst, uint64_t dst_len, uint32_t *src, uint64_t src_len) in run_test() argument
94 result = do_cu42(dst, dst_len, src, src_len); in run_test()
Dcu41.c69 do_cu41(uint8_t *dst, uint64_t dst_len, uint32_t *src, uint64_t src_len) in do_cu41() argument
76 register uint64_t source_len asm("5") = src_len; in do_cu41()
100 run_test(uint8_t *dst, uint64_t dst_len, uint32_t *src, uint64_t src_len) in run_test() argument
105 result = do_cu41(dst, dst_len, src, src_len); in run_test()
Dcu21_1.c68 do_cu21(uint8_t *dst, uint64_t dst_len, uint16_t *src, uint64_t src_len) in do_cu21() argument
75 register uint64_t source_len asm("5") = src_len; in do_cu21()
99 run_test(uint8_t *dst, uint64_t dst_len, uint16_t *src, uint64_t src_len) in run_test() argument
104 result = do_cu21(dst, dst_len, src, src_len); in run_test()
Dcu21.c68 do_cu21(uint8_t *dst, uint64_t dst_len, uint16_t *src, uint64_t src_len) in do_cu21() argument
75 register uint64_t source_len asm("5") = src_len; in do_cu21()
99 run_test(uint8_t *dst, uint64_t dst_len, uint16_t *src, uint64_t src_len) in run_test() argument
104 result = do_cu21(dst, dst_len, src, src_len); in run_test()
Dcu14.c77 do_cu14(uint32_t *dst, uint64_t dst_len, uint8_t *src, uint64_t src_len) in do_cu14() argument
84 register uint64_t source_len asm("5") = src_len; in do_cu14()
108 run_test(uint32_t *dst, uint64_t dst_len, uint8_t *src, uint64_t src_len) in run_test() argument
114 if (src_len == 0) in run_test()
117 for(i = 0; i < src_len; ++i) in run_test()
122 result = do_cu14(dst, dst_len, src, src_len); in run_test()
Dcu12_1.c77 do_cu12(uint16_t *dst, uint64_t dst_len, uint8_t *src, uint64_t src_len) in do_cu12() argument
84 register uint64_t source_len asm("5") = src_len; in do_cu12()
108 run_test(uint16_t *dst, uint64_t dst_len, uint8_t *src, uint64_t src_len) in run_test() argument
114 if (src_len == 0) in run_test()
117 for(i = 0; i < src_len; ++i) in run_test()
122 result = do_cu12(dst, dst_len, src, src_len); in run_test()
Dcu12.c77 do_cu12(uint16_t *dst, uint64_t dst_len, uint8_t *src, uint64_t src_len) in do_cu12() argument
84 register uint64_t source_len asm("5") = src_len; in do_cu12()
108 run_test(uint16_t *dst, uint64_t dst_len, uint8_t *src, uint64_t src_len) in run_test() argument
114 if (src_len == 0) in run_test()
117 for(i = 0; i < src_len; ++i) in run_test()
122 result = do_cu12(dst, dst_len, src, src_len); in run_test()
Dcu14_1.c77 do_cu14(uint32_t *dst, uint64_t dst_len, uint8_t *src, uint64_t src_len) in do_cu14() argument
84 register uint64_t source_len asm("5") = src_len; in do_cu14()
108 run_test(uint32_t *dst, uint64_t dst_len, uint8_t *src, uint64_t src_len) in run_test() argument
114 if (src_len == 0) in run_test()
117 for(i = 0; i < src_len; ++i) in run_test()
122 result = do_cu14(dst, dst_len, src, src_len); in run_test()
/external/valgrind/memcheck/tests/s390x/
Dcu21.c39 do_cu21(uint8_t *dst, uint64_t dst_len, uint16_t *src, uint64_t src_len) in do_cu21() argument
43 register uint64_t source_len asm("5") = src_len; in do_cu21()
/external/boringssl/src/include/openssl/
Dbase64.h79 size_t src_len);
164 size_t src_len);

123