/*
*
- * (C) Copyright IBM Corp. and others 1998-2013 - All Rights Reserved
+ * (C) Copyright IBM Corp. and others 1998-2016 - All Rights Reserved
*
*/
{
TTGlyphID newGlyph = 0xFFFF;
if(LE_FAILURE(success)) return newGlyph;
- LEReferenceTo<LookupTable> lookupTable(perGlyphTable, success, offset);
+ LEReferenceTo<LookupTableBase> lookupTable(perGlyphTable, success, offset);
if(LE_FAILURE(success)) return newGlyph;
le_int16 format = SWAPW(lookupTable->format);
/*
*
- * (C) Copyright IBM Corp. and others 1998-2013 - All Rights Reserved
+ * (C) Copyright IBM Corp. and others 1998-2016 - All Rights Reserved
*
*/
#include "LETypes.h"
#include "LayoutTables.h"
-#include "StateTables.h"
+#include "MorphStateTables.h"
#include "MorphTables.h"
+#include "StateTables.h"
U_NAMESPACE_BEGIN
-
/*
*
- * (C) Copyright IBM Corp. 1998-2014 - All Rights Reserved
+ * (C) Copyright IBM Corp. 1998-2016 - All Rights Reserved
*
* This file is a modification of the ICU file IndicLayoutEngine.h
* by Jens Herden and Javier Sola for Khmer language
#ifndef __KHMERLAYOUTENGINE_H
#define __KHMERLAYOUTENGINE_H
-// #include "LETypes.h"
-// #include "LEFontInstance.h"
-// #include "LEGlyphFilter.h"
-// #include "LayoutEngine.h"
-// #include "OpenTypeLayoutEngine.h"
+#include "LETypes.h"
+#include "LEFontInstance.h"
+#include "LEGlyphFilter.h"
+#include "LayoutEngine.h"
+#include "OpenTypeLayoutEngine.h"
-// #include "GlyphSubstitutionTables.h"
-// #include "GlyphDefinitionTables.h"
-// #include "GlyphPositioningTables.h"
+#include "GlyphSubstitutionTables.h"
+#include "GlyphDefinitionTables.h"
+#include "GlyphPositioningTables.h"
U_NAMESPACE_BEGIN
-// class MPreFixups;
-// class LEGlyphStorage;
+class MPreFixups;
+class LEGlyphStorage;
/**
* This class implements OpenType layout for Khmer OpenType fonts, as
U_NAMESPACE_END
#endif
-
/*
* %W% %E%
*
- * (C) Copyright IBM Corp. 1998-2013 - All Rights Reserved
+ * (C) Copyright IBM Corp. 1998-2016 - All Rights Reserved
*
*/
#include "LEFontInstance.h"
#include "OpenTypeTables.h"
#include "LETableReference.h"
-//#include "Lookups.h"
-//#include "Features.h"
+#include "Lookups.h"
U_NAMESPACE_BEGIN
struct FeatureListTable;
struct GlyphDefinitionTableHeader;
struct LookupSubtable;
-struct LookupTable;
class LookupProcessor : public UMemory {
public:
/*
*
- * (C) Copyright IBM Corp. 1998-2013 - All Rights Reserved
+ * (C) Copyright IBM Corp. 1998-2016 - All Rights Reserved
*
*/
#include "LETypes.h"
#include "LayoutTables.h"
#include "LETableReference.h"
+#include "Lookups.h"
U_NAMESPACE_BEGIN
typedef le_int16 LookupValue;
-struct LookupTable
+// Different from struct LookupTable in Lookups.h.
+struct LookupTableBase
{
le_int16 format;
};
LookupValue value;
};
-struct BinarySearchLookupTable : LookupTable
+struct BinarySearchLookupTable : LookupTableBase
{
le_int16 unitSize;
le_int16 nUnits;
const LookupSingle *lookupSingle(const LETableReference &base, const LookupSingle *entries, LEGlyphID glyph, LEErrorCode &success) const;
};
-struct SimpleArrayLookupTable : LookupTable
+struct SimpleArrayLookupTable : LookupTableBase
{
LookupValue valueArray[ANY_NUMBER];
};
};
LE_VAR_ARRAY(SingleTableLookupTable, entries)
-struct TrimmedArrayLookupTable : LookupTable
+struct TrimmedArrayLookupTable : LookupTableBase
{
TTGlyphID firstGlyph;
TTGlyphID glyphCount;
/*
- * (C) Copyright IBM Corp. and others 1998-2013 - All Rights Reserved
+ * (C) Copyright IBM Corp. and others 1998-2016 - All Rights Reserved
*
*/
struct NonContextualGlyphSubstitutionHeader : MorphSubtableHeader
{
- LookupTable table;
+ LookupTableBase table;
};
struct NonContextualGlyphSubstitutionHeader2 : MorphSubtableHeader2
{
- LookupTable table;
+ LookupTableBase table;
};
U_NAMESPACE_END
#endif
-
/*
*
- * (C) Copyright IBM Corp. and others 1998-2014 - All Rights Reserved
+ * (C) Copyright IBM Corp. and others 1998-2016 - All Rights Reserved
*
*/
stateArrayOffset = SWAPL(stHeader->stateArrayOffset);
entryTableOffset = SWAPL(stHeader->entryTableOffset);
- classTable = LEReferenceTo<LookupTable>(stHeader, success, classTableOffset);
+ classTable = LEReferenceTo<LookupTableBase>(stHeader, success, classTableOffset);
format = SWAPW(classTable->format);
stateArray = LEReferenceToArrayOf<EntryTableIndex2>(stHeader, success, stateArrayOffset, LE_UNBOUNDED_ARRAY);
/*
*
- * (C) Copyright IBM Corp. and others 1998-2013 - All Rights Reserved
+ * (C) Copyright IBM Corp. and others 1998-2016 - All Rights Reserved
*
*/
le_uint32 stateArrayOffset;
le_uint32 entryTableOffset;
- LEReferenceTo<LookupTable> classTable;
+ LEReferenceTo<LookupTableBase> classTable;
LEReferenceToArrayOf<EntryTableIndex2> stateArray;
LEReferenceTo<MorphStateTableHeader2> stateTableHeader;
LEReferenceTo<StateTableHeader2> stHeader; // for convenience
/*
*
- * (C) Copyright IBM Corp. and others 1998-2013 - All Rights Reserved
+ * (C) Copyright IBM Corp. and others 1998-2016 - All Rights Reserved
*
*/
#include "LETypes.h"
#include "LayoutTables.h"
+#include "LETableReference.h"
U_NAMESPACE_BEGIN
/*
*
- * (C) Copyright IBM Corp. 1998-2013 - All Rights Reserved
+ * (C) Copyright IBM Corp. 1998-2016 - All Rights Reserved
*
* Developed at DIT - Government of Bhutan
*
#ifndef __TIBETANLAYOUTENGINE_H
#define __TIBETANLAYOUTENGINE_H
-// #include "LETypes.h"
-// #include "LEFontInstance.h"
-// #include "LEGlyphFilter.h"
-// #include "LayoutEngine.h"
-// #include "OpenTypeLayoutEngine.h"
+#include "LETypes.h"
+#include "LEFontInstance.h"
+#include "LEGlyphFilter.h"
+#include "LayoutEngine.h"
+#include "OpenTypeLayoutEngine.h"
-// #include "GlyphSubstitutionTables.h"
-// #include "GlyphDefinitionTables.h"
-// #include "GlyphPositioningTables.h"
+#include "GlyphSubstitutionTables.h"
+#include "GlyphDefinitionTables.h"
+#include "GlyphPositioningTables.h"
U_NAMESPACE_BEGIN
-// class MPreFixups;
-// class LEGlyphStorage;
+class MPreFixups;
+class LEGlyphStorage;
/**
* This class implements OpenType layout for Dzongkha and Tibetan OpenType fonts
U_NAMESPACE_END
#endif
-
/*
*
- * (C) Copyright IBM Corp. 1998-2013 - All Rights Reserved
+ * (C) Copyright IBM Corp. 1998-2016 - All Rights Reserved
*
* Developed at DIT - Government of Bhutan
*
* \internal
*/
-// #include "LETypes.h"
-// #include "OpenTypeTables.h"
+#include "LETypes.h"
+#include "OpenTypeTables.h"
U_NAMESPACE_BEGIN
# and others. All rights reserved.
#
# Run this script from $ICU_ROOT/src/source/
+# ~/svn.icu/trunk/src/source$ test/hdrtst/testinternalheaders.sh
+CC=clang
CXX=clang++
+# Runtime libraries
+
for file in `ls common/*.h`; do
echo $file
echo '#include "'$file'"' > ht_temp.cpp ;
$CXX -c -I common -I i18n -I io -O0 ht_temp.cpp ;
done ;
+# layout is deprecated, but layoutex is not.
+
+for file in `ls layout/*.h`; do
+ echo $file
+ echo '#include "'$file'"' > ht_temp.cpp ;
+ echo 'void noop() {}' >> ht_temp.cpp ;
+ $CXX -c -I common -I i18n -I io -O0 ht_temp.cpp ;
+done ;
+
+# -I . for includes of layout/*.h
+for file in `ls layoutex/*.h`; do
+ echo $file
+ echo '#include "'$file'"' > ht_temp.cpp ;
+ echo 'void noop() {}' >> ht_temp.cpp ;
+ $CXX -c -I common -I i18n -I io -I layout -I . -I layoutex -O0 ht_temp.cpp ;
+done ;
+
+# Tools
+
+for file in `ls tools/toolutil/*.h`; do
+ echo $file
+ echo '#include "'$file'"' > ht_temp.cpp ;
+ echo 'void noop() {}' >> ht_temp.cpp ;
+ $CXX -c -I common -I i18n -I io -I tools/toolutil -O0 ht_temp.cpp ;
+done ;
+
+# Exclude tzcode: tools/tzcode/private.h uses an argument "new" in a function declaration.
+# Markus sent an email to the tz list on 20160307 requesting that it be renamed.
+# We don't want to patch it, and don't want to spend the time for this script here
+# to know about C-only header files.
+
+for tool in genccode gencmn gencolusb gennorm2 genren gentest icupkg icuswap pkgdata \
+ genbrk gencfu gencnval gendict genrb gensprep icuinfo makeconv memcheck; do
+ for file in `ls tools/$tool/*.h`; do
+ echo $file
+ echo '#include "'$file'"' > ht_temp.cpp ;
+ echo 'void noop() {}' >> ht_temp.cpp ;
+ $CXX -c -I common -I i18n -I io -I tools/toolutil -I tools/$tool -O0 ht_temp.cpp ;
+ done ;
+done ;
+
+# Tests
+
+for file in `ls tools/ctestfw/unicode/*.h`; do
+ echo $file
+ echo '#include "'$file'"' > ht_temp.cpp ;
+ echo 'void noop() {}' >> ht_temp.cpp ;
+ $CXX -c -I common -I i18n -I io -I tools/toolutil -I tools/ctestfw -O0 ht_temp.cpp ;
+done ;
+
+# C not C++ for cintltst
+for file in `ls tools/cintltst/*.h`; do
+ echo $file
+ echo '#include "'$file'"' > ht_temp.cpp ;
+ echo 'void noop() {}' >> ht_temp.cpp ;
+ $CC -c -I common -I i18n -I io -I tools/toolutil -I tools/ctestfw -I test/cintltst -O0 ht_temp.cpp ;
+done ;
+
+for test in intltest iotest testmap thaitest; do
+ for file in `ls test/$test/*.h`; do
+ echo $file
+ echo '#include "'$file'"' > ht_temp.cpp ;
+ echo 'void noop() {}' >> ht_temp.cpp ;
+ $CXX -c -I common -I i18n -I io -I tools/toolutil -I tools/ctestfw -I test/$test -O0 ht_temp.cpp ;
+ done ;
+done ;
+
+for file in `ls test/letest/*.h`; do
+ echo $file
+ echo '#include "'$file'"' > ht_temp.cpp ;
+ echo 'void noop() {}' >> ht_temp.cpp ;
+ $CXX -c -I common -I i18n -I io -I layout -I . -I layoutex -I tools/toolutil -I tools/ctestfw -I test/letest -O0 ht_temp.cpp ;
+done ;
+
+# TODO: perf/*/*.h
+
rm ht_temp.cpp ht_temp.o
/*************************************************************************
- * Copyright (c) 1999-2014, International Business Machines
+ * Copyright (c) 1999-2016, International Business Machines
* Corporation and others. All Rights Reserved.
*************************************************************************
* Date Name Description
#include "intltest.h"
#include "unicode/brkiter.h"
-
+#include "unicode/rbbi.h"
class Enumeration;
class BITestData;
/*
*******************************************************************************
*
-* Copyright (C) 1998-2011, International Business Machines
+* Copyright (C) 1998-2016, International Business Machines
* Corporation and others. All Rights Reserved.
*
*******************************************************************************
#ifndef ERROR_H
#define ERROR_H 1
+#include "unicode/utypes.h"
+
U_CDECL_BEGIN
extern const char *gCurrentFileName;
/*
*******************************************************************************
*
-* Copyright (C) 1998-2003, International Business Machines
+* Copyright (C) 1998-2016, International Business Machines
* Corporation and others. All Rights Reserved.
*
*******************************************************************************
#ifndef PRSCMNTS_H
#define PRSCMNTS_H 1
+#include "unicode/utypes.h"
+
#if UCONFIG_NO_REGULAR_EXPRESSIONS==0 /* donot compile when no RegularExpressions are available */
enum UParseCommentsOption {
/*
*******************************************************************************
*
-* Copyright (C) 1998-2005, International Business Machines
+* Copyright (C) 1998-2016, International Business Machines
* Corporation and others. All Rights Reserved.
*
*******************************************************************************
#ifndef UTIL_H
#define UTIL_H 1
+#include "unicode/utypes.h"
+
U_CDECL_BEGIN
void get_dirname(char *dirname, const char *filename);
void get_basename(char *basename, const char *filename);
int32_t itostr(char * buffer, int32_t i, uint32_t radix, int32_t pad);
+
U_CDECL_END
-#endif /* ! UTIL_H */
+#endif /* ! UTIL_H */
/******************************************************************************
- * Copyright (C) 2008-2012, International Business Machines
+ * Copyright (C) 2008-2016, International Business Machines
* Corporation and others. All Rights Reserved.
*******************************************************************************
*/
#define __PKG_ICU_H__
#include "unicode/utypes.h"
+#include "package.h"
#define U_PKG_RESERVED_CHARS "\"%&'()*+,-./:;<=>?_"
/*
*******************************************************************************
*
-* Copyright (C) 2005, International Business Machines
+* Copyright (C) 2005-2016, International Business Machines
* Corporation and others. All Rights Reserved.
*
*******************************************************************************
#define __PKG_IMP_H__
#include "unicode/utypes.h"
+#include "unicode/udata.h"
/*
* Read an ICU data item with any platform type,