Home
last modified time | relevance | path

Searched refs:nstrs (Results 1 – 6 of 6) sorted by relevance

/external/rust/crates/grpcio-sys/grpc/src/core/lib/gpr/
Dstring.cc235 char* gpr_strjoin(const char** strs, size_t nstrs, size_t* final_length) { in gpr_strjoin() argument
236 return gpr_strjoin_sep(strs, nstrs, "", final_length); in gpr_strjoin()
239 char* gpr_strjoin_sep(const char** strs, size_t nstrs, const char* sep, in gpr_strjoin_sep() argument
245 for (i = 0; i < nstrs; i++) { in gpr_strjoin_sep()
249 if (nstrs > 0) { in gpr_strjoin_sep()
250 out_length += sep_len * (nstrs - 1); /* separators */ in gpr_strjoin_sep()
254 for (i = 0; i < nstrs; i++) { in gpr_strjoin_sep()
287 size_t* nstrs, size_t* capstrs) { in add_string_to_split() argument
292 if (*nstrs == *capstrs) { in add_string_to_split()
296 (*strs)[*nstrs] = out; in add_string_to_split()
[all …]
Dstring.h81 char* gpr_strjoin(const char** strs, size_t nstrs, size_t* final_length);
86 char* gpr_strjoin_sep(const char** strs, size_t nstrs, const char* sep,
90 size_t* nstrs);
/external/grpc-grpc/src/core/lib/gpr/
Dstring.cc227 char* gpr_strjoin(const char** strs, size_t nstrs, size_t* final_length) { in gpr_strjoin() argument
228 return gpr_strjoin_sep(strs, nstrs, "", final_length); in gpr_strjoin()
231 char* gpr_strjoin_sep(const char** strs, size_t nstrs, const char* sep, in gpr_strjoin_sep() argument
237 for (i = 0; i < nstrs; i++) { in gpr_strjoin_sep()
241 if (nstrs > 0) { in gpr_strjoin_sep()
242 out_length += sep_len * (nstrs - 1); /* separators */ in gpr_strjoin_sep()
246 for (i = 0; i < nstrs; i++) { in gpr_strjoin_sep()
297 size_t* nstrs, size_t* capstrs) { in add_string_to_split() argument
302 if (*nstrs == *capstrs) { in add_string_to_split()
306 (*strs)[*nstrs] = out; in add_string_to_split()
[all …]
Dstring.h75 char* gpr_strjoin(const char** strs, size_t nstrs, size_t* total_length);
80 char* gpr_strjoin_sep(const char** strs, size_t nstrs, const char* sep,
84 size_t* nstrs);
/external/grpc-grpc/test/core/transport/
Dmetadata_test.cc221 size_t nstrs = 1000; in test_things_stick_around() local
223 static_cast<grpc_slice*>(gpr_malloc(sizeof(grpc_slice) * nstrs)); in test_things_stick_around()
224 size_t* shuf = static_cast<size_t*>(gpr_malloc(sizeof(size_t) * nstrs)); in test_things_stick_around()
232 for (i = 0; i < nstrs; i++) { in test_things_stick_around()
239 for (i = 0; i < nstrs; i++) { in test_things_stick_around()
244 for (i = 0; i < nstrs; i++) { in test_things_stick_around()
245 size_t p = static_cast<size_t>(rand()) % nstrs; in test_things_stick_around()
246 size_t q = static_cast<size_t>(rand()) % nstrs; in test_things_stick_around()
252 for (i = 0; i < nstrs; i++) { in test_things_stick_around()
254 for (j = i + 1; j < nstrs; j++) { in test_things_stick_around()
/external/elfutils/libcpu/
Di386_parse.y902 int nstrs[3] = { 0, 0, 0 }; in find_numbers() local
936 ++nstrs[i]; in find_numbers()
1024 if (nstrs[i] != 0) in find_numbers()
1027 d = nstrs[i]; in find_numbers()