Lines Matching refs:glyphStorage
66 ByteOffset IndicRearrangementProcessor::processStateEntry(LEGlyphStorage &glyphStorage, le_int32 &currGlyph, EntryTableIndex index, LEErrorCode &success)
73 if (currGlyph < 0 || currGlyph >= glyphStorage.getGlyphCount()) {
86 doRearrangementAction(glyphStorage, (IndicRearrangementVerb) (flags & irfVerbMask), success);
100 void IndicRearrangementProcessor::doRearrangementAction(LEGlyphStorage &glyphStorage, IndicRearrangementVerb verb, LEErrorCode &success) const
123 a = glyphStorage[firstGlyph];
124 ia = glyphStorage.getCharIndex(firstGlyph, success);
128 glyphStorage[x - 1] = glyphStorage[x];
129 ix = glyphStorage.getCharIndex(x, success);
130 glyphStorage.setCharIndex(x - 1, ix, success);
134 glyphStorage[lastGlyph] = a;
135 glyphStorage.setCharIndex(lastGlyph, ia, success);
144 d = glyphStorage[lastGlyph];
145 id = glyphStorage.getCharIndex(lastGlyph, success);
149 glyphStorage[x + 1] = glyphStorage[x];
150 ix = glyphStorage.getCharIndex(x, success);
151 glyphStorage.setCharIndex(x + 1, ix, success);
155 glyphStorage[firstGlyph] = d;
156 glyphStorage.setCharIndex(firstGlyph, id, success);
160 a = glyphStorage[firstGlyph];
161 ia = glyphStorage.getCharIndex(firstGlyph, success);
162 id = glyphStorage.getCharIndex(lastGlyph, success);
164 glyphStorage[firstGlyph] = glyphStorage[lastGlyph];
165 glyphStorage[lastGlyph] = a;
167 glyphStorage.setCharIndex(firstGlyph, id, success);
168 glyphStorage.setCharIndex(lastGlyph, ia, success);
177 a = glyphStorage[firstGlyph];
178 b = glyphStorage[firstGlyph + 1];
179 ia = glyphStorage.getCharIndex(firstGlyph, success);
180 ib = glyphStorage.getCharIndex(firstGlyph + 1, success);
184 glyphStorage[x - 2] = glyphStorage[x];
185 ix = glyphStorage.getCharIndex(x, success);
186 glyphStorage.setCharIndex(x - 2, ix, success);
190 glyphStorage[lastGlyph - 1] = a;
191 glyphStorage[lastGlyph] = b;
193 glyphStorage.setCharIndex(lastGlyph - 1, ia, success);
194 glyphStorage.setCharIndex(lastGlyph, ib, success);
203 a = glyphStorage[firstGlyph];
204 b = glyphStorage[firstGlyph + 1];
205 ia = glyphStorage.getCharIndex(firstGlyph, success);
206 ib = glyphStorage.getCharIndex(firstGlyph + 1, success);
210 glyphStorage[x - 2] = glyphStorage[x];
211 ix = glyphStorage.getCharIndex(x, success);
212 glyphStorage.setCharIndex(x - 2, ix, success);
216 glyphStorage[lastGlyph - 1] = b;
217 glyphStorage[lastGlyph] = a;
219 glyphStorage.setCharIndex(lastGlyph - 1, ib, success);
220 glyphStorage.setCharIndex(lastGlyph, ia, success);
229 c = glyphStorage[lastGlyph - 1];
230 d = glyphStorage[lastGlyph];
231 ic = glyphStorage.getCharIndex(lastGlyph - 1, success);
232 id = glyphStorage.getCharIndex(lastGlyph, success);
236 glyphStorage[x + 2] = glyphStorage[x];
237 ix = glyphStorage.getCharIndex(x, success);
238 glyphStorage.setCharIndex(x + 2, ix, success);
242 glyphStorage[firstGlyph] = c;
243 glyphStorage[firstGlyph + 1] = d;
245 glyphStorage.setCharIndex(firstGlyph, ic, success);
246 glyphStorage.setCharIndex(firstGlyph + 1, id, success);
255 c = glyphStorage[lastGlyph - 1];
256 d = glyphStorage[lastGlyph];
257 ic = glyphStorage.getCharIndex(lastGlyph - 1, success);
258 id = glyphStorage.getCharIndex(lastGlyph, success);
262 glyphStorage[x + 2] = glyphStorage[x];
263 ix = glyphStorage.getCharIndex(x, success);
264 glyphStorage.setCharIndex(x + 2, ix, success);
268 glyphStorage[firstGlyph] = d;
269 glyphStorage[firstGlyph + 1] = c;
271 glyphStorage.setCharIndex(firstGlyph, id, success);
272 glyphStorage.setCharIndex(firstGlyph + 1, ic, success);
281 a = glyphStorage[firstGlyph];
282 c = glyphStorage[lastGlyph - 1];
283 d = glyphStorage[lastGlyph];
284 ia = glyphStorage.getCharIndex(firstGlyph, success);
285 ic = glyphStorage.getCharIndex(lastGlyph - 1, success);
286 id = glyphStorage.getCharIndex(lastGlyph, success);
290 glyphStorage[x + 1] = glyphStorage[x];
291 ix = glyphStorage.getCharIndex(x, success);
292 glyphStorage.setCharIndex(x + 1, ix, success);
296 glyphStorage[firstGlyph] = c;
297 glyphStorage[firstGlyph + 1] = d;
298 glyphStorage[lastGlyph] = a;
300 glyphStorage.setCharIndex(firstGlyph, ic, success);
301 glyphStorage.setCharIndex(firstGlyph + 1, id, success);
302 glyphStorage.setCharIndex(lastGlyph, ia, success);
311 a = glyphStorage[firstGlyph];
312 c = glyphStorage[lastGlyph - 1];
313 d = glyphStorage[lastGlyph];
314 ia = glyphStorage.getCharIndex(firstGlyph, success);
315 ic = glyphStorage.getCharIndex(lastGlyph - 1, success);
316 id = glyphStorage.getCharIndex(lastGlyph, success);
320 glyphStorage[x + 1] = glyphStorage[x];
321 ix = glyphStorage.getCharIndex(x, success);
322 glyphStorage.setCharIndex(x + 1, ix, success);
326 glyphStorage[firstGlyph] = d;
327 glyphStorage[firstGlyph + 1] = c;
328 glyphStorage[lastGlyph] = a;
330 glyphStorage.setCharIndex(firstGlyph, id, success);
331 glyphStorage.setCharIndex(firstGlyph + 1, ic, success);
332 glyphStorage.setCharIndex(lastGlyph, ia, success);
341 a = glyphStorage[firstGlyph];
342 b = glyphStorage[firstGlyph + 1];
343 d = glyphStorage[lastGlyph];
344 ia = glyphStorage.getCharIndex(firstGlyph, success);
345 ib = glyphStorage.getCharIndex(firstGlyph + 1, success);
346 id = glyphStorage.getCharIndex(lastGlyph, success);
350 glyphStorage[x - 2] = glyphStorage[x];
351 ix = glyphStorage.getCharIndex(x, success);
352 glyphStorage.setCharIndex(x - 2, ix, success);
356 glyphStorage[firstGlyph] = d;
357 glyphStorage[lastGlyph - 1] = a;
358 glyphStorage[lastGlyph] = b;
360 glyphStorage.setCharIndex(firstGlyph, id, success);
361 glyphStorage.setCharIndex(lastGlyph - 1, ia, success);
362 glyphStorage.setCharIndex(lastGlyph, ib, success);
371 a = glyphStorage[firstGlyph];
372 b = glyphStorage[firstGlyph + 1];
373 d = glyphStorage[lastGlyph];
374 ia = glyphStorage.getCharIndex(firstGlyph, success);
375 ib = glyphStorage.getCharIndex(firstGlyph + 1, success);
376 id = glyphStorage.getCharIndex(lastGlyph, success);
380 glyphStorage[x - 2] = glyphStorage[x];
381 ix = glyphStorage.getCharIndex(x, success);
382 glyphStorage.setCharIndex(x - 2, ix, success);
386 glyphStorage[firstGlyph] = d;
387 glyphStorage[lastGlyph - 1] = b;
388 glyphStorage[lastGlyph] = a;
390 glyphStorage.setCharIndex(firstGlyph, id, success);
391 glyphStorage.setCharIndex(lastGlyph - 1, ib, success);
392 glyphStorage.setCharIndex(lastGlyph, ia, success);
400 a = glyphStorage[firstGlyph];
401 b = glyphStorage[firstGlyph + 1];
403 glyphStorage[firstGlyph] = glyphStorage[lastGlyph - 1];
404 glyphStorage[firstGlyph + 1] = glyphStorage[lastGlyph];
406 glyphStorage[lastGlyph - 1] = a;
407 glyphStorage[lastGlyph] = b;
409 ia = glyphStorage.getCharIndex(firstGlyph, success);
410 ib = glyphStorage.getCharIndex(firstGlyph + 1, success);
411 ic = glyphStorage.getCharIndex(lastGlyph - 1, success);
412 id = glyphStorage.getCharIndex(lastGlyph, success);
414 glyphStorage.setCharIndex(firstGlyph, ic, success);
415 glyphStorage.setCharIndex(firstGlyph + 1, id, success);
417 glyphStorage.setCharIndex(lastGlyph - 1, ia, success);
418 glyphStorage.setCharIndex(lastGlyph, ib, success);
426 a = glyphStorage[firstGlyph];
427 b = glyphStorage[firstGlyph + 1];
429 glyphStorage[firstGlyph] = glyphStorage[lastGlyph - 1];
430 glyphStorage[firstGlyph + 1] = glyphStorage[lastGlyph];
432 glyphStorage[lastGlyph - 1] = b;
433 glyphStorage[lastGlyph] = a;
435 ia = glyphStorage.getCharIndex(firstGlyph, success);
436 ib = glyphStorage.getCharIndex(firstGlyph + 1, success);
437 ic = glyphStorage.getCharIndex(lastGlyph - 1, success);
438 id = glyphStorage.getCharIndex(lastGlyph, success);
440 glyphStorage.setCharIndex(firstGlyph, ic, success);
441 glyphStorage.setCharIndex(firstGlyph + 1, id, success);
443 glyphStorage.setCharIndex(lastGlyph - 1, ib, success);
444 glyphStorage.setCharIndex(lastGlyph, ia, success);
452 a = glyphStorage[firstGlyph];
453 b = glyphStorage[firstGlyph + 1];
455 glyphStorage[firstGlyph] = glyphStorage[lastGlyph];
456 glyphStorage[firstGlyph + 1] = glyphStorage[lastGlyph - 1];
458 glyphStorage[lastGlyph - 1] = a;
459 glyphStorage[lastGlyph] = b;
461 ia = glyphStorage.getCharIndex(firstGlyph, success);
462 ib = glyphStorage.getCharIndex(firstGlyph + 1, success);
463 ic = glyphStorage.getCharIndex(lastGlyph - 1, success);
464 id = glyphStorage.getCharIndex(lastGlyph, success);
466 glyphStorage.setCharIndex(firstGlyph, id, success);
467 glyphStorage.setCharIndex(firstGlyph + 1, ic, success);
469 glyphStorage.setCharIndex(lastGlyph - 1, ia, success);
470 glyphStorage.setCharIndex(lastGlyph, ib, success);
478 a = glyphStorage[firstGlyph];
479 b = glyphStorage[firstGlyph + 1];
481 glyphStorage[firstGlyph] = glyphStorage[lastGlyph];
482 glyphStorage[firstGlyph + 1] = glyphStorage[lastGlyph - 1];
484 glyphStorage[lastGlyph - 1] = b;
485 glyphStorage[lastGlyph] = a;
487 ia = glyphStorage.getCharIndex(firstGlyph, success);
488 ib = glyphStorage.getCharIndex(firstGlyph + 1, success);
489 ic = glyphStorage.getCharIndex(lastGlyph - 1, success);
490 id = glyphStorage.getCharIndex(lastGlyph, success);
492 glyphStorage.setCharIndex(firstGlyph, id, success);
493 glyphStorage.setCharIndex(firstGlyph + 1, ic, success);
495 glyphStorage.setCharIndex(lastGlyph - 1, ib, success);
496 glyphStorage.setCharIndex(lastGlyph, ia, success);