2001-03-21 20:09:56 +00:00
|
|
|
/********************************************************************
|
|
|
|
* COPYRIGHT:
|
2016-05-31 21:45:07 +00:00
|
|
|
* Copyright (c) 1997-2001, International Business Machines Corporation and
|
|
|
|
* others. All Rights Reserved.
|
2001-03-21 20:09:56 +00:00
|
|
|
********************************************************************
|
2001-03-01 19:47:46 +00:00
|
|
|
************************************************************************
|
|
|
|
* Date Name Description
|
|
|
|
* 02/28/2001 aliu Creation
|
|
|
|
* 03/01/2001 George port to HP/UX
|
|
|
|
************************************************************************/
|
|
|
|
|
2001-02-28 19:49:07 +00:00
|
|
|
#ifndef JAMOTEST_H
|
|
|
|
#define JAMOTEST_H
|
|
|
|
|
2002-09-21 00:43:14 +00:00
|
|
|
#include "unicode/utypes.h"
|
|
|
|
|
|
|
|
#if !UCONFIG_NO_TRANSLITERATION
|
|
|
|
|
2001-10-08 23:26:58 +00:00
|
|
|
#include "unicode/translit.h"
|
2001-02-28 19:49:07 +00:00
|
|
|
#include "transtst.h"
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @test
|
|
|
|
* @summary Test of Latin-Jamo and Jamo-Latin rules
|
|
|
|
*/
|
|
|
|
class JamoTest : public TransliteratorTest {
|
2001-10-03 18:05:44 +00:00
|
|
|
public:
|
|
|
|
JamoTest();
|
|
|
|
virtual ~JamoTest();
|
|
|
|
private:
|
2001-02-28 19:49:07 +00:00
|
|
|
void runIndexedTest(int32_t index, UBool exec, const char* &name,
|
|
|
|
char* par=NULL);
|
|
|
|
|
|
|
|
void TestJamo(void);
|
|
|
|
|
|
|
|
void TestRealText(void);
|
|
|
|
|
2001-09-28 20:56:10 +00:00
|
|
|
void TestPiecemeal(void);
|
|
|
|
|
2001-02-28 19:49:07 +00:00
|
|
|
//======================================================================
|
|
|
|
// Support methods
|
|
|
|
//======================================================================
|
|
|
|
|
|
|
|
// Override TransliteratorTest
|
|
|
|
virtual void expectAux(const UnicodeString& tag,
|
|
|
|
const UnicodeString& summary, UBool pass,
|
|
|
|
const UnicodeString& expectedResult);
|
2001-10-03 18:05:44 +00:00
|
|
|
|
2001-02-28 19:49:07 +00:00
|
|
|
// Methods to convert Jamo to/from readable short names,
|
|
|
|
// e.g. (Gi) <> U+1100
|
|
|
|
static const char* JAMO_NAMES_RULES;
|
2001-10-03 18:05:44 +00:00
|
|
|
Transliterator *JAMO_NAME;
|
|
|
|
Transliterator *NAME_JAMO;
|
|
|
|
UnicodeString nameToJamo(const UnicodeString& input);
|
|
|
|
UnicodeString jamoToName(const UnicodeString& input);
|
2001-02-28 19:49:07 +00:00
|
|
|
};
|
|
|
|
|
2002-09-21 00:43:14 +00:00
|
|
|
#endif /* #if !UCONFIG_NO_TRANSLITERATION */
|
|
|
|
|
2001-02-28 19:49:07 +00:00
|
|
|
#endif
|