/third_party/gstreamer/gstreamer/tests/check/gst/ |
D | gstsegment.c | 28 #define check_times(segment, position, stream_time, running_time) G_STMT_START { \ argument 31 st = gst_segment_to_stream_time ((segment), (segment)->format, (position)); \ 32 rt = gst_segment_to_running_time ((segment), (segment)->format, (position)); \ 39 pos = gst_segment_position_from_stream_time ((segment), (segment)->format, st); \ 44 pos = gst_segment_position_from_running_time ((segment), (segment)->format, rt); \ 52 GstSegment segment; in GST_START_TEST() local 57 gst_segment_init (&segment, GST_FORMAT_BYTES); in GST_START_TEST() 60 gst_segment_do_seek (&segment, 1.0, in GST_START_TEST() 64 fail_unless_equals_uint64 (segment.start, 100); in GST_START_TEST() 65 fail_unless_equals_uint64 (segment.position, 100); in GST_START_TEST() [all …]
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/impl/ |
D | StringSegmentTest.java | 23 StringSegment segment = new StringSegment(SAMPLE_STRING, false); in testOffset() local 24 assertEquals(0, segment.getOffset()); in testOffset() 25 segment.adjustOffsetByCodePoint(); in testOffset() 26 assertEquals(2, segment.getOffset()); in testOffset() 27 segment.adjustOffset(1); in testOffset() 28 assertEquals(3, segment.getOffset()); in testOffset() 29 segment.adjustOffset(2); in testOffset() 30 assertEquals(5, segment.getOffset()); in testOffset() 31 segment.setOffset(4); in testOffset() 32 assertEquals(4, segment.getOffset()); in testOffset() [all …]
|
/third_party/gstreamer/gstreamer/gst/ |
D | gstsegment.c | 101 gst_segment_copy (const GstSegment * segment) in gst_segment_copy() argument 105 if (segment) { in gst_segment_copy() 106 result = (GstSegment *) g_slice_copy (sizeof (GstSegment), segment); in gst_segment_copy() 155 gst_segment_free (GstSegment * segment) in gst_segment_free() argument 157 g_slice_free (GstSegment, segment); in gst_segment_free() 172 gst_segment_init (GstSegment * segment, GstFormat format) in gst_segment_init() argument 174 g_return_if_fail (segment != NULL); in gst_segment_init() 176 segment->flags = GST_SEGMENT_FLAG_NONE; in gst_segment_init() 177 segment->rate = 1.0; in gst_segment_init() 178 segment->applied_rate = 1.0; in gst_segment_init() [all …]
|
/third_party/icu/icu4c/source/test/intltest/ |
D | string_segment_test.cpp | 40 StringSegment segment(sampleString, false); in testOffset() local 41 assertEquals("Initial Offset", 0, segment.getOffset()); in testOffset() 42 segment.adjustOffset(3); in testOffset() 43 assertEquals("Adjust A", 3, segment.getOffset()); in testOffset() 44 segment.adjustOffset(2); in testOffset() 45 assertEquals("Adjust B", 5, segment.getOffset()); in testOffset() 46 segment.setOffset(4); in testOffset() 47 assertEquals("Set Offset", 4, segment.getOffset()); in testOffset() 53 StringSegment segment(sampleString, false); in testLength() local 54 assertEquals("Initial length", 11, segment.length()); in testLength() [all …]
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
D | numparse_scientific.cpp | 55 bool ScientificMatcher::match(StringSegment& segment, ParsedNumber& result, UErrorCode& status) con… in match() argument 68 int32_t initialOffset = segment.getOffset(); in match() 69 int32_t overlap = segment.getCommonPrefixLength(fExponentSeparatorString); in match() 74 if (segment.length() == overlap) { in match() 77 segment.adjustOffset(overlap); in match() 82 fIgnorablesMatcher.match(segment, result, status); in match() 83 if (segment.length() == 0) { in match() 84 segment.setOffset(initialOffset); in match() 90 if (segment.startsWith(minusSignSet())) { in match() 92 segment.adjustOffsetByCodePoint(); in match() [all …]
|
D | numparse_currency.cpp | 58 CombinedCurrencyMatcher::match(StringSegment& segment, ParsedNumber& result, UErrorCode& status) co… in match() argument 64 int32_t initialOffset = segment.getOffset(); in match() 67 int32_t overlap = segment.getCommonPrefixLength(beforeSuffixInsert); in match() 69 segment.adjustOffset(overlap); in match() 72 maybeMore = maybeMore || overlap == segment.length(); in match() 76 maybeMore = maybeMore || matchCurrency(segment, result, status); in match() 78 segment.setOffset(initialOffset); in match() 84 int32_t overlap = segment.getCommonPrefixLength(afterPrefixInsert); in match() 86 segment.adjustOffset(overlap); in match() 89 maybeMore = maybeMore || overlap == segment.length(); in match() [all …]
|
/third_party/icu/icu4c/source/i18n/ |
D | numparse_scientific.cpp | 55 bool ScientificMatcher::match(StringSegment& segment, ParsedNumber& result, UErrorCode& status) con… in match() argument 68 int32_t initialOffset = segment.getOffset(); in match() 69 int32_t overlap = segment.getCommonPrefixLength(fExponentSeparatorString); in match() 74 if (segment.length() == overlap) { in match() 77 segment.adjustOffset(overlap); in match() 82 fIgnorablesMatcher.match(segment, result, status); in match() 83 if (segment.length() == 0) { in match() 84 segment.setOffset(initialOffset); in match() 90 if (segment.startsWith(minusSignSet())) { in match() 92 segment.adjustOffsetByCodePoint(); in match() [all …]
|
D | numparse_currency.cpp | 58 CombinedCurrencyMatcher::match(StringSegment& segment, ParsedNumber& result, UErrorCode& status) co… in match() argument 64 int32_t initialOffset = segment.getOffset(); in match() 67 int32_t overlap = segment.getCommonPrefixLength(beforeSuffixInsert); in match() 69 segment.adjustOffset(overlap); in match() 72 maybeMore = maybeMore || overlap == segment.length(); in match() 76 maybeMore = maybeMore || matchCurrency(segment, result, status); in match() 78 segment.setOffset(initialOffset); in match() 84 int32_t overlap = segment.getCommonPrefixLength(afterPrefixInsert); in match() 86 segment.adjustOffset(overlap); in match() 89 maybeMore = maybeMore || overlap == segment.length(); in match() [all …]
|
D | numparse_symbols.cpp | 35 bool SymbolMatcher::match(StringSegment& segment, ParsedNumber& result, UErrorCode&) const { in match() argument 44 overlap = segment.getCommonPrefixLength(fString); in match() 46 segment.adjustOffset(fString.length()); in match() 47 accept(segment, result); in match() 52 int cp = segment.getCodePoint(); in match() 54 segment.adjustOffset(U16_LENGTH(cp)); in match() 55 accept(segment, result); in match() 59 return overlap == segment.length(); in match() 62 bool SymbolMatcher::smokeTest(const StringSegment& segment) const { in smokeTest() 63 return segment.startsWith(*fUniSet) || segment.startsWith(fString); in smokeTest() [all …]
|
/third_party/node/deps/icu-small/source/i18n/ |
D | numparse_scientific.cpp | 55 bool ScientificMatcher::match(StringSegment& segment, ParsedNumber& result, UErrorCode& status) con… in match() argument 68 int32_t initialOffset = segment.getOffset(); in match() 69 int32_t overlap = segment.getCommonPrefixLength(fExponentSeparatorString); in match() 74 if (segment.length() == overlap) { in match() 77 segment.adjustOffset(overlap); in match() 82 fIgnorablesMatcher.match(segment, result, status); in match() 83 if (segment.length() == 0) { in match() 84 segment.setOffset(initialOffset); in match() 90 if (segment.startsWith(minusSignSet())) { in match() 92 segment.adjustOffsetByCodePoint(); in match() [all …]
|
D | numparse_currency.cpp | 58 CombinedCurrencyMatcher::match(StringSegment& segment, ParsedNumber& result, UErrorCode& status) co… in match() argument 64 int32_t initialOffset = segment.getOffset(); in match() 67 int32_t overlap = segment.getCommonPrefixLength(beforeSuffixInsert); in match() 69 segment.adjustOffset(overlap); in match() 72 maybeMore = maybeMore || overlap == segment.length(); in match() 76 maybeMore = maybeMore || matchCurrency(segment, result, status); in match() 78 segment.setOffset(initialOffset); in match() 84 int32_t overlap = segment.getCommonPrefixLength(afterPrefixInsert); in match() 86 segment.adjustOffset(overlap); in match() 89 maybeMore = maybeMore || overlap == segment.length(); in match() [all …]
|
/third_party/skia/src/pathops/ |
D | SkOpContour.h | 63 SkOpSegment* segment = &fHead; in calcAngles() local 65 segment->calcAngles(); in calcAngles() 66 } while ((segment = segment->next())); in calcAngles() 118 SkOpSegment* segment = &fHead; in debugShowActiveSpans() local 120 segment->debugShowActiveSpans(str); in debugShowActiveSpans() 121 } while ((segment = segment->next())); in debugShowActiveSpans() 135 const SkOpSegment* segment = &fHead; in debugValidate() local 138 segment->debugValidate(); in debugValidate() 139 SkASSERT(segment->prev() == prior); in debugValidate() 140 prior = segment; in debugValidate() [all …]
|
D | SkOpSpan.cpp | 42 bool SkOpPtT::contains(const SkOpSegment* segment, const SkPoint& pt) const { in contains() argument 43 SkASSERT(this->segment() != segment); in contains() 47 if (ptT->fPt == pt && ptT->segment() == segment) { in contains() 54 bool SkOpPtT::contains(const SkOpSegment* segment, double t) const { in contains() argument 58 if (ptT->fT == t && ptT->segment() == segment) { in contains() 66 SkASSERT(this->segment() != check); in contains() 70 if (ptT->segment() == check && !ptT->deleted()) { in contains() 78 return segment()->contour(); in contour() 81 const SkOpPtT* SkOpPtT::find(const SkOpSegment* segment) const { in find() 85 if (ptT->segment() == segment && !ptT->deleted()) { in find() [all …]
|
/third_party/flutter/skia/src/pathops/ |
D | SkOpContour.h | 64 SkOpSegment* segment = &fHead; in calcAngles() local 66 segment->calcAngles(); in calcAngles() 67 } while ((segment = segment->next())); in calcAngles() 119 SkOpSegment* segment = &fHead; in debugShowActiveSpans() local 121 segment->debugShowActiveSpans(str); in debugShowActiveSpans() 122 } while ((segment = segment->next())); in debugShowActiveSpans() 136 const SkOpSegment* segment = &fHead; in debugValidate() local 139 segment->debugValidate(); in debugValidate() 140 SkASSERT(segment->prev() == prior); in debugValidate() 141 prior = segment; in debugValidate() [all …]
|
D | SkOpSpan.cpp | 42 bool SkOpPtT::contains(const SkOpSegment* segment, const SkPoint& pt) const { in contains() argument 43 SkASSERT(this->segment() != segment); in contains() 47 if (ptT->fPt == pt && ptT->segment() == segment) { in contains() 54 bool SkOpPtT::contains(const SkOpSegment* segment, double t) const { in contains() argument 58 if (ptT->fT == t && ptT->segment() == segment) { in contains() 66 SkASSERT(this->segment() != check); in contains() 70 if (ptT->segment() == check && !ptT->deleted()) { in contains() 78 return segment()->contour(); in contour() 81 const SkOpPtT* SkOpPtT::find(const SkOpSegment* segment) const { in find() 85 if (ptT->segment() == segment && !ptT->deleted()) { in find() [all …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/parse/ |
D | ScientificMatcher.java | 55 public boolean match(StringSegment segment, ParsedNumber result) { in match() argument 68 int initialOffset = segment.getOffset(); in match() 69 int overlap = segment.getCommonPrefixLength(exponentSeparatorString); in match() 74 if (segment.length() == overlap) { in match() 77 segment.adjustOffset(overlap); in match() 81 ignorablesMatcher.match(segment, null); in match() 82 if (segment.length() == 0) { in match() 83 segment.setOffset(initialOffset); in match() 89 if (segment.startsWith(minusSignSet())) { in match() 91 segment.adjustOffsetByCodePoint(); in match() [all …]
|
D | CombinedCurrencyMatcher.java | 94 public boolean match(StringSegment segment, ParsedNumber result) { in match() argument 100 int initialOffset = segment.getOffset(); in match() 103 int overlap = segment.getCommonPrefixLength(beforeSuffixInsert); in match() 105 segment.adjustOffset(overlap); in match() 108 maybeMore = maybeMore || overlap == segment.length(); in match() 112 maybeMore = maybeMore || matchCurrency(segment, result); in match() 114 segment.setOffset(initialOffset); in match() 120 int overlap = segment.getCommonPrefixLength(afterPrefixInsert); in match() 122 segment.adjustOffset(overlap); in match() 125 maybeMore = maybeMore || overlap == segment.length(); in match() [all …]
|
/third_party/boost/libs/geometry/test/strategies/ |
D | side_of_intersection.cpp | 23 typedef bg::model::segment<point> segment; in test_main() typedef 29 segment a(point(20, 10), point(10, 20)); in test_main() 31 segment b1(point(11, 16), point(20, 14)); // IP with a: (14.857, 15.143) in test_main() 32 segment b2(point(10, 16), point(20, 14)); // IP with a: (15, 15) in test_main() 34 segment c1(point(15, 16), point(13, 8)); in test_main() 35 segment c2(point(15, 16), point(14, 8)); in test_main() 36 segment c3(point(15, 16), point(15, 8)); in test_main() 51 segment col1(point(0, 5), point(5, 5)); in test_main() 52 segment col2(point(5, 5), point(10, 5)); // One IP with col1 at (5,5) in test_main() 53 segment col3(point(5, 0), point(5, 5)); in test_main() [all …]
|
/third_party/flutter/skia/third_party/externals/icu/source/i18n/ |
D | numparse_scientific.cpp | 53 bool ScientificMatcher::match(StringSegment& segment, ParsedNumber& result, UErrorCode& status) con… in match() argument 66 int overlap1 = segment.getCommonPrefixLength(fExponentSeparatorString); in match() 71 if (segment.length() == overlap1) { in match() 74 segment.adjustOffset(overlap1); in match() 78 if (segment.startsWith(minusSignSet())) { in match() 80 segment.adjustOffsetByCodePoint(); in match() 81 } else if (segment.startsWith(plusSignSet())) { in match() 82 segment.adjustOffsetByCodePoint(); in match() 83 } else if (segment.startsWith(fCustomMinusSign)) { in match() 85 int32_t overlap2 = segment.getCommonPrefixLength(fCustomMinusSign); in match() [all …]
|
D | numparse_currency.cpp | 57 CombinedCurrencyMatcher::match(StringSegment& segment, ParsedNumber& result, UErrorCode& status) co… in match() argument 63 int32_t initialOffset = segment.getOffset(); in match() 66 int32_t overlap = segment.getCommonPrefixLength(beforeSuffixInsert); in match() 68 segment.adjustOffset(overlap); in match() 71 maybeMore = maybeMore || overlap == segment.length(); in match() 75 maybeMore = maybeMore || matchCurrency(segment, result, status); in match() 77 segment.setOffset(initialOffset); in match() 83 int32_t overlap = segment.getCommonPrefixLength(afterPrefixInsert); in match() 85 segment.adjustOffset(overlap); in match() 88 maybeMore = maybeMore || overlap == segment.length(); in match() [all …]
|
/third_party/boost/boost/locale/boundary/ |
D | segment.hpp | 102 class segment : public std::pair<IteratorType,IteratorType> { class 132 segment() {} in segment() function in boost::locale::boundary::segment 136 segment(iterator b,iterator e,rule_type r) : in segment() function in boost::locale::boundary::segment 223 bool operator==(segment const &other) in operator ==() 229 bool operator!=(segment const &other) in operator !=() 242 bool operator==(segment<IteratorL> const &l,segment<IteratorR> const &r) in operator ==() 248 bool operator!=(segment<IteratorL> const &l,segment<IteratorR> const &r) in operator !=() 255 bool operator<(segment<IteratorL> const &l,segment<IteratorR> const &r) in operator <() 261 bool operator<=(segment<IteratorL> const &l,segment<IteratorR> const &r) in operator <=() 267 bool operator>(segment<IteratorL> const &l,segment<IteratorR> const &r) in operator >() [all …]
|
/third_party/boost/libs/geometry/test/algorithms/disjoint/ |
D | disjoint_seg_box.cpp | 57 test_disjoint<bg::model::box<P>, bg::model::segment<P> >("BOX(1 1,3 3)", in disjoint_tests_1() 60 test_disjoint<bg::model::box<P>, bg::model::segment<P> >("BOX(1 1,3 3)", in disjoint_tests_1() 63 test_disjoint<bg::model::box<P>, bg::model::segment<P> >("BOX(1 1,3 3)", in disjoint_tests_1() 66 test_disjoint<bg::model::box<P>, bg::model::segment<P> >("BOX(1 1,3 3)", in disjoint_tests_1() 69 test_disjoint<bg::model::box<P>, bg::model::segment<P> >("BOX(1 1,3 3)", in disjoint_tests_1() 72 test_disjoint<bg::model::box<P>, bg::model::segment<P> >("BOX(1 1,3 3)", in disjoint_tests_1() 75 test_disjoint<bg::model::box<P>, bg::model::segment<P> >("BOX(1 1,3 3)", in disjoint_tests_1() 78 test_disjoint<bg::model::box<P>, bg::model::segment<P> >("BOX(1 1,3 3)", in disjoint_tests_1() 81 test_disjoint<bg::model::box<P>, bg::model::segment<P> >("BOX(1 1,3 3)", in disjoint_tests_1() 89 test_disjoint<bg::model::box<P>, bg::model::segment<P> >("BOX(1 1,3 3)", in disjoint_tests_2() [all …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/number/ |
D | NumberSkeletonImpl.java | 555 StringSegment segment = new StringSegment(skeletonString, false); in parseSkeleton() local 561 while (offset < segment.length()) { in parseSkeleton() 562 int cp = segment.codePointAt(offset); in parseSkeleton() 581 segment.setLength(offset); in parseSkeleton() 584 stem = parseStem(segment, stemTrie, macros); in parseSkeleton() 588 stem = parseOption(stem, segment, macros); in parseSkeleton() 590 segment.resetLength(); in parseSkeleton() 593 segment.adjustOffset(offset); in parseSkeleton() 598 segment.setLength(Character.charCount(cp)); // for error message in parseSkeleton() 599 throw new SkeletonSyntaxException("Unexpected separator character", segment); in parseSkeleton() [all …]
|
/third_party/boost/boost/polygon/ |
D | segment_concept.hpp | 117 get(const Segment& segment, direction_1d dir) { in get() argument 118 return segment_traits<Segment>::get(segment, dir); in get() 134 void>::type set(Segment& segment, direction_1d dir, const Point& point) { in set() argument 135 segment_mutable_traits<Segment>::set(segment, dir, point); in set() 171 Segment1>::type copy_construct(const Segment2& segment) { in copy_construct() argument 172 return construct<Segment1>(get(segment, LOW), get(segment, HIGH)); in copy_construct() 220 typename segment_point_type<Segment>::type>::type low(const Segment& segment) { in low() argument 221 return get(segment, LOW); in low() 234 typename segment_point_type<Segment>::type>::type high(const Segment& segment) { in high() argument 235 return get(segment, HIGH); in high() [all …]
|
/third_party/boost/libs/interprocess/example/ |
D | doc_named_alloc.cpp | 50 managed_shared_memory segment(create_only, test::get_process_id_name(), 65536); in main() local 53 managed_shared_memory segment(create_only, "MySharedMemory", 65536); in main() local 59 MyType *instance = segment.construct<MyType> in main() 64 MyType *array = segment.construct<MyType> in main() 74 MyType *array_it = segment.construct_it<MyType> in main() 95 if(segment.find<MyType>("MyType array").first || in main() 96 segment.find<MyType>("MyType instance").first || in main() 97 segment.find<MyType>("MyType array from it").first) in main() 104 managed_shared_memory segment(open_only, argv[2]); in main() local 107 managed_shared_memory segment(open_only, "MySharedMemory"); in main() [all …]
|