2000-11-28 20:56:52 +00:00
|
|
|
/*
|
|
|
|
*
|
2004-05-07 23:29:16 +00:00
|
|
|
* (C) Copyright IBM Corp. 1998-2004 - All Rights Reserved
|
2000-11-28 20:56:52 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "LETypes.h"
|
|
|
|
#include "MorphTables.h"
|
|
|
|
#include "SubtableProcessor.h"
|
2000-12-21 02:44:45 +00:00
|
|
|
#include "NonContextualGlyphSubst.h"
|
|
|
|
#include "NonContextualGlyphSubstProc.h"
|
2000-11-28 20:56:52 +00:00
|
|
|
#include "SimpleArrayProcessor.h"
|
|
|
|
#include "SegmentSingleProcessor.h"
|
|
|
|
#include "SegmentArrayProcessor.h"
|
|
|
|
#include "SingleTableProcessor.h"
|
|
|
|
#include "TrimmedArrayProcessor.h"
|
|
|
|
#include "LESwaps.h"
|
|
|
|
|
2001-10-16 00:39:01 +00:00
|
|
|
U_NAMESPACE_BEGIN
|
|
|
|
|
2000-11-28 20:56:52 +00:00
|
|
|
NonContextualGlyphSubstitutionProcessor::NonContextualGlyphSubstitutionProcessor()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2001-01-19 00:30:17 +00:00
|
|
|
NonContextualGlyphSubstitutionProcessor::NonContextualGlyphSubstitutionProcessor(const MorphSubtableHeader *morphSubtableHeader)
|
2004-05-07 23:29:16 +00:00
|
|
|
: SubtableProcessor(morphSubtableHeader)
|
2000-11-28 20:56:52 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
NonContextualGlyphSubstitutionProcessor::~NonContextualGlyphSubstitutionProcessor()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2001-01-19 00:30:17 +00:00
|
|
|
SubtableProcessor *NonContextualGlyphSubstitutionProcessor::createInstance(const MorphSubtableHeader *morphSubtableHeader)
|
2000-11-28 20:56:52 +00:00
|
|
|
{
|
2001-01-19 00:30:17 +00:00
|
|
|
const NonContextualGlyphSubstitutionHeader *header = (const NonContextualGlyphSubstitutionHeader *) morphSubtableHeader;
|
2000-11-28 20:56:52 +00:00
|
|
|
|
|
|
|
switch (SWAPW(header->table.format))
|
|
|
|
{
|
|
|
|
case ltfSimpleArray:
|
|
|
|
return new SimpleArrayProcessor(morphSubtableHeader);
|
|
|
|
|
|
|
|
case ltfSegmentSingle:
|
|
|
|
return new SegmentSingleProcessor(morphSubtableHeader);
|
|
|
|
|
|
|
|
case ltfSegmentArray:
|
|
|
|
return new SegmentArrayProcessor(morphSubtableHeader);
|
|
|
|
|
|
|
|
case ltfSingleTable:
|
|
|
|
return new SingleTableProcessor(morphSubtableHeader);
|
|
|
|
|
|
|
|
case ltfTrimmedArray:
|
|
|
|
return new TrimmedArrayProcessor(morphSubtableHeader);
|
|
|
|
|
|
|
|
default:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
}
|
2001-10-16 00:39:01 +00:00
|
|
|
|
|
|
|
U_NAMESPACE_END
|