Home
last modified time | relevance | path

Searched refs:segments (Results 1 – 25 of 458) sorted by relevance

12345678910>>...19

/third_party/gettext/gettext-tools/src/
Dxg-mixed-string.c74 ms->segments = NULL; in mixed_string_alloc_simple()
79 ms->segments = XNMALLOC (1, struct mixed_string_segment *); in mixed_string_alloc_simple()
84 ms->segments[0] = in mixed_string_alloc_simple()
88 ms->segments[0] = in mixed_string_alloc_simple()
110 ms->segments = NULL; in mixed_string_alloc_utf8()
115 ms->segments = XNMALLOC (1, struct mixed_string_segment *); in mixed_string_alloc_utf8()
116 ms->segments[0] = segment_alloc (utf8_encoded, string, strlen (string)); in mixed_string_alloc_utf8()
134 ms->segments = NULL; in mixed_string_clone()
141 ms->segments = XNMALLOC (nsegments, struct mixed_string_segment *); in mixed_string_clone()
143 ms->segments[i] = segment_clone (ms1->segments[i]); in mixed_string_clone()
[all …]
/third_party/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/
DRbPath.java34 p -> p.segments,
62 public static RbPath of(String... segments) { in of() argument
63 return of(Arrays.asList(segments)); in of()
71 public static RbPath of(Iterable<String> segments) { in of() argument
72 return new RbPath(segments); in of()
95 private final ImmutableList<String> segments; field in RbPath
98 private RbPath(Iterable<String> segments) { in RbPath() argument
99 this.segments = ImmutableList.copyOf(segments); in RbPath()
101 this.hashCode = Objects.hash(this.segments); in RbPath()
102 for (String segment : this.segments) { in RbPath()
[all …]
/third_party/boost/libs/icl/example/std_copy_/
Dstd_copy.cpp43 void show_segments(const vector<pair<discrete_interval<int>, int> >& segments) in show_segments() argument
45 vector<pair<discrete_interval<int>, int> >::const_iterator iter = segments.begin(); in show_segments()
46 while(iter != segments.end()) in show_segments()
56 vector<pair<discrete_interval<int>, int> > segments = make_segments(); in std_copy() local
58 cout << "input sequence: "; show_segments(segments); cout << "\n\n"; in std_copy()
65 std::copy(segments.begin(), segments.end(), in std_copy()
75 std::copy(segments.begin(), segments.end(), in std_copy()
/third_party/ffmpeg/libavcodec/
Ddfa.c71 unsigned segments; in decode_tsw1() local
74 segments = bytestream2_get_le32(gb); in decode_tsw1()
76 if (segments == 0 && offset == frame_end - frame) in decode_tsw1()
81 while (segments--) { in decode_tsw1()
113 int v, offset, count, segments; in decode_dsw1() local
115 segments = bytestream2_get_le16(gb); in decode_dsw1()
116 while (segments--) { in decode_dsw1()
150 int i, v, offset, count, segments; in decode_dds1() local
154 segments = bytestream2_get_le16(gb); in decode_dds1()
155 while (segments--) { in decode_dds1()
[all …]
/third_party/typescript_eslint/packages/typescript-estree/tests/
Dast-fixtures.test.ts32 const segments = dir.split(path.sep); constant
38 segments,
46 segments = fixture.segments,
48 if (segments.length > 0) {
49 describe(segments[0], () => {
50 nestDescribe(fixture, segments.slice(1));
81 if ([...fixture.segments, fixture.name].join(path.sep) === ONLY) {
/third_party/flutter/skia/src/gpu/ops/
DGrAAConvexPathRenderer.cpp66 static bool center_of_mass(const SegmentArray& segments, SkPoint* c) { in center_of_mass() argument
69 int count = segments.count(); in center_of_mass()
75 p0 = segments[0].endPt(); in center_of_mass()
81 pj = segments[1].endPt() - p0; in center_of_mass()
84 pj = segments[i + 1].endPt() - p0; in center_of_mass()
99 const SkPoint& pt = segments[i].endPt(); in center_of_mass()
116 static bool compute_vectors(SegmentArray* segments, in compute_vectors() argument
121 if (!center_of_mass(*segments, fanPt)) { in compute_vectors()
124 int count = segments->count(); in compute_vectors()
138 Segment& sega = (*segments)[a]; in compute_vectors()
[all …]
/third_party/skia/src/gpu/ops/
DAAConvexPathRenderer.cpp69 bool center_of_mass(const SegmentArray& segments, SkPoint* c) { in center_of_mass() argument
72 int count = segments.count(); in center_of_mass()
78 p0 = segments[0].endPt(); in center_of_mass()
84 pj = segments[1].endPt() - p0; in center_of_mass()
87 pj = segments[i + 1].endPt() - p0; in center_of_mass()
102 const SkPoint& pt = segments[i].endPt(); in center_of_mass()
119 bool compute_vectors(SegmentArray* segments, in compute_vectors() argument
124 if (!center_of_mass(*segments, fanPt)) { in compute_vectors()
127 int count = segments->count(); in compute_vectors()
141 Segment& sega = (*segments)[a]; in compute_vectors()
[all …]
/third_party/boost/boost/fusion/sequence/intrinsic/
Dsegments.hpp36 struct apply : Sequence::template segments<Sequence> {};
46 struct segments struct
61 , result_of::segments<Sequence>
63 segments(Sequence& seq) in segments() function
71 inline typename result_of::segments<Sequence const>::type
72 segments(Sequence const& seq) in segments() function
/third_party/ffmpeg/libavformat/
Daaxdec.c57 AAXSegment *segments; member
104 pts += (a->segments[seg].end - a->segments[seg].start) / size; in get_pts()
106 pts += ((pos - a->segments[a->current_segment].start) / size); in get_pts()
149 a->segments = av_calloc(a->nb_segments, sizeof(*a->segments)); in aax_read_header()
150 if (!a->segments) in aax_read_header()
265 a->segments[r].start = start + a->data_offset; in aax_read_header()
266 a->segments[r].end = a->segments[r].start + size; in aax_read_header()
274 if (!a->segments[0].end) { in aax_read_header()
291 ret64 = avio_seek(pb, a->segments[0].start, SEEK_SET); in aax_read_header()
325 av_freep(&a->segments); in aax_read_header()
[all …]
/third_party/boost/libs/icl/test/
Dtest_functions.hpp35 void itl_map_copy(const SequenceT& segments, in itl_map_copy() argument
38 ICL_const_FORALL(typename SequenceT, segment_, segments) in itl_map_copy()
51 void test_interval_map_copy_via_inserter(const SequenceT& segments, in test_interval_map_copy_via_inserter() argument
59 itl_map_copy(segments, looped_copied_map); in test_interval_map_copy_via_inserter()
60 … std::copy(segments.begin(), segments.end(), std::inserter(std_copied_map, std_copied_map.end())); in test_interval_map_copy_via_inserter()
/third_party/typescript_eslint/packages/scope-manager/tests/
Dfixtures.test.ts22 const segments = dir.split(path.sep); constant
28 segments,
51 segments = fixture.segments,
53 if (segments.length > 0) {
54 describe(segments[0], () => {
55 nestDescribe(fixture, segments.slice(1));
159 if ([...fixture.segments, fixture.name].join(path.sep) === ONLY) {
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DLiveInterval.cpp93 if (I == segments().end()) { in createDeadDef()
116 segments().insert(I, Segment(Def, Def.getDeadSlot(), VNI)); in createDeadDef()
121 if (segments().empty()) in extendInBlock()
125 if (I == segments().begin()) in extendInBlock()
137 if (segments().empty()) in extendInBlock()
141 if (I == segments().begin()) in extendInBlock()
159 assert(I != segments().end() && "Not a valid segment!"); in extendSegmentEndTo()
165 for (; MergeTo != segments().end() && NewEnd >= MergeTo->end; ++MergeTo) in extendSegmentEndTo()
173 if (MergeTo != segments().end() && MergeTo->start <= I->end && in extendSegmentEndTo()
180 segments().erase(std::next(I), MergeTo); in extendSegmentEndTo()
[all …]
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/table/core/
DCMapFormat4.java361 private List<Builder.Segment> segments; field in CMapFormat4.Builder
377 this.segments = new ArrayList<Builder.Segment>(); in initialize()
393 this.segments.add(segment); in initialize()
405 if (this.segments == null) { in getSegments()
409 return this.segments; in getSegments()
412 public void setSegments(List<Builder.Segment> segments) { in setSegments() argument
413 this.segments = Segment.deepCopy(segments); in setSegments()
437 this.segments = null; in subDataSet()
448 int size = Offset.format4FixedSize.offset + this.segments.size() in subDataSizeToSerialize()
460 if (this.segments != null) { in subReadyToSerialize()
[all …]
/third_party/flutter/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/table/core/
DCMapFormat4.java361 private List<Builder.Segment> segments; field in CMapFormat4.Builder
377 this.segments = new ArrayList<Builder.Segment>(); in initialize()
393 this.segments.add(segment); in initialize()
405 if (this.segments == null) { in getSegments()
409 return this.segments; in getSegments()
412 public void setSegments(List<Builder.Segment> segments) { in setSegments() argument
413 this.segments = Segment.deepCopy(segments); in setSegments()
437 this.segments = null; in subDataSet()
448 int size = Offset.format4FixedSize.offset + this.segments.size() in subDataSizeToSerialize()
460 if (this.segments != null) { in subReadyToSerialize()
[all …]
/third_party/mindspore/mindspore/ccsrc/vm/
Dgraph_partition.cc455 void RemoveUselessDependency(const std::vector<GraphSegmentPtr> *segments) { in RemoveUselessDependency() argument
456 MS_EXCEPTION_IF_NULL(segments); in RemoveUselessDependency()
457 for (auto &segment : *segments) { in RemoveUselessDependency()
503 void AddSegment(const std::vector<AnfNodePtr> &nodes, std::vector<GraphSegmentPtr> *segments, in AddSegment() argument
505 MS_EXCEPTION_IF_NULL(segments); in AddSegment()
508 segments->emplace_back(segment); in AddSegment()
526 …void AddSegments(std::vector<GraphSegmentPtr> *segments, std::map<AnfNodePtr, GraphSegmentPtr> *no… in AddSegments()
527 MS_EXCEPTION_IF_NULL(segments); in AddSegments()
530 AddSegment(pre_nodes, segments, node_to_segment); in AddSegments()
533 AddSegment(pre_common_nodes, segments, node_to_segment); in AddSegments()
[all …]
/third_party/protobuf/src/google/protobuf/io/
Dio_win32.cc162 std::vector<wstring> segments; in normalize() local
178 if (!segments.empty() && in normalize()
179 (!has_drive_letter(segments[0].c_str()) || segments.size() > 1)) { in normalize()
180 segments.pop_back(); in normalize()
183 segments.push_back(segment); in normalize()
193 if (segments.size() == 1 && segments[0].size() == 2 && in normalize()
194 has_drive_letter(segments[0].c_str())) { in normalize()
195 return segments[0] + L'\\'; in normalize()
201 for (int i = 0; i < segments.size(); ++i) { in normalize()
206 result << segments[i]; in normalize()
/third_party/freetype/src/autofit/
Dafhints.c48 if ( !axis->segments ) in af_axis_hints_new_segment()
50 axis->segments = axis->embedded.segments; in af_axis_hints_new_segment()
71 if ( axis->segments == axis->embedded.segments ) in af_axis_hints_new_segment()
73 if ( FT_NEW_ARRAY( axis->segments, new_max ) ) in af_axis_hints_new_segment()
75 ft_memcpy( axis->segments, axis->embedded.segments, in af_axis_hints_new_segment()
76 sizeof ( axis->embedded.segments ) ); in af_axis_hints_new_segment()
80 if ( FT_RENEW_ARRAY( axis->segments, old_max, new_max ) ) in af_axis_hints_new_segment()
87 segment = axis->segments + axis->num_segments++; in af_axis_hints_new_segment()
248 AF_Segment segments = axis->segments; in af_get_segment_index() local
249 AF_Segment limit = segments + axis->num_segments; in af_get_segment_index()
[all …]
/third_party/flutter/skia/third_party/externals/freetype/src/autofit/
Dafhints.c48 if ( !axis->segments ) in af_axis_hints_new_segment()
50 axis->segments = axis->embedded.segments; in af_axis_hints_new_segment()
71 if ( axis->segments == axis->embedded.segments ) in af_axis_hints_new_segment()
73 if ( FT_NEW_ARRAY( axis->segments, new_max ) ) in af_axis_hints_new_segment()
75 ft_memcpy( axis->segments, axis->embedded.segments, in af_axis_hints_new_segment()
76 sizeof ( axis->embedded.segments ) ); in af_axis_hints_new_segment()
80 if ( FT_RENEW_ARRAY( axis->segments, old_max, new_max ) ) in af_axis_hints_new_segment()
87 segment = axis->segments + axis->num_segments++; in af_axis_hints_new_segment()
248 AF_Segment segments = axis->segments; in af_get_segment_index() local
249 AF_Segment limit = segments + axis->num_segments; in af_get_segment_index()
[all …]
Dafwarp.c78 AF_Segment segments, in af_warper_compute_line_best() argument
121 FT_Pos len = segments[nn].max_coord - segments[nn].min_coord; in af_warper_compute_line_best()
122 FT_Pos y0 = FT_MulFix( segments[nn].pos, scale ) + delta; in af_warper_compute_line_best()
178 AF_Segment segments; in af_warper_compute() local
199 segments = axis->segments; in af_warper_compute()
224 X1 = X2 = segments[0].pos; in af_warper_compute()
227 FT_Int X = segments[nn].pos; in af_warper_compute()
348 segments, num_segments ); in af_warper_compute()
/third_party/flutter/skia/third_party/externals/harfbuzz/src/
Dhb-ot-cmap-table.hh86 const hb_sorted_vector_t<segment_plan> &segments) in serialize()
93 this->length = get_sub_table_size (segments); in serialize()
95 this->segCountX2 = segments.length * 2; in serialize()
96 this->entrySelector = hb_max (1u, hb_bit_storage (segments.length)) - 1; in serialize()
98 this->rangeShift = segments.length * 2 > this->searchRange in serialize()
99 ? 2 * segments.length - this->searchRange in serialize()
102 HBUINT16 *end_count = c->allocate_size<HBUINT16> (HBUINT16::static_size * segments.length); in serialize()
104 HBUINT16 *start_count = c->allocate_size<HBUINT16> (HBUINT16::static_size * segments.length); in serialize()
105 HBINT16 *id_delta = c->allocate_size<HBINT16> (HBUINT16::static_size * segments.length); in serialize()
106 … HBUINT16 *id_range_offset = c->allocate_size<HBUINT16> (HBUINT16::static_size * segments.length); in serialize()
[all …]
/third_party/mindspore/tests/ut/cpp/vm/
Dsegment_runner_test.cc57 auto segments = graph_partition->Partition(g); in TEST_F() local
60 auto convertResult = MsVmConvert(segments[0], ""); in TEST_F()
71 auto segments = graph_partition->Partition(g); in TEST_F() local
74 auto convertResult = MsVmConvert(segments[0], ""); in TEST_F()
85 auto segments = graph_partition->Partition(g); in TEST_F() local
88 auto convertResult = MsVmConvert(segments[0], ""); in TEST_F()
/third_party/protobuf/csharp/src/Google.Protobuf.Test/
DReadOnlySequenceFactory.cs49 var segments = new List<byte[]>(); in CreateWithContent()
53 segments.Add(new byte[0]); in CreateWithContent()
64 segments.Add(segment.ToArray()); in CreateWithContent()
68 segments.Add(new byte[0]); in CreateWithContent()
72 return CreateSegments(segments.ToArray()); in CreateWithContent()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/
Dunique_cpu_kernel.h99 auto &segments = *segments_ptr; in SplitAndCalculateBucketSize() local
109 segments.reserve(thread_num); in SplitAndCalculateBucketSize()
120 (void)segments.emplace_back(std::make_shared<UniqueParam<DataType, IndexType>>()); in SplitAndCalculateBucketSize()
121 segments[i]->input_ = params->input_ + current_offset; in SplitAndCalculateBucketSize()
122 segments[i]->input_size_ = data_size; in SplitAndCalculateBucketSize()
123 segments[i]->thread_num_ = thread_num; in SplitAndCalculateBucketSize()
124 auto task = [&segments, &segment_bucket_sizes, i]() { in SplitAndCalculateBucketSize()
125 CalculateEachBucketSize<DataType, IndexType>(segments[i], segment_bucket_sizes[i].get()); in SplitAndCalculateBucketSize()
182 auto &segments = *segments_ptr; in GatherSegmentsToBuckets() local
185 auto thread_num = segments.size(); in GatherSegmentsToBuckets()
[all …]
/third_party/skia/src/gpu/
DGrDistanceFieldGenFromVector.cpp349 static inline void add_line(const SkPoint pts[2], PathSegmentArray* segments) { in add_line() argument
350 segments->push_back(); in add_line()
351 segments->back().fType = PathSegment::kLine; in add_line()
352 segments->back().fPts[0] = pts[0]; in add_line()
353 segments->back().fPts[1] = pts[1]; in add_line()
355 segments->back().init(); in add_line()
358 static inline void add_quad(const SkPoint pts[3], PathSegmentArray* segments) { in add_quad() argument
366 add_line(line_pts, segments); in add_quad()
369 segments->push_back(); in add_quad()
370 segments->back().fType = PathSegment::kQuad; in add_quad()
[all …]
/third_party/flutter/skia/src/gpu/
DGrDistanceFieldGenFromVector.cpp363 PathSegmentArray* segments) { in add_line_to_segment() argument
364 segments->push_back(); in add_line_to_segment()
365 segments->back().fType = PathSegment::kLine; in add_line_to_segment()
366 segments->back().fPts[0] = pts[0]; in add_line_to_segment()
367 segments->back().fPts[1] = pts[1]; in add_line_to_segment()
369 segments->back().init(); in add_line_to_segment()
373 PathSegmentArray* segments) { in add_quad_segment() argument
381 add_line_to_segment(line_pts, segments); in add_quad_segment()
384 segments->push_back(); in add_quad_segment()
385 segments->back().fType = PathSegment::kQuad; in add_quad_segment()
[all …]

12345678910>>...19