scuffed-code/icu4c/source/i18n/unicode/hangjamo.h

69 lines
1.6 KiB
C++

/*
**********************************************************************
* Copyright (c) 2000, International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
* Date Name Description
* 01/17/2000 aliu Ported from Java.
**********************************************************************
*/
#ifndef HANGJAMO_H
#define HANGJAMO_H
#include "unicode/translit.h"
/**
* A transliterator that converts Hangul to Jamo.
*
* @author Mark Davis
* @version $RCSfile: hangjamo.h,v $ $Revision: 1.5 $ $Date: 2000/06/27 19:00:38 $
*/
class U_I18N_API HangulJamoTransliterator : public Transliterator {
/**
* ID for this transliterator.
*/
static const char* _ID;
public:
/**
* Constructs a transliterator.
*/
HangulJamoTransliterator(UnicodeFilter* adoptedFilter = 0);
/**
* Destructor.
*/
virtual ~HangulJamoTransliterator();
/**
* Copy constructor.
*/
HangulJamoTransliterator(const HangulJamoTransliterator&);
/**
* Assignment operator.
*/
HangulJamoTransliterator& operator=(const HangulJamoTransliterator&);
/**
* Transliterator API.
*/
Transliterator* clone(void) const;
/**
* Implements {@link Transliterator#handleTransliterate}.
*/
virtual void handleTransliterate(Replaceable& text, UTransPosition& offsets,
UBool isIncremental) const;
private:
static UBool decomposeHangul(UChar s, UnicodeString& result);
};
inline HangulJamoTransliterator::~HangulJamoTransliterator() {}
#endif