Lines Matching refs:ccpf2

4368 		   HB_ChainContextPosFormat2*  ccpf2,
4389 if ( cpcr->BacktrackGlyphCount > ccpf2->MaxBacktrackLength )
4390 ccpf2->MaxBacktrackLength = cpcr->BacktrackGlyphCount;
4414 if ( cpcr->InputGlyphCount > ccpf2->MaxInputLength )
4415 ccpf2->MaxInputLength = cpcr->InputGlyphCount;
4443 if ( cpcr->LookaheadGlyphCount > ccpf2->MaxLookaheadLength )
4444 ccpf2->MaxLookaheadLength = cpcr->LookaheadGlyphCount;
4519 HB_ChainContextPosFormat2* ccpf2,
4559 ( error = Load_ChainPosClassRule( ccpf2, &cpcr[n],
4598 static HB_Error Load_ChainContextPos2( HB_ChainContextPosFormat2* ccpf2,
4621 ( error = _HB_OPEN_Load_Coverage( &ccpf2->Coverage, stream ) ) != HB_Err_Ok )
4636 count = ccpf2->ChainPosClassSetCount = GET_UShort();
4640 if ( ( error = _HB_OPEN_Load_EmptyOrClassDefinition( &ccpf2->BacktrackClassDef, 65535,
4644 if ( ( error = _HB_OPEN_Load_EmptyOrClassDefinition( &ccpf2->InputClassDef, count,
4648 if ( ( error = _HB_OPEN_Load_EmptyOrClassDefinition( &ccpf2->LookaheadClassDef, 65535,
4653 ccpf2->ChainPosClassSet = NULL;
4654 ccpf2->MaxBacktrackLength = 0;
4655 ccpf2->MaxInputLength = 0;
4656 ccpf2->MaxLookaheadLength = 0;
4658 if ( ALLOC_ARRAY( ccpf2->ChainPosClassSet, count, HB_ChainPosClassSet ) )
4661 cpcs = ccpf2->ChainPosClassSet;
4676 ( error = Load_ChainPosClassSet( ccpf2, &cpcs[n],
4685 ccpf2->ChainPosClassSet[n].ChainPosClassRuleCount = 0;
4686 ccpf2->ChainPosClassSet[n].ChainPosClassRule = NULL;
4699 _HB_OPEN_Free_ClassDefinition( &ccpf2->LookaheadClassDef );
4702 _HB_OPEN_Free_ClassDefinition( &ccpf2->InputClassDef );
4705 _HB_OPEN_Free_ClassDefinition( &ccpf2->BacktrackClassDef );
4708 _HB_OPEN_Free_Coverage( &ccpf2->Coverage );
4713 static void Free_ChainContextPos2( HB_ChainContextPosFormat2* ccpf2 )
4720 if ( ccpf2->ChainPosClassSet )
4722 count = ccpf2->ChainPosClassSetCount;
4723 cpcs = ccpf2->ChainPosClassSet;
4731 _HB_OPEN_Free_ClassDefinition( &ccpf2->LookaheadClassDef );
4732 _HB_OPEN_Free_ClassDefinition( &ccpf2->InputClassDef );
4733 _HB_OPEN_Free_ClassDefinition( &ccpf2->BacktrackClassDef );
4735 _HB_OPEN_Free_Coverage( &ccpf2->Coverage );
4975 return Load_ChainContextPos2( &ccp->ccpf.ccpf2, stream );
4995 case 2: Free_ChainContextPos2( &ccp->ccpf.ccpf2 ); break;
5133 HB_ChainContextPosFormat2* ccpf2,
5170 error = _HB_OPEN_Coverage_Index( &ccpf2->Coverage, IN_CURGLYPH(), &index );
5174 if (ccpf2->MaxInputLength < 1)
5177 if ( ALLOC_ARRAY( backtrack_classes, ccpf2->MaxBacktrackLength, HB_UShort ) )
5181 if ( ALLOC_ARRAY( input_classes, ccpf2->MaxInputLength, HB_UShort ) )
5185 if ( ALLOC_ARRAY( lookahead_classes, ccpf2->MaxLookaheadLength, HB_UShort ) )
5189 error = _HB_OPEN_Get_Class( &ccpf2->InputClassDef, IN_CURGLYPH(),
5194 cpcs = &ccpf2->ChainPosClassSet[input_classes[0]];
5240 error = _HB_OPEN_Get_Class( &ccpf2->BacktrackClassDef, IN_GLYPH( j ),
5270 error = _HB_OPEN_Get_Class( &ccpf2->InputClassDef, IN_GLYPH( j ),
5300 error = _HB_OPEN_Get_Class( &ccpf2->LookaheadClassDef, IN_GLYPH( j ),
5465 return Lookup_ChainContextPos2( gpi, &ccp->ccpf.ccpf2, buffer,