jdk/src/share/native/sun/font/layout/ThaiShaping.cpp
changeset 3935 afcdb712a9c5
parent 2 90ce3da70b43
child 5506 202f599c92aa
equal deleted inserted replaced
3933:38e8ef00316e 3935:afcdb712a9c5
    32 #include "LETypes.h"
    32 #include "LETypes.h"
    33 #include "LEGlyphFilter.h"
    33 #include "LEGlyphFilter.h"
    34 #include "OpenTypeTables.h"
    34 #include "OpenTypeTables.h"
    35 #include "LEGlyphStorage.h"
    35 #include "LEGlyphStorage.h"
    36 #include "ThaiShaping.h"
    36 #include "ThaiShaping.h"
       
    37 
       
    38 U_NAMESPACE_BEGIN
    37 
    39 
    38 enum {
    40 enum {
    39     CH_SPACE        = 0x0020,
    41     CH_SPACE        = 0x0020,
    40     CH_YAMAKKAN     = 0x0E4E,
    42     CH_YAMAKKAN     = 0x0E4E,
    41     CH_MAI_HANAKAT  = 0x0E31,
    43     CH_MAI_HANAKAT  = 0x0E31,
   246      }
   248      }
   247 
   249 
   248      return transition.nextState;
   250      return transition.nextState;
   249 }
   251 }
   250 
   252 
   251 le_uint8 ThaiShaping::getNextState(LEUnicode ch, le_uint8 prevState, le_int32 inputIndex,
   253 le_uint8 ThaiShaping::getNextState(LEUnicode ch, le_uint8 prevState, le_int32 inputIndex, le_uint8 glyphSet, LEUnicode errorChar,
   252     le_uint8 glyphSet, LEUnicode errorChar,
   254                               le_uint8 &charClass, LEUnicode *output, LEGlyphStorage &glyphStorage, le_int32 &outputIndex)
   253     le_uint8 &charClass, LEUnicode *output, LEGlyphStorage &glyphStorage, le_int32 &outputIndex)
       
   254 {
   255 {
   255     StateTransition transition;
   256     StateTransition transition;
   256 
   257 
   257     charClass = getCharClass(ch);
   258     charClass = getCharClass(ch);
   258     transition = getTransition(prevState, charClass);
   259     transition = getTransition(prevState, charClass);
   325         }
   326         }
   326     }
   327     }
   327 
   328 
   328     return outputIndex;
   329     return outputIndex;
   329 }
   330 }
       
   331 
       
   332 U_NAMESPACE_END