2001-10-03 21:48:10 +00:00
|
|
|
/*
|
|
|
|
*******************************************************************************
|
|
|
|
*
|
|
|
|
* Copyright (C) 1999-2000, International Business Machines
|
|
|
|
* Corporation and others. All Rights Reserved.
|
|
|
|
*
|
|
|
|
*******************************************************************************
|
|
|
|
* file name: letest.h
|
|
|
|
*
|
|
|
|
* created on: 11/06/2000
|
|
|
|
* created by: Eric R. Mader
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "unicode/utypes.h"
|
2001-10-11 21:58:11 +00:00
|
|
|
#include "unicode/uscript.h"
|
2001-10-03 21:48:10 +00:00
|
|
|
|
|
|
|
#define ARRAY_LENGTH(array) (sizeof array / sizeof array[0])
|
|
|
|
|
|
|
|
struct TestInput
|
|
|
|
{
|
|
|
|
char *fontName;
|
|
|
|
UChar *text;
|
|
|
|
int32_t textLength;
|
2001-10-11 21:58:11 +00:00
|
|
|
UScriptCode scriptCode;
|
2001-10-03 21:48:10 +00:00
|
|
|
UBool rightToLeft;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern int32_t testCount;
|
|
|
|
|
|
|
|
extern TestInput testInputs[];
|
|
|
|
|
|
|
|
struct TestResult
|
|
|
|
{
|
|
|
|
int32_t glyphCount;
|
|
|
|
uint16_t *glyphs;
|
|
|
|
int32_t *indices;
|
|
|
|
float *positions;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern TestResult testResults[];
|
|
|
|
|
|
|
|
|