Home
last modified time | relevance | path

Searched refs:str_length (Results 1 – 20 of 20) sorted by relevance

/external/cronet/base/strings/
Dstring_util_perftest.cc16 void MeasureIsStringASCII(size_t str_length, size_t non_ascii_pos) { in MeasureIsStringASCII() argument
17 String str(str_length, 'A'); in MeasureIsStringASCII()
18 if (non_ascii_pos < str_length) in MeasureIsStringASCII()
28 sizeof(typename String::value_type), str_length, non_ascii_pos, in MeasureIsStringASCII()
33 for (size_t str_length = 4; str_length <= 1024; str_length *= 2) { in TEST() local
35 size_t non_ascii_pos = str_length * non_ascii_loc / 2 + 2; in TEST()
36 MeasureIsStringASCII<std::string>(str_length, non_ascii_pos); in TEST()
37 MeasureIsStringASCII<std::u16string>(str_length, non_ascii_pos); in TEST()
39 MeasureIsStringASCII<std::basic_string<wchar_t>>(str_length, in TEST()
Dstring_util_impl_helpers.h347 size_t str_length = str->length(); in DoReplaceMatchesAfterOffset() local
359 const size_t final_length = str_length + expansion; in DoReplaceMatchesAfterOffset()
381 str->append(src, pos, str_length - pos); in DoReplaceMatchesAfterOffset()
393 if (shift_dst > str_length) in DoReplaceMatchesAfterOffset()
396 str->replace(shift_dst, str_length - shift_src, *str, shift_src, in DoReplaceMatchesAfterOffset()
397 str_length - shift_src); in DoReplaceMatchesAfterOffset()
398 str_length = final_length; in DoReplaceMatchesAfterOffset()
424 size_t match = std::min(matcher.Find(*str, read_offset), str_length); in DoReplaceMatchesAfterOffset()
432 } while (read_offset < str_length); in DoReplaceMatchesAfterOffset()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/gpr/
Dstring.cc226 const size_t str_length = strlen(str); in gpr_leftpad() local
227 const size_t out_length = str_length > length ? str_length : length; in gpr_leftpad()
229 memset(out, flag, out_length - str_length); in gpr_leftpad()
230 memcpy(out + out_length - str_length, str, str_length); in gpr_leftpad()
/external/image_io/src/base/
Ddata_segment.cc31 size_t str_length) const { in Find()
39 if (byte0_location + str_length <= GetEnd()) { in Find()
41 if (strncmp(char0_ptr, str, str_length) == 0) { in Find()
/external/grpc-grpc/src/core/lib/gpr/
Dstring.cc218 const size_t str_length = strlen(str); in gpr_leftpad() local
219 const size_t out_length = str_length > length ? str_length : length; in gpr_leftpad()
221 memset(out, flag, out_length - str_length); in gpr_leftpad()
222 memcpy(out + out_length - str_length, str, str_length); in gpr_leftpad()
/external/libchrome/base/strings/
Dstring_util.cc777 size_t str_length = str->length(); in DoReplaceMatchesAfterOffset() local
789 const size_t final_length = str_length + expansion; in DoReplaceMatchesAfterOffset()
811 str->append(src, pos, str_length - pos); in DoReplaceMatchesAfterOffset()
823 if (shift_dst > str_length) in DoReplaceMatchesAfterOffset()
826 str->replace(shift_dst, str_length - shift_src, *str, shift_src, in DoReplaceMatchesAfterOffset()
827 str_length - shift_src); in DoReplaceMatchesAfterOffset()
828 str_length = final_length; in DoReplaceMatchesAfterOffset()
853 size_t match = std::min(matcher.Find(*str, read_offset), str_length); in DoReplaceMatchesAfterOffset()
861 } while (read_offset < str_length); in DoReplaceMatchesAfterOffset()
/external/cronet/third_party/protobuf/src/google/protobuf/stubs/
Dstructurally_valid.cc389 int str_length, in UTF8GenericScan() argument
392 if (str_length == 0) return kExitOK; in UTF8GenericScan()
397 const uint8* srclimit = isrc + str_length; in UTF8GenericScan()
398 const uint8* srclimit8 = str_length < 7 ? isrc : srclimit - 7; in UTF8GenericScan()
498 int str_length, in UTF8GenericScanFastAscii() argument
501 if (str_length == 0) return kExitOK; in UTF8GenericScanFastAscii()
505 const uint8* srclimit = isrc + str_length; in UTF8GenericScanFastAscii()
506 const uint8* srclimit8 = str_length < 7 ? isrc : srclimit - 7; in UTF8GenericScanFastAscii()
528 exit_reason = UTF8GenericScan(st, str + n, str_length - n, &rest_consumed); in UTF8GenericScanFastAscii()
Dstrutil.cc98 int str_length = str->length(); in StripWhitespace() local
102 while (first < str_length && ascii_isspace(str->at(first))) { in StripWhitespace()
106 if (first == str_length) { in StripWhitespace()
112 str_length -= first; in StripWhitespace()
116 int last = str_length - 1; in StripWhitespace()
120 if (last != (str_length - 1) && last >= 0) { in StripWhitespace()
/external/protobuf/src/google/protobuf/stubs/
Dstructurally_valid.cc391 int str_length, in UTF8GenericScan() argument
394 if (str_length == 0) return kExitOK; in UTF8GenericScan()
399 const uint8_t* srclimit = isrc + str_length; in UTF8GenericScan()
400 const uint8_t* srclimit8 = str_length < 7 ? isrc : srclimit - 7; in UTF8GenericScan()
500 int str_length, in UTF8GenericScanFastAscii() argument
503 if (str_length == 0) return kExitOK; in UTF8GenericScanFastAscii()
507 const uint8_t* srclimit = isrc + str_length; in UTF8GenericScanFastAscii()
508 const uint8_t* srclimit8 = str_length < 7 ? isrc : srclimit - 7; in UTF8GenericScanFastAscii()
531 exit_reason = UTF8GenericScan(st, str + n, str_length - n, &rest_consumed); in UTF8GenericScanFastAscii()
Dstrutil.cc98 int str_length = str->length(); in StripWhitespace() local
102 while (first < str_length && ascii_isspace(str->at(first))) { in StripWhitespace()
106 if (first == str_length) { in StripWhitespace()
112 str_length -= first; in StripWhitespace()
116 int last = str_length - 1; in StripWhitespace()
120 if (last != (str_length - 1) && last >= 0) { in StripWhitespace()
/external/webrtc/rtc_base/
Devent_tracer.cc111 size_t str_length = strlen(arg.value.as_string) + 1; in AddTraceEvent() local
112 char* str_copy = new char[str_length]; in AddTraceEvent()
113 memcpy(str_copy, arg.value.as_string, str_length); in AddTraceEvent()
/external/igt-gpu-tools/assembler/
Dralloc.c362 size_t str_length = strlen(str); in ralloc_strncat() local
363 if (str_length < n) in ralloc_strncat()
364 n = str_length; in ralloc_strncat()
/external/image_io/includes/image_io/base/
Ddata_segment.h115 size_t Find(size_t location, const char* str, size_t str_length) const;
/external/libpcap/
Dpcap-rpcap.c1979 size_t str_length; in rpcap_doauth() local
1998 str_length = strlen(auth->username); in rpcap_doauth()
1999 if (str_length > 65535) in rpcap_doauth()
2004 length += (uint16)str_length; in rpcap_doauth()
2008 str_length = strlen(auth->password); in rpcap_doauth()
2009 if (str_length > 65535) in rpcap_doauth()
2014 length += (uint16)str_length; in rpcap_doauth()
/external/rust/crates/libsqlite3-sys/sqlite3/
Dsqlite3ext.h311 int (*str_length)(sqlite3_str*); member
623 #define sqlite3_str_length sqlite3_api->str_length
Dsqlite3.c125690 int (*str_length)(sqlite3_str*);
126002 #define sqlite3_str_length sqlite3_api->str_length
/external/sqlite/dist/
Dsqlite3ext.h311 int (*str_length)(sqlite3_str*); member
643 #define sqlite3_str_length sqlite3_api->str_length
Dsqlite3.c129821 int (*str_length)(sqlite3_str*);
130153 #define sqlite3_str_length sqlite3_api->str_length
/external/sqlite/dist/orig/
Dsqlite3ext.h311 int (*str_length)(sqlite3_str*); member
643 #define sqlite3_str_length sqlite3_api->str_length
Dsqlite3.c129805 int (*str_length)(sqlite3_str*);
130137 #define sqlite3_str_length sqlite3_api->str_length