Lines Matching refs:buffer
54 HB_Buffer buffer,
1013 HB_Buffer buffer,
1039 sp->ValueFormat, POSITION( buffer->in_pos ) );
1048 sp->ValueFormat, POSITION( buffer->in_pos ) );
1057 (buffer->in_pos)++;
1495 HB_Buffer buffer,
1527 POSITION( buffer->in_pos ) );
1537 HB_Buffer buffer,
1566 return Get_ValueRecord( gpi, &c2r->Value2, format2, POSITION( buffer->in_pos ) );
1572 HB_Buffer buffer,
1585 if ( buffer->in_pos >= buffer->in_length - 1 )
1600 first_pos = buffer->in_pos;
1601 (buffer->in_pos)++;
1609 if ( buffer->in_pos == buffer->in_length )
1611 buffer->in_pos = first_pos;
1614 (buffer->in_pos)++;
1621 error = Lookup_PairPos1( gpi, &pp->ppf.ppf1, buffer,
1627 error = Lookup_PairPos2( gpi, &pp->ppf.ppf2, buffer, first_pos,
1639 buffer->in_pos = first_pos;
1644 (buffer->in_pos)++;
1792 HB_Buffer buffer,
1973 POSITION( buffer->in_pos )->x_advance = entry_x - gpi->anchor_x;
1974 POSITION( buffer->in_pos )->new_advance = TRUE;
1984 POSITION( gpi->last )->cursive_chain = gpi->last - buffer->in_pos;
1989 POSITION( buffer->in_pos )->cursive_chain = buffer->in_pos - gpi->last;
1990 POSITION( buffer->in_pos )->y_pos = gpi->anchor_y - entry_y;
2000 gpi->last = buffer->in_pos;
2007 (buffer->in_pos)++;
2214 HB_Buffer buffer,
2253 j = buffer->in_pos - 1;
2255 while ( i <= buffer->in_pos )
2275 if ( i > buffer->in_pos )
2314 o = POSITION( buffer->in_pos );
2322 (buffer->in_pos)++;
2621 HB_Buffer buffer,
2663 j = buffer->in_pos - 1;
2665 while ( i <= buffer->in_pos )
2686 if ( i > buffer->in_pos )
2717 if ( IN_LIGID( j ) == IN_LIGID( buffer->in_pos) )
2719 comp_index = IN_COMPONENT( buffer->in_pos );
2740 o = POSITION( buffer->in_pos );
2748 (buffer->in_pos)++;
2948 HB_Buffer buffer,
2988 if ( buffer->in_pos == 0 )
2992 j = buffer->in_pos - 1;
2993 while ( i <= buffer->in_pos )
3015 if ( i > buffer->in_pos )
3053 o = POSITION( buffer->in_pos );
3061 (buffer->in_pos)++;
3075 HB_Buffer buffer,
3088 old_pos = buffer->in_pos;
3092 error = GPOS_Do_Glyph_Lookup( gpi, pos->LookupListIndex, buffer,
3100 i += buffer->in_pos - old_pos;
3105 (buffer->in_pos)++;
3797 HB_Buffer buffer,
3828 if ( buffer->in_pos + pr[k].GlyphCount > buffer->in_length )
3831 for ( i = 1, j = buffer->in_pos + 1; i < pr[k].GlyphCount; i++, j++ )
3838 if ( j + pr[k].GlyphCount - i == (HB_Int)buffer->in_length )
3849 buffer,
3862 HB_Buffer buffer,
3919 if ( buffer->in_pos + pr->GlyphCount > buffer->in_length )
3926 for ( i = 1, j = buffer->in_pos + 1; i < pr->GlyphCount; i++, j++ )
3933 if ( j + pr->GlyphCount - i == (HB_Int)buffer->in_length )
3954 buffer,
3972 HB_Buffer buffer,
3993 if ( buffer->in_pos + cpf3->GlyphCount > buffer->in_length )
4005 if ( j + cpf3->GlyphCount - i == (HB_Int)buffer->in_length )
4017 buffer,
4024 HB_Buffer buffer,
4034 return Lookup_ContextPos1( gpi, &cp->cpf.cpf1, buffer,
4038 return Lookup_ContextPos2( gpi, &cp->cpf.cpf2, buffer,
4042 return Lookup_ContextPos3( gpi, &cp->cpf.cpf3, buffer,
5005 HB_Buffer buffer,
5045 if ( bgc > buffer->in_pos || buffer->in_pos + igc + lgc > buffer->in_length )
5053 for ( i = 0, j = buffer->in_pos - 1; i < bgc; i++, j-- )
5082 for ( i = 1, j = buffer->in_pos + 1; i < igc; i++, j++ )
5089 if ( j + igc - i + lgc == (HB_Int)buffer->in_length )
5108 if ( j + lgc - i == (HB_Int)buffer->in_length )
5120 buffer,
5134 HB_Buffer buffer,
5213 if ( bgc > buffer->in_pos || buffer->in_pos + igc + lgc > buffer->in_length )
5224 for ( i = 0, j = buffer->in_pos - 1; i < bgc; i++, j-- )
5256 for ( i = 1, j = buffer->in_pos + 1; i < igc; i++, j++ )
5263 if ( j + igc - i + lgc == (HB_Int)buffer->in_length )
5293 if ( j + lgc - i == (HB_Int)buffer->in_length )
5314 buffer,
5339 HB_Buffer buffer,
5369 if ( bgc > buffer->in_pos || buffer->in_pos + igc + lgc > buffer->in_length )
5379 for ( i = 0, j = buffer->in_pos - 1; i < bgc; i++, j-- )
5399 for ( i = 0, j = buffer->in_pos; i < igc; i++, j++ )
5401 /* We already called CHECK_Property for IN_GLYPH ( buffer->in_pos ) */
5402 while ( j > buffer->in_pos && CHECK_Property( gdef, IN_ITEM( j ), flags, &property ) )
5407 if ( j + igc - i + lgc == (HB_Int)buffer->in_length )
5429 if ( j + lgc - i == (HB_Int)buffer->in_length )
5442 buffer,
5450 HB_Buffer buffer,
5460 return Lookup_ChainContextPos1( gpi, &ccp->ccpf.ccpf1, buffer,
5465 return Lookup_ChainContextPos2( gpi, &ccp->ccpf.ccpf2, buffer,
5470 return Lookup_ChainContextPos3( gpi, &ccp->ccpf.ccpf3, buffer,
5772 HB_Buffer buffer,
5802 error = Lookup_SinglePos ( gpi, st, buffer, flags, context_length, nesting_level ); break;
5804 error = Lookup_PairPos ( gpi, st, buffer, flags, context_length, nesting_level ); break;
5806 error = Lookup_CursivePos ( gpi, st, buffer, flags, context_length, nesting_level ); break;
5808 error = Lookup_MarkBasePos ( gpi, st, buffer, flags, context_length, nesting_level ); break;
5810 error = Lookup_MarkLigPos ( gpi, st, buffer, flags, context_length, nesting_level ); break;
5812 error = Lookup_MarkMarkPos ( gpi, st, buffer, flags, context_length, nesting_level ); break;
5814 error = Lookup_ContextPos ( gpi, st, buffer, flags, context_length, nesting_level ); break;
5816 error = Lookup_ChainContextPos ( gpi, st, buffer, flags, context_length, nesting_level ); break;
5818 error = Lookup_ExtensionPos ( gpi, st, buffer, flags, context_length, nesting_level ); break;*/
5876 HB_Buffer buffer )
5890 buffer->in_pos = 0;
5891 while ( buffer->in_pos < buffer->in_length )
5893 if ( ~IN_PROPERTIES( buffer->in_pos ) & properties[lookup_index] )
5902 error = GPOS_Do_Glyph_Lookup( gpi, lookup_index, buffer, context_length, nesting_level );
5916 (buffer->in_pos)++;
5925 static HB_Error Position_CursiveChain ( HB_Buffer buffer )
5928 HB_Position positions = buffer->positions;
5931 for (j = 0; j < buffer->in_length; j++)
5938 for (i = buffer->in_length; i > 0; i--)
6030 HB_Buffer buffer,
6038 if ( !font || !gpos || !buffer )
6041 if ( buffer->in_length == 0 )
6055 error = _hb_buffer_clear_positions( buffer );
6073 error = GPOS_Do_String_Lookup( &gpi, lookup_index, buffer );
6086 error = Position_CursiveChain ( buffer );