Lines Matching defs:csf2

1378 static HB_Error  Load_SubClassRule( HB_ContextSubstFormat2*  csf2,
1396 if ( scr->GlyphCount > csf2->MaxContextLength )
1397 csf2->MaxContextLength = scr->GlyphCount;
1458 static HB_Error Load_SubClassSet( HB_ContextSubstFormat2* csf2,
1497 ( error = Load_SubClassRule( csf2, &scr[n],
1536 static HB_Error Load_ContextSubst2( HB_ContextSubstFormat2* csf2,
1558 ( error = _HB_OPEN_Load_Coverage( &csf2->Coverage, stream ) ) != HB_Err_Ok )
1570 count = csf2->SubClassSetCount = GET_UShort();
1576 ( error = _HB_OPEN_Load_ClassDefinition( &csf2->ClassDef, count,
1581 csf2->SubClassSet = NULL;
1582 csf2->MaxContextLength = 0;
1584 if ( ALLOC_ARRAY( csf2->SubClassSet, count, HB_SubClassSet ) )
1587 scs = csf2->SubClassSet;
1602 ( error = Load_SubClassSet( csf2, &scs[n],
1611 csf2->SubClassSet[n].SubClassRuleCount = 0;
1612 csf2->SubClassSet[n].SubClassRule = NULL;
1625 _HB_OPEN_Free_ClassDefinition( &csf2->ClassDef );
1628 _HB_OPEN_Free_Coverage( &csf2->Coverage );
1633 static void Free_ContextSubst2( HB_ContextSubstFormat2* csf2 )
1640 if ( csf2->SubClassSet )
1642 count = csf2->SubClassSetCount;
1643 scs = csf2->SubClassSet;
1651 _HB_OPEN_Free_ClassDefinition( &csf2->ClassDef );
1652 _HB_OPEN_Free_Coverage( &csf2->Coverage );
1781 case 2: return Load_ContextSubst2( &cs->csf.csf2, stream );
1797 case 2: Free_ContextSubst2( &cs->csf.csf2 ); break;
1868 HB_ContextSubstFormat2* csf2,
1895 error = _HB_OPEN_Coverage_Index( &csf2->Coverage, IN_CURGLYPH(), &index );
1899 if (csf2->MaxContextLength < 1)
1902 if ( ALLOC_ARRAY( classes, csf2->MaxContextLength, HB_UShort ) )
1905 error = _HB_OPEN_Get_Class( &csf2->ClassDef, IN_CURGLYPH(),
1911 scs = &csf2->SubClassSet[classes[0]];
1948 error = _HB_OPEN_Get_Class( &csf2->ClassDef, IN_GLYPH( j ), &classes[i], NULL );
2039 case 2: return Lookup_ContextSubst2( gsub, &cs->csf.csf2, buffer, flags, context_length, nesting_level );