3 * (C) Copyright IBM Corp. and others 1998-2013 - All Rights Reserved
8 #include "MorphTables.h"
9 #include "SubtableProcessor2.h"
10 #include "NonContextualGlyphSubst.h"
11 #include "NonContextualGlyphSubstProc2.h"
12 #include "SimpleArrayProcessor2.h"
13 #include "SegmentSingleProcessor2.h"
14 #include "SegmentArrayProcessor2.h"
15 #include "SingleTableProcessor2.h"
16 #include "TrimmedArrayProcessor2.h"
21 NonContextualGlyphSubstitutionProcessor2::NonContextualGlyphSubstitutionProcessor2()
25 NonContextualGlyphSubstitutionProcessor2::NonContextualGlyphSubstitutionProcessor2(
26 const LEReferenceTo
<MorphSubtableHeader2
> &morphSubtableHeader
, LEErrorCode
&success
)
27 : SubtableProcessor2(morphSubtableHeader
, success
)
31 NonContextualGlyphSubstitutionProcessor2::~NonContextualGlyphSubstitutionProcessor2()
35 SubtableProcessor2
*NonContextualGlyphSubstitutionProcessor2::createInstance(
36 const LEReferenceTo
<MorphSubtableHeader2
> &morphSubtableHeader
, LEErrorCode
&success
)
38 const LEReferenceTo
<NonContextualGlyphSubstitutionHeader2
> header(morphSubtableHeader
, success
);
39 if(LE_FAILURE(success
)) return NULL
;
41 switch (SWAPW(header
->table
.format
))
44 return new SimpleArrayProcessor2(morphSubtableHeader
, success
);
46 case ltfSegmentSingle
:
47 return new SegmentSingleProcessor2(morphSubtableHeader
, success
);
50 return new SegmentArrayProcessor2(morphSubtableHeader
, success
);
53 return new SingleTableProcessor2(morphSubtableHeader
, success
);
56 return new TrimmedArrayProcessor2(morphSubtableHeader
, success
);