Home
last modified time | relevance | path

Searched refs:pos1 (Results 1 – 25 of 109) sorted by relevance

12345

/third_party/skia/modules/svg/src/
DCssStyleParser.cpp56 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/
DCssStyleParser.cpp55 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/
DCssStyleParser.cpp64 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/
Duciter8.c55 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/
Duciter8.c55 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/
Duciter8.c55 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/
Dttpload.c187 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/
Dttpload.c187 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/
Dttpload.c201 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/
Ddraw_pipe_wide_line.c62 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/
DDistance.glsl3 uniform vec4 pos1;
9 …stance(pos1.x, pos2.x) == expected.x && distance(pos1.xy, pos2.xy) == expected.y) && distance(pos1
DDistance.metal5 half4 pos1;
19pos1.x - _uniforms.pos2.x) == expected.x && distance(_uniforms.pos1.xy, _uniforms.pos2.xy) == expe…
/third_party/skia/resources/sksl/intrinsics/
DDistance.sksl1 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/
Dstring_view.h422 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/
Dcord_rep_btree_navigator_test.cc202 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/
Dnup.cc248 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/
DVertexPipeline.cpp110 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/
Deditor.cpp174 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/
Deditor.cpp174 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/
Dpictureimagegenerator.cpp92 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/
Dpictureimagegenerator.cpp90 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/
Dacelp_vectors.c152 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/
Dlist.h283 #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/
Dcustrtst.c1254 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/
DtextStorage.ts34 const pos1 = ts1.lineOffsetToPosition(line + 1, offset + 1); constant
36 …assert.strictEqual(pos1, pos2, `lineOffsetToPosition ${line + 1}-${offset + 1}: expected ${pos1} t…

12345