Home
last modified time | relevance | path

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

1234

/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/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/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/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()
Ddraw_pipe_stipple.c128 const float *pos1 = v1->data[pos]; in stipple_line() local
133 float x1 = pos1[0]; in stipple_line()
135 float y1 = pos1[1]; in stipple_line()
Ddraw_pipe_wide_point.c142 float *pos1 = v1->data[pos]; in widepoint_point() local
163 pos1[0] += left_adj; in widepoint_point()
164 pos1[1] += bot_adj; in widepoint_point()
/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/node/deps/v8/src/debug/
Dliveedit.cc51 virtual void AddChunk(int pos1, int pos2, int len1, int len2) = 0;
84 for (int pos1 = len1_, pos2 = len2_; pos1 > prefixLen_ && in FillTable() local
86 input_->Equals(--pos1, --pos2);) { in FillTable()
87 set_value4_and_dir(pos1, pos2, 0, EQ); in FillTable()
97 for (int pos1 = prefixLen_, pos2 = prefixLen_; true;) { in SaveResult() local
98 if (pos1 < len1_) { in SaveResult()
100 Direction dir = get_direction(pos1, pos2); in SaveResult()
104 pos1++; in SaveResult()
109 pos1++; in SaveResult()
120 writer.skip1(len1_ - pos1); in SaveResult()
[all …]
/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/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/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/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.c1255 int32_t i, pos1, pos2, middle, length; in compareIterators() local
1269 pos1=iter1->move(iter1, middle, UITER_ZERO); in compareIterators()
1270 if(pos1!=middle) { in compareIterators()
1271 log_err("%s->move(from 0 to middle %d)=%d does not move to the middle\n", n1, middle, pos1); in compareIterators()
1310 pos1=iter1->move(iter1, 0, UITER_START); in compareIterators()
1311 if(pos1<0) { in compareIterators()
1349 pos1=iter1->move(iter1, middle, UITER_ZERO); in compareIterators()
1350 if(pos1!=middle) { in compareIterators()
1351 … log_err("%s->move(from end to middle %d)=%d does not move to the middle\n", n1, middle, pos1); in compareIterators()
1362 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…
/third_party/alsa-lib/src/pcm/
Dpcm_ladspa.c321 struct list_head *list, *pos, *pos1, *next1; in snd_pcm_ladspa_free_instances() local
327 list_for_each_safe(pos1, next1, &plugin->instances) { in snd_pcm_ladspa_free_instances()
328 snd_pcm_ladspa_instance_t *instance = list_entry(pos1, snd_pcm_ladspa_instance_t, list); in snd_pcm_ladspa_free_instances()
688 struct list_head *list, *pos, *pos1; in snd_pcm_ladspa_allocate_memory() local
711 list_for_each(pos1, &plugin->instances) { in snd_pcm_ladspa_allocate_memory()
712 instance = list_entry(pos1, snd_pcm_ladspa_instance_t, list); in snd_pcm_ladspa_allocate_memory()
785 list_for_each(pos1, &plugin->instances) { in snd_pcm_ladspa_allocate_memory()
786 instance = list_entry(pos1, snd_pcm_ladspa_instance_t, list); in snd_pcm_ladspa_allocate_memory()
810 list_for_each(pos1, &plugin->instances) { in snd_pcm_ladspa_allocate_memory()
811 instance = list_entry(pos1, snd_pcm_ladspa_instance_t, list); in snd_pcm_ladspa_allocate_memory()
[all …]
/third_party/skia/third_party/externals/libwebp/src/enc/
Dsyntax_enc.c269 uint64_t pos1, pos2, pos3; in GeneratePartition0() local
271 pos1 = VP8BitWriterPos(bw); in GeneratePartition0()
294 enc->pic_->stats->header_bytes[0] = (int)((pos2 - pos1 + 7) >> 3); in GeneratePartition0()
299 (void)pos1; in GeneratePartition0()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DIntlTestSimpleDateFormatAPI.java84 FieldPosition pos1 = new FieldPosition(0); in TestAPI() local
87 res1 = def.format(d, res1, pos1); in TestAPI()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
DIntlTestSimpleDateFormatAPI.java87 FieldPosition pos1 = new FieldPosition(0); in TestAPI() local
90 res1 = def.format(d, res1, pos1); in TestAPI()

1234