/third_party/skia/modules/svg/src/ |
D | CssStyleParser.cpp | 56 std::string::size_type pos1; in splitString() local 60 pos1 = 0; in splitString() 62 res.push_back(srcString.substr(pos1, pos2 - pos1)); in splitString() 64 pos1 = pos2 + splitString.size(); in splitString() 65 pos2 = srcString.find(splitString, pos1); in splitString() 67 if (pos1 != srcString.length()) { in splitString() 68 res.push_back(srcString.substr(pos1)); in splitString()
|
/third_party/flutter/skia/experimental/svg/model/ |
D | CssStyleParser.cpp | 55 std::string::size_type pos1; in splitString() local 59 pos1 = 0; in splitString() 61 res.push_back(srcString.substr(pos1, pos2 - pos1)); in splitString() 63 pos1 = pos2 + splitString.size(); in splitString() 64 pos2 = srcString.find(splitString, pos1); in splitString() 66 if (pos1 != srcString.length()) { in splitString() 67 res.push_back(srcString.substr(pos1)); in splitString()
|
/third_party/flutter/skia/src/xml/ |
D | CssStyleParser.cpp | 64 std::string::size_type pos1; in splitString() local 68 pos1 = 0; in splitString() 70 res.push_back(srcString.substr(pos1, pos2 - pos1)); in splitString() 72 pos1 = pos2 + splitString.size(); in splitString() 73 pos2 = srcString.find(splitString, pos1); in splitString() 75 if (pos1 != srcString.length()) { in splitString() 76 res.push_back(srcString.substr(pos1)); in splitString()
|
/third_party/skia/third_party/externals/icu/source/samples/uciter8/ |
D | uciter8.c | 55 int32_t i, pos1, pos2, middle, length; in compareIterators() local 69 pos1=iter1->move(iter1, middle, UITER_ZERO); in compareIterators() 70 if(pos1!=middle) { in compareIterators() 71 log_err("%s->move(from 0 to middle %d)=%d does not move to the middle\n", n1, middle, pos1); in compareIterators() 110 pos1=iter1->move(iter1, 0, UITER_START); in compareIterators() 111 if(pos1<0) { in compareIterators() 149 pos1=iter1->move(iter1, middle, UITER_ZERO); in compareIterators() 150 if(pos1!=middle) { in compareIterators() 151 … log_err("%s->move(from end to middle %d)=%d does not move to the middle\n", n1, middle, pos1); in compareIterators() 162 pos1=iter1->move(iter1, 1, UITER_ZERO); in compareIterators() [all …]
|
/third_party/icu/icu4c/source/samples/uciter8/ |
D | uciter8.c | 55 int32_t i, pos1, pos2, middle, length; in compareIterators() local 69 pos1=iter1->move(iter1, middle, UITER_ZERO); in compareIterators() 70 if(pos1!=middle) { in compareIterators() 71 log_err("%s->move(from 0 to middle %d)=%d does not move to the middle\n", n1, middle, pos1); in compareIterators() 110 pos1=iter1->move(iter1, 0, UITER_START); in compareIterators() 111 if(pos1<0) { in compareIterators() 149 pos1=iter1->move(iter1, middle, UITER_ZERO); in compareIterators() 150 if(pos1!=middle) { in compareIterators() 151 … log_err("%s->move(from end to middle %d)=%d does not move to the middle\n", n1, middle, pos1); in compareIterators() 162 pos1=iter1->move(iter1, 1, UITER_ZERO); in compareIterators() [all …]
|
/third_party/flutter/skia/third_party/externals/icu/source/samples/uciter8/ |
D | uciter8.c | 55 int32_t i, pos1, pos2, middle, length; in compareIterators() local 69 pos1=iter1->move(iter1, middle, UITER_ZERO); in compareIterators() 70 if(pos1!=middle) { in compareIterators() 71 log_err("%s->move(from 0 to middle %d)=%d does not move to the middle\n", n1, middle, pos1); in compareIterators() 110 pos1=iter1->move(iter1, 0, UITER_START); in compareIterators() 111 if(pos1<0) { in compareIterators() 149 pos1=iter1->move(iter1, middle, UITER_ZERO); in compareIterators() 150 if(pos1!=middle) { in compareIterators() 151 … log_err("%s->move(from end to middle %d)=%d does not move to the middle\n", n1, middle, pos1); in compareIterators() 162 pos1=iter1->move(iter1, 1, UITER_ZERO); in compareIterators() [all …]
|
/third_party/freetype/src/truetype/ |
D | ttpload.c | 187 FT_ULong pos1, pos2; in tt_face_get_location() local 192 pos1 = pos2 = 0; in tt_face_get_location() 201 pos1 = FT_NEXT_ULONG( p ); in tt_face_get_location() 202 pos2 = pos1; in tt_face_get_location() 212 pos1 = FT_NEXT_USHORT( p ); in tt_face_get_location() 213 pos2 = pos1; in tt_face_get_location() 218 pos1 <<= 1; in tt_face_get_location() 224 if ( pos1 > face->glyf_len ) in tt_face_get_location() 228 pos1, gindex )); in tt_face_get_location() 243 pos2 - pos1, gindex )); in tt_face_get_location() [all …]
|
/third_party/skia/third_party/externals/freetype/src/truetype/ |
D | ttpload.c | 187 FT_ULong pos1, pos2; in tt_face_get_location() local 192 pos1 = pos2 = 0; in tt_face_get_location() 201 pos1 = FT_NEXT_ULONG( p ); in tt_face_get_location() 202 pos2 = pos1; in tt_face_get_location() 212 pos1 = FT_NEXT_USHORT( p ); in tt_face_get_location() 213 pos2 = pos1; in tt_face_get_location() 218 pos1 <<= 1; in tt_face_get_location() 224 if ( pos1 > face->glyf_len ) in tt_face_get_location() 228 pos1, gindex )); in tt_face_get_location() 243 pos2 - pos1, gindex )); in tt_face_get_location() [all …]
|
/third_party/flutter/skia/third_party/externals/freetype/src/truetype/ |
D | ttpload.c | 201 FT_ULong pos1, pos2; in tt_face_get_location() local 206 pos1 = pos2 = 0; in tt_face_get_location() 215 pos1 = FT_NEXT_ULONG( p ); in tt_face_get_location() 216 pos2 = pos1; in tt_face_get_location() 226 pos1 = FT_NEXT_USHORT( p ); in tt_face_get_location() 227 pos2 = pos1; in tt_face_get_location() 232 pos1 <<= 1; in tt_face_get_location() 238 if ( pos1 > face->glyf_len ) in tt_face_get_location() 244 pos1, gindex, face->glyf_len )); in tt_face_get_location() 258 pos2 - pos1, gindex, face->glyf_len - pos1 )); in tt_face_get_location() [all …]
|
/third_party/mesa3d/src/gallium/auxiliary/draw/ |
D | draw_pipe_wide_line.c | 62 float *pos1 = v1->data[pos]; in wideline_line() local 84 pos1[1] = pos1[1] + half_width - bias; in wideline_line() 91 pos1[0] -= 0.5f; in wideline_line() 98 pos1[0] += 0.5f; in wideline_line() 107 pos1[0] = pos1[0] + half_width + bias; in wideline_line() 114 pos1[1] -= 0.5f; in wideline_line() 121 pos1[1] += 0.5f; in wideline_line()
|
/third_party/skia/tests/sksl/intrinsics/ |
D | Distance.glsl | 3 uniform vec4 pos1; 9 …stance(pos1.x, pos2.x) == expected.x && distance(pos1.xy, pos2.xy) == expected.y) && distance(pos1…
|
D | Distance.metal | 5 half4 pos1; 19 …pos1.x - _uniforms.pos2.x) == expected.x && distance(_uniforms.pos1.xy, _uniforms.pos2.xy) == expe…
|
/third_party/skia/resources/sksl/intrinsics/ |
D | Distance.sksl | 1 uniform half4 pos1, pos2; 9 return (distance(pos1.x, pos2.x) == expected.x && 10 distance(pos1.xy, pos2.xy) == expected.y && 11 distance(pos1.xyz, pos2.xyz) == expected.z && 12 distance(pos1.xyzw, pos2.xyzw) == expected.w &&
|
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/ |
D | string_view.h | 422 constexpr int compare(size_type pos1, size_type count1, string_view v) const { in compare() argument 423 return substr(pos1, count1).compare(v); in compare() 428 constexpr int compare(size_type pos1, size_type count1, string_view v, in compare() argument 430 return substr(pos1, count1).compare(v.substr(pos2, count2)); in compare() 439 constexpr int compare(size_type pos1, size_type count1, const char* s) const { in compare() argument 440 return substr(pos1, count1).compare(string_view(s)); in compare() 445 constexpr int compare(size_type pos1, size_type count1, const char* s, in compare() argument 447 return substr(pos1, count1).compare(string_view(s, count2)); in compare()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/ |
D | cord_rep_btree_navigator_test.cc | 202 Position pos1 = nav.Skip(length1 + char_offset); in TEST_P() local 203 ASSERT_THAT(pos1.edge, Eq(flats[index1])); in TEST_P() 204 ASSERT_THAT(pos1.edge, Eq(nav.Current())); in TEST_P() 205 ASSERT_THAT(pos1.offset, Eq(char_offset)); in TEST_P() 233 Position pos1 = nav.Seek(offset); in TEST_P() local 234 ASSERT_THAT(pos1.edge, Eq(flats[index])); in TEST_P() 235 ASSERT_THAT(pos1.edge, Eq(nav.Current())); in TEST_P() 236 ASSERT_THAT(pos1.offset, Eq(char_offset)); in TEST_P()
|
/third_party/cups-filters/filter/pdftopdf/ |
D | nup.cc | 248 auto pos1=parsePosition(val[2],val[3]); in parseNupLayout() local 249 if ( (pos1.second==CENTER)||(pos0.first==pos1.first) ) { in parseNupLayout() 256 ret.ystart=pos1.second; in parseNupLayout() 258 ret.xstart=pos1.second; in parseNupLayout()
|
/third_party/skia/third_party/externals/swiftshader/src/Shader/ |
D | VertexPipeline.cpp | 110 Vector4f pos1; in transformBlend() local 113 pos1 = transform(src, matrix, index1, homogeneous); in transformBlend() 115 dst.x = pos0.x * weight0 + pos1.x * weight1; // FIXME: Vector4f operators in transformBlend() 116 dst.y = pos0.y * weight0 + pos1.y * weight1; in transformBlend() 117 dst.z = pos0.z * weight0 + pos1.z * weight1; in transformBlend() 118 dst.w = pos0.w * weight0 + pos1.w * weight1; in transformBlend() 125 Vector4f pos1; in transformBlend() local 129 pos1 = transform(src, matrix, index1, homogeneous); in transformBlend() 132 dst.x = pos0.x * weight0 + pos1.x * weight1 + pos2.x * weight2; in transformBlend() 133 dst.y = pos0.y * weight0 + pos1.y * weight1 + pos2.y * weight2; in transformBlend() [all …]
|
/third_party/skia/modules/skplaintexteditor/src/ |
D | editor.cpp | 174 Editor::TextPosition Editor::remove(TextPosition pos1, TextPosition pos2) { in remove() argument 175 pos1 = this->move(Editor::Movement::kNowhere, pos1); in remove() 178 Editor::TextPosition start = std::min(pos1, pos2, cmp); in remove() 179 Editor::TextPosition end = std::max(pos1, pos2, cmp); in remove() 212 size_t Editor::copy(TextPosition pos1, TextPosition pos2, char* dst) const { in copy() argument 214 pos1 = this->move(Editor::Movement::kNowhere, pos1); in copy() 217 Editor::TextPosition start = std::min(pos1, pos2, cmp); in copy() 218 Editor::TextPosition end = std::max(pos1, pos2, cmp); in copy()
|
/third_party/flutter/skia/experimental/editor/ |
D | editor.cpp | 174 Editor::TextPosition Editor::remove(TextPosition pos1, TextPosition pos2) { in remove() argument 175 pos1 = this->move(Editor::Movement::kNowhere, pos1); in remove() 178 Editor::TextPosition start = std::min(pos1, pos2, cmp); in remove() 179 Editor::TextPosition end = std::max(pos1, pos2, cmp); in remove() 212 size_t Editor::copy(TextPosition pos1, TextPosition pos2, char* dst) const { in copy() argument 214 pos1 = this->move(Editor::Movement::kNowhere, pos1); in copy() 217 Editor::TextPosition start = std::min(pos1, pos2, cmp); in copy() 218 Editor::TextPosition end = std::max(pos1, pos2, cmp); in copy()
|
/third_party/flutter/skia/gm/ |
D | pictureimagegenerator.cpp | 92 const SkScalar pos1[] = { 0, 0.75f }; in draw_vector_logo() local 94 SkASSERT(SK_ARRAY_COUNT(pos1) == SK_ARRAY_COUNT(colors1)); in draw_vector_logo() 95 paint.setShader(SkGradientShader::MakeLinear(pts1, colors1, pos1, SK_ARRAY_COUNT(pos1), in draw_vector_logo()
|
/third_party/skia/gm/ |
D | pictureimagegenerator.cpp | 90 const SkScalar pos1[] = { 0, 0.75f }; in draw_vector_logo() local 92 SkASSERT(SK_ARRAY_COUNT(pos1) == SK_ARRAY_COUNT(colors1)); in draw_vector_logo() 93 paint.setShader(SkGradientShader::MakeLinear(pts1, colors1, pos1, SK_ARRAY_COUNT(pos1), in draw_vector_logo()
|
/third_party/ffmpeg/libavcodec/ |
D | acelp_vectors.c | 152 const int pos1 = gray_decode[fixed_index[2*i+1] & mask] + i; in ff_decode_10_pulses_35bits() local 155 fixed_sparse->x[2*i+1] = pos1; in ff_decode_10_pulses_35bits() 158 fixed_sparse->y[2*i ] = pos2 < pos1 ? -sign : sign; in ff_decode_10_pulses_35bits()
|
/third_party/mesa3d/src/util/ |
D | list.h | 283 #define list_pair_for_each_entry(type, pos1, pos2, head1, head2, member) \ argument 284 for (type *pos1 = list_entry((head1)->next, type, member), \ 286 &pos1->member != (head1) && &pos2->member != (head2); \ 287 pos1 = list_entry(pos1->member.next, type, member), \
|
/third_party/icu/icu4c/source/test/cintltst/ |
D | custrtst.c | 1254 int32_t i, pos1, pos2, middle, length; in compareIterators() local 1268 pos1=iter1->move(iter1, middle, UITER_ZERO); in compareIterators() 1269 if(pos1!=middle) { in compareIterators() 1270 log_err("%s->move(from 0 to middle %d)=%d does not move to the middle\n", n1, middle, pos1); in compareIterators() 1309 pos1=iter1->move(iter1, 0, UITER_START); in compareIterators() 1310 if(pos1<0) { in compareIterators() 1348 pos1=iter1->move(iter1, middle, UITER_ZERO); in compareIterators() 1349 if(pos1!=middle) { in compareIterators() 1350 … log_err("%s->move(from end to middle %d)=%d does not move to the middle\n", n1, middle, pos1); in compareIterators() 1361 pos1=iter1->move(iter1, 1, UITER_ZERO); in compareIterators() [all …]
|
/third_party/typescript/src/testRunner/unittests/tsserver/ |
D | textStorage.ts | 34 const pos1 = ts1.lineOffsetToPosition(line + 1, offset + 1); constant 36 …assert.strictEqual(pos1, pos2, `lineOffsetToPosition ${line + 1}-${offset + 1}: expected ${pos1} t…
|