Home
last modified time | relevance | path

Searched refs:last_pos (Results 1 – 25 of 42) sorted by relevance

12

/third_party/node/src/
Djson_utils.cc15 size_t last_pos = 0; in EscapeJsonChars() local
29 if (pos > last_pos) { in EscapeJsonChars()
30 ret += str.substr(last_pos, pos - last_pos); in EscapeJsonChars()
32 last_pos = pos + 1; in EscapeJsonChars()
37 if (last_pos < str.size()) { in EscapeJsonChars()
38 ret += str.substr(last_pos, pos - last_pos); in EscapeJsonChars()
/third_party/mindspore/mindspore/lite/tools/common/
Dstring_util.cc57 std::string::size_type last_pos = 0; in SplitStringToVector() local
60 res.push_back(raw_str.substr(last_pos, cur_pos - last_pos)); in SplitStringToVector()
62 last_pos = cur_pos; in SplitStringToVector()
65 if (last_pos < raw_str.size()) { in SplitStringToVector()
66 res.push_back(raw_str.substr(last_pos, raw_str.size() - last_pos + 1)); in SplitStringToVector()
/third_party/mesa3d/src/gallium/drivers/r600/
Dcompute_memory_pool.c222 int64_t last_pos; in compute_memory_finalize_pending() local
262 last_pos = allocated; in compute_memory_finalize_pending()
268 err = compute_memory_promote_item(pool, item, pipe, last_pos); in compute_memory_finalize_pending()
271 last_pos += align(item->size_in_dw, ITEM_ALIGNMENT); in compute_memory_finalize_pending()
293 int64_t last_pos; in compute_memory_defrag() local
297 last_pos = 0; in compute_memory_defrag()
299 if (src != dst || item->start_in_dw != last_pos) { in compute_memory_defrag()
300 assert(last_pos <= item->start_in_dw); in compute_memory_defrag()
303 item, last_pos, pipe); in compute_memory_defrag()
306 last_pos += align(item->size_in_dw, ITEM_ALIGNMENT); in compute_memory_defrag()
/third_party/flutter/skia/third_party/externals/libwebp/src/utils/
Dbit_reader_utils.c240 static int last_pos = 0; variable
279 if (abs(pos - last_pos) > 32) { in BitTrace()
282 last_pos = 0; in BitTrace()
290 kLabels[i].size += pos - last_pos; in BitTrace()
293 last_pos = pos; in BitTrace()
/third_party/skia/third_party/externals/libwebp/src/utils/
Dbit_reader_utils.c240 static int last_pos = 0; variable
279 if (abs(pos - last_pos) > 32) { in BitTrace()
282 last_pos = 0; in BitTrace()
290 kLabels[i].size += pos - last_pos; in BitTrace()
293 last_pos = pos; in BitTrace()
/third_party/grpc/src/compiler/
Dgenerator_helpers.h85 size_t pos, last_pos = 0; in tokenize() local
89 pos = input.find_first_of(delimiters, last_pos); in tokenize()
95 tokens.push_back(input.substr(last_pos, pos - last_pos)); in tokenize()
98 last_pos = pos + 1; in tokenize()
/third_party/FreeBSD/sys/dev/usb/
Dusb_hid.c63 struct hid_pos_data last_pos[MAXID]; member
116 if (s->last_pos[i].rid == c->report_ID) in hid_switch_rid()
118 if (s->last_pos[i].rid == 0) in hid_switch_rid()
123 s->last_pos[i].rid = c->report_ID; in hid_switch_rid()
124 s->last_pos[i].pos = c->loc.pos; in hid_switch_rid()
137 if (s->last_pos[i].rid == next_rID) in hid_switch_rid()
139 if (s->last_pos[i].rid == 0) in hid_switch_rid()
144 s->last_pos[i].rid = next_rID; in hid_switch_rid()
145 c->loc.pos = s->last_pos[i].pos; in hid_switch_rid()
/third_party/boost/libs/multi_index/example/
Drearrange.cpp99 std::size_t last_pos=0; in rising_sequences() local
103 if(pos<last_pos)++s; in rising_sequences()
104 last_pos=pos; in rising_sequences()
/third_party/skia/third_party/externals/brotli/research/
Dfind_opt_references.cc44 size_t last_pos = 0; in ReadInput() local
48 available_in = fread(storage + last_pos, 1, kFileBufferSize, fin); in ReadInput()
49 last_pos += available_in; in ReadInput()
51 assert(last_pos == input_size); in ReadInput()
/third_party/ffmpeg/libavformat/
Dgif.c38 int64_t last_pos; member
108 gif->last_pos = avio_tell(pb); in gif_write_packet()
112 if (!gif->last_pos) { in gif_write_packet()
Dgxf.c462 uint64_t last_pos; in gxf_resync_media() local
476 last_pos = avio_tell(pb); in gxf_resync_media()
480 if (avio_seek(pb, last_pos, SEEK_SET) < 0) in gxf_resync_media()
489 if (avio_seek(pb, last_pos, SEEK_SET) >= 0) in gxf_resync_media()
Davidec.c183 int64_t last_pos = -1; in read_odml_index() local
233 if (last_pos == pos || pos == base - 8) in read_odml_index()
235 if (last_pos != pos && len) in read_odml_index()
240 last_pos = pos; in read_odml_index()
1592 int64_t last_pos = -1; in avi_read_idx1() local
1648 if (last_pos == pos) in avi_read_idx1()
1656 last_pos = pos; in avi_read_idx1()
/third_party/boost/boost/container/
Dslist.hpp693 const_iterator last_pos; in resize() local
694 if(!priv_try_shrink(new_size, last_pos)){ in resize()
696 … this->insert_after(last_pos, value_init_iterator(new_size - this->size()), value_init_iterator()); in resize()
708 const_iterator last_pos; in resize() local
709 if(!priv_try_shrink(new_size, last_pos)){ in resize()
710 this->insert_after(last_pos, new_size, x); in resize()
1619 bool priv_try_shrink(size_type new_size, const_iterator &last_pos) in priv_try_shrink() argument
1626 last_pos = const_iterator(cur); in priv_try_shrink()
1628 this->erase_after(last_pos, const_iterator(end_n)); in priv_try_shrink()
/third_party/gstreamer/gstplugins_good/gst/matroska/
Debml-write.c57 ebml->last_pos = G_MAXUINT64; /* force segment event */ in gst_ebml_write_init()
125 ebml->last_pos = G_MAXUINT64; /* force segment event */ in gst_ebml_write_reset()
256 if (GST_BUFFER_OFFSET (buffer) != ebml->last_pos) { in gst_ebml_write_flush_cache()
270 ebml->last_pos = ebml->pos; in gst_ebml_write_flush_cache()
470 if (GST_BUFFER_OFFSET (buf) != ebml->last_pos) { in gst_ebml_write_element_push()
476 ebml->last_pos = ebml->pos; in gst_ebml_write_element_push()
Debml-write.h50 guint64 last_pos; member
/third_party/flutter/skia/third_party/externals/libwebp/src/dsp/
Dupsampling_neon.c205 const int last_pos = 1 + 16 * num_blocks; \
242 top_dst, bottom_dst, last_pos, len - last_pos); \
/third_party/skia/third_party/externals/libwebp/src/dsp/
Dupsampling_neon.c205 const int last_pos = 1 + 16 * num_blocks; \
242 top_dst, bottom_dst, last_pos, len - last_pos); \
/third_party/skia/src/shaders/gradients/
DSk4fGradientBase.cpp196 const SkScalar last_pos = SK_Scalar1 - first_pos; in init() local
228 fIntervals.emplace_back(clamp_color, last_pos, in init()
/third_party/flutter/skia/src/shaders/gradients/
DSk4fGradientBase.cpp196 const SkScalar last_pos = SK_Scalar1 - first_pos; in init() local
228 fIntervals.emplace_back(clamp_color, last_pos, in init()
/third_party/skia/third_party/externals/freetype/src/sdf/
Dftsdf.c347 FT_26D6_Vec last_pos; member
666 contour->last_pos = *to; in sdf_move_to()
698 if ( contour->last_pos.x == to->x && in sdf_line_to()
699 contour->last_pos.y == to->y ) in sdf_line_to()
705 edge->start_pos = contour->last_pos; in sdf_line_to()
710 contour->last_pos = *to; in sdf_line_to()
744 edge->start_pos = contour->last_pos; in sdf_conic_to()
750 contour->last_pos = *to; in sdf_conic_to()
786 edge->start_pos = contour->last_pos; in sdf_cubic_to()
793 contour->last_pos = *to; in sdf_cubic_to()
/third_party/protobuf/src/google/protobuf/
Dtext_format_unittest.cc728 int last_pos = 0; in PrintString() local
733 val.substr(last_pos, newline_pos + 1 - last_pos), generator); in PrintString()
734 last_pos = newline_pos + 1; in PrintString()
735 newline_pos = val.find('\n', last_pos); in PrintString()
737 if (last_pos < val.size()) { in PrintString()
739 TextFormat::FastFieldValuePrinter::PrintString(val.substr(last_pos), in PrintString()
/third_party/ffmpeg/libavcodec/
Datrac3.c452 int i, j, last_pos = -1; in add_tonal_components() local
456 last_pos = FFMAX(components[i].pos + components[i].num_coefs, last_pos); in add_tonal_components()
464 return last_pos; in add_tonal_components()
Dmpegaudiodec_template.c754 int last_pos, bits_left; in huffman_decode() local
843 last_pos = 0; in huffman_decode()
848 if (pos > end_pos2 && last_pos) { in huffman_decode()
852 skip_bits_long(&s->gb, last_pos - pos); in huffman_decode()
853 …av_log(s->avctx, AV_LOG_INFO, "overread, skip %d enddists: %d %d\n", last_pos - pos, end_pos-pos, … in huffman_decode()
862 last_pos = pos; in huffman_decode()
/third_party/gstreamer/gstplugins_good/gst/rtsp/
Dgstrtspsrc.h308 GstClockTime last_pos; member
/third_party/skia/third_party/externals/harfbuzz/src/
Dhb-ot-shape-complex-indic.cc683 indic_position_t last_pos = POS_START; in initial_reordering_consonant_syllable() local
688 info[i].indic_position() = last_pos; in initial_reordering_consonant_syllable()
708 last_pos = (indic_position_t) info[i].indic_position(); in initial_reordering_consonant_syllable()

12