Home
last modified time | relevance | path

Searched refs:str_buffer (Results 1 – 5 of 5) sorted by relevance

/third_party/mindspore/mindspore/ccsrc/minddata/dataset/text/kernels/
Dngram_op.cc37 …std::string str_buffer; // concat all pad tokens with string interleaved wit… in Compute() local
40str_buffer.reserve(l_pad_with_sp_.size() * l_len_ + r_pad_with_sp_.size() * r_len_ + input->SizeIn… in Compute()
41 offsets.push_back(str_buffer.size()); // insert 0 as the starting pos in Compute()
43 offsets.push_back((str_buffer += l_pad_with_sp_).size()); in Compute()
47 str_buffer += (*itr); in Compute()
48 str_buffer += separator_; in Compute()
49 offsets.push_back(str_buffer.size()); in Compute()
53 offsets.push_back((str_buffer += r_pad_with_sp_).size()); in Compute()
66 …(void)res.emplace_back(str_buffer.substr(offsets[ind], offsets[ind + n] - offsets[ind] - separator… in Compute()
/third_party/grpc/src/core/lib/slice/
Dslice_string_helpers.cc70 static void skip_leading_trailing_spaces(const uint8_t* str_buffer, in skip_leading_trailing_spaces() argument
72 while (*begin < *end && str_buffer[*begin] == ' ') { in skip_leading_trailing_spaces()
75 while (*begin < *end && str_buffer[*end - 1] == ' ') { in skip_leading_trailing_spaces()
84 const uint8_t* str_buffer = GRPC_SLICE_START_PTR(str); in grpc_slice_split_inner() local
93 skip_leading_trailing_spaces(str_buffer, &begin, &end); in grpc_slice_split_inner()
101 skip_leading_trailing_spaces(str_buffer, &begin, &end); in grpc_slice_split_inner()
108 skip_leading_trailing_spaces(str_buffer, &begin, &end); in grpc_slice_split_inner()
/third_party/jerryscript/jerry-core/ecma/builtin-objects/
Decma-builtin-helpers.c62 JMEM_DEFINE_LOCAL_ARRAY (str_buffer, buffer_size, lit_utf8_byte_t); in ecma_builtin_helper_object_to_string_tag_helper()
64 lit_utf8_byte_t *buffer_ptr = str_buffer; in ecma_builtin_helper_object_to_string_tag_helper()
77 … (lit_utf8_size_t) ((str_buffer + buffer_size) - buffer_ptr)); in ecma_builtin_helper_object_to_string_tag_helper()
79 JERRY_ASSERT (buffer_ptr <= str_buffer + buffer_size); in ecma_builtin_helper_object_to_string_tag_helper()
84 … (lit_utf8_size_t) ((str_buffer + buffer_size) - buffer_ptr)); in ecma_builtin_helper_object_to_string_tag_helper()
86 JERRY_ASSERT (buffer_ptr <= str_buffer + buffer_size); in ecma_builtin_helper_object_to_string_tag_helper()
90 … (lit_utf8_size_t) ((str_buffer + buffer_size) - buffer_ptr)); in ecma_builtin_helper_object_to_string_tag_helper()
92 JERRY_ASSERT (buffer_ptr <= str_buffer + buffer_size); in ecma_builtin_helper_object_to_string_tag_helper()
94 …ret_string_p = ecma_new_ecma_string_from_utf8 (str_buffer, (lit_utf8_size_t) (buffer_ptr - str_buf… in ecma_builtin_helper_object_to_string_tag_helper()
96 JMEM_FINALIZE_LOCAL_ARRAY (str_buffer); in ecma_builtin_helper_object_to_string_tag_helper()
[all …]
Decma-builtin-string-prototype.c1166 JMEM_DEFINE_LOCAL_ARRAY (str_buffer, total_size, lit_utf8_byte_t); in ecma_builtin_string_prototype_object_repeat()
1168 lit_utf8_byte_t *buffer_ptr = str_buffer; in ecma_builtin_string_prototype_object_repeat()
1176 …ret_string_p = ecma_new_ecma_string_from_utf8 (str_buffer, (lit_utf8_size_t) (buffer_ptr - str_buf… in ecma_builtin_string_prototype_object_repeat()
1177 JMEM_FINALIZE_LOCAL_ARRAY (str_buffer); in ecma_builtin_string_prototype_object_repeat()
/third_party/musl/porting/liteos_a/user_debug/src/malloc/
Dbacktrace.c54 char *str_buffer = NULL; in backtrace_symbols() local
73 str_buffer = (char *)malloc(STRING_MAX_LEN * sizeof(char)); in backtrace_symbols()
74 if (str_buffer == NULL) { in backtrace_symbols()
78 snprintf(str_buffer, STRING_MAX_LEN, " #%02d: <%s+%#x>[%#x] -> %s\n", i, info.dli_sname, in backtrace_symbols()
81 str_location[i] = str_buffer; in backtrace_symbols()
82 total_size += strlen(str_buffer) + 1; in backtrace_symbols()