Lines Matching refs:i
116 inline bool in_range(const T i, const T b, const T e) { in in_range() argument
117 return !(b > i) && i < e; in in_range()
311 for (int i = nChar - 2; i >= 0; i--) in fill_from() local
313 if (rCharDxs[i] == -1) rCharDxs[i] = rCharDxs[i+1]; in fill_from()
314 else rCharDxs[i] -= nXOffset; in fill_from()
323 for (int i = 1; i < nChar; i++) in fill_from() local
325 if (rCharDxs[i] == -1) rCharDxs[i] = rCharDxs[i-1]; in fill_from()
326 else rCharDxs[i] -= nXOffset; in fill_from()
335 for (size_t i = 0; i < size(); i++) in fill_from() local
336 (*this)[i].maLinearPos.X() -= nXOffset; in fill_from()
658 for (size_t i = 0; i < aFace.size() && i < 32; i++) in hashCode() local
660 uName[i] = aFace[i]; in hashCode()
805 for (int i = mnMinCharPos; i < limit; i++) in CreateSegment() local
807 fprintf(grLog(), "%04x ", rArgs.mpStr[i]); in CreateSegment()
920 for (size_t i = 1; i < mvCharDxs.size(); i++) in GetTextBreak() local
924 if (mvChar2BaseGlyph[i] != -1) in GetTextBreak()
926 if (mvChar2BaseGlyph[i] & (WORD_BREAK_BEFORE | HYPHEN_BREAK_BEFORE)) in GetTextBreak()
927 nLastBreak = static_cast<int>(i); in GetTextBreak()
929 nWidth += (mvCharDxs[i] - mvCharDxs[i-1]) * factor; in GetTextBreak()
953 for (size_t i = 0; i < mvCharDxs.size(); i++) in FillDXArray() local
955 assert( (mvChar2BaseGlyph[i] == -1) || in FillDXArray()
956 ((signed)(mvChar2BaseGlyph[i] & GLYPH_INDEX_MASK) < (signed)mvGlyphs.size())); in FillDXArray()
957 if (mvChar2BaseGlyph[i] != -1 && in FillDXArray()
958 mvGlyphs[mvChar2BaseGlyph[i] & GLYPH_INDEX_MASK].maGlyphId == GF_DROPPED) in FillDXArray()
962 pDXArray[i] = 0; in FillDXArray()
966 pDXArray[i] = mvCharDxs[i]; in FillDXArray()
967 if (i > 0) pDXArray[i] -= mvCharDxs[i-1]; in FillDXArray()
970 fprintf(grLog(),"%d,%d,%d ", (int)i, (int)mvCharDxs[i], pDXArray[i]); in FillDXArray()
998 for (int i = rArgs.mnMinCharPos; i < rArgs.mnEndCharPos; i++) in AdjustLayout() local
1001 UScriptCode scriptCode = uscript_getScript(rArgs.mpStr[i], &aStatus); in AdjustLayout()
1043 for (size_t i = 0; i < mvGlyphs.size(); i++) in expandOrCondense() local
1045 if (mvGlyphs[i].IsClusterStart()) in expandOrCondense()
1048 size_t nCharIndex = mvGlyph2Char[i]; in expandOrCondense()
1054 if (nChar2Base == -1 || nChar2Base == static_cast<int>(i)) in expandOrCondense()
1059 mvGlyphs[i].maLinearPos.X() += nOffset; in expandOrCondense()
1079 for (size_t i = 0; i < mvCharDxs.size(); i++) in expandOrCondense() local
1081 mvCharDxs[i] = FRound( fXFactor * mvCharDxs[i] ); in expandOrCondense()
1105 for (size_t i = 0; i < nChars; i++) in ApplyDXArray() local
1107 … int nChar2Base = (mvChar2BaseGlyph[i] == -1)? -1 : (int)(mvChar2BaseGlyph[i] & GLYPH_INDEX_MASK); in ApplyDXArray()
1116 size_t j = i + 1; in ApplyDXArray()
1117 int nLastChar = i; in ApplyDXArray()
1164 fprintf(grLog(), "c%lu last glyph %d/%lu\n", i, nLastGlyph, mvGlyphs.size()); in ApplyDXArray()
1191 …fprintf(grLog(),"c%d g%d-%d dW%ld-%ld=%ld dX%ld x%ld\t", (int)i, nChar2Base, nLastGlyph, nNewClust… in ApplyDXArray()
1195 i = nLastChar; in ApplyDXArray()
1214 Glyphs::iterator i = mvGlyphs.begin(); in kashidaJustify() local
1218 while (i != mvGlyphs.end()) in kashidaJustify()
1223 if( !(*i).IsRTLGlyph() ) in kashidaJustify()
1225 ++i; in kashidaJustify()
1229 if( IsSpacingGlyph( (*i).maGlyphId ) ) in kashidaJustify()
1231 ++i; in kashidaJustify()
1239 ++i; in kashidaJustify()
1244 printf("inserting %d kashidas at %u\n", nKashidaCount, (*i).maGlyphId); in kashidaJustify()
1246 GlyphItem glyphItem = *i; in kashidaJustify()
1248 aPos.X() = (*i).maLinearPos.X(); in kashidaJustify()
1252 i = mvGlyphs.begin() + nGlyphIndex; in kashidaJustify()
1253 mvGlyphs.insert(i, nKashidaCount, newGi); in kashidaJustify()
1254 i = mvGlyphs.begin() + nGlyphIndex; in kashidaJustify()
1259 (*(i)).maLinearPos.X() -= nGapWidth; in kashidaJustify()
1261 i++; in kashidaJustify()
1269 (*(i-1)).mnNewWidth += nGapWidth; // adjust kashida width to gap width in kashidaJustify()
1270 (*(i-1)).maLinearPos.X() += nGapWidth; in kashidaJustify()
1273 (*i).mnNewWidth = (*i).mnOrigWidth; in kashidaJustify()
1274 ++i; in kashidaJustify()
1292 …for (int i = 0, nCharSlot = 0; i < nArraySize && nCharSlot < static_cast<int>(mvCharDxs.size()); +… in GetCaretPositions() local
1320 pCaretXArray[i+1] = nMin; in GetCaretPositions()
1321 pCaretXArray[i] = nMax; in GetCaretPositions()
1325 pCaretXArray[i] = nMin; in GetCaretPositions()
1326 pCaretXArray[i+1] = nMax; in GetCaretPositions()
1355 pCaretXArray[i+1] = gi.maLinearPos.X(); in GetCaretPositions()
1356 pCaretXArray[i] = gi.maLinearPos.X(); in GetCaretPositions()
1360 pCaretXArray[i] = gi.maLinearPos.X() + prevClusterWidth; in GetCaretPositions()
1361 pCaretXArray[i+1] = gi.maLinearPos.X() + prevClusterWidth; in GetCaretPositions()
1368 pCaretXArray[i+1] = gi.maLinearPos.X(); in GetCaretPositions()
1369 pCaretXArray[i] = gi.maLinearPos.X() + gi.mnNewWidth; in GetCaretPositions()
1373 pCaretXArray[i] = gi.maLinearPos.X(); in GetCaretPositions()
1374 pCaretXArray[i+1] = gi.maLinearPos.X() + gi.mnNewWidth; in GetCaretPositions()
1380 pCaretXArray[i] = pCaretXArray[i+1] = 0; in GetCaretPositions()
1383 fprintf(grLog(),"%d,%d-%d\t", nCharSlot, pCaretXArray[i], pCaretXArray[i+1]); in GetCaretPositions()