2016-06-15 18:58:17 +00:00
|
|
|
// Copyright (C) 2016 and later: Unicode, Inc. and others.
|
|
|
|
// License & terms of use: http://www.unicode.org/copyright.html
|
2001-10-03 21:48:10 +00:00
|
|
|
/*
|
|
|
|
*******************************************************************************
|
|
|
|
*
|
2014-09-10 02:20:50 +00:00
|
|
|
* Copyright (C) 1999-2014, International Business Machines
|
2001-10-03 21:48:10 +00:00
|
|
|
* Corporation and others. All Rights Reserved.
|
|
|
|
*
|
|
|
|
*******************************************************************************
|
|
|
|
* file name: letest.h
|
|
|
|
*
|
|
|
|
* created on: 11/06/2000
|
|
|
|
* created by: Eric R. Mader
|
|
|
|
*/
|
|
|
|
|
2006-04-07 23:51:55 +00:00
|
|
|
#ifndef __LETEST_H
|
|
|
|
#define __LETEST_H
|
|
|
|
|
2014-09-10 02:20:50 +00:00
|
|
|
|
|
|
|
#ifdef USING_ICULEHB
|
|
|
|
#include "layout/LETypes.h"
|
|
|
|
#else
|
2003-02-05 00:12:26 +00:00
|
|
|
#include "LETypes.h"
|
2014-09-10 02:20:50 +00:00
|
|
|
#endif
|
2007-06-22 03:57:45 +00:00
|
|
|
#include "unicode/ctest.h"
|
2001-10-03 21:48:10 +00:00
|
|
|
|
2006-04-07 23:51:55 +00:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
2001-10-03 21:48:10 +00:00
|
|
|
|
2007-06-07 00:41:21 +00:00
|
|
|
U_NAMESPACE_USE
|
|
|
|
|
2006-04-07 23:51:55 +00:00
|
|
|
#define ARRAY_SIZE(array) (sizeof array / sizeof array[0])
|
|
|
|
|
|
|
|
#define ARRAY_COPY(dst, src, count) memcpy((void *) (dst), (void *) (src), (count) * sizeof (src)[0])
|
2001-10-03 21:48:10 +00:00
|
|
|
|
2006-04-07 23:51:55 +00:00
|
|
|
#define NEW_ARRAY(type,count) (type *) malloc((count) * sizeof(type))
|
2001-10-03 21:48:10 +00:00
|
|
|
|
2006-04-07 23:51:55 +00:00
|
|
|
#define DELETE_ARRAY(array) free((void *) (array))
|
|
|
|
|
|
|
|
#define GROW_ARRAY(array,newSize) realloc((void *) (array), (newSize) * sizeof (array)[0])
|
2001-10-03 21:48:10 +00:00
|
|
|
|
|
|
|
struct TestResult
|
|
|
|
{
|
2003-02-05 00:12:26 +00:00
|
|
|
le_int32 glyphCount;
|
|
|
|
LEGlyphID *glyphs;
|
|
|
|
le_int32 *indices;
|
|
|
|
float *positions;
|
2001-10-03 21:48:10 +00:00
|
|
|
};
|
2007-06-22 03:57:45 +00:00
|
|
|
|
2011-07-23 00:10:30 +00:00
|
|
|
#ifndef __cplusplus
|
2007-06-22 03:57:45 +00:00
|
|
|
typedef struct TestResult TestResult;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
U_CFUNC void addCTests(TestNode **root);
|
|
|
|
|
2006-04-07 23:51:55 +00:00
|
|
|
#endif
|