ICU-201 add forward declarations before 'friend' statements

X-SVN-Rev: 633
This commit is contained in:
Markus Scherer 2000-01-18 19:57:46 +00:00
parent 5aa450ea30
commit 8ab661d242
19 changed files with 81 additions and 15 deletions

View File

@ -6,7 +6,7 @@
* *
***************************************************************************************** *****************************************************************************************
*/ */
// $Revision: 1.5 $ // $Revision: 1.6 $
//=============================================================================== //===============================================================================
// //
// File locmap.hpp : Locale Mapping Classes // File locmap.hpp : Locale Mapping Classes
@ -33,6 +33,9 @@ class Locale;
// //
///////////////////////////////////////////////// /////////////////////////////////////////////////
/* forward declaration */
class ILcidPosixMap;
class ILcidPosixElement class ILcidPosixElement
{ {
public: public:

View File

@ -13,6 +13,9 @@
#include "unicode/unistr.h" #include "unicode/unistr.h"
#include "unicode/chariter.h" #include "unicode/chariter.h"
/* forward declaration */
class ComposedCharIter;
/** /**
* <tt>Normalizer</tt> transforms Unicode text into an equivalent composed or * <tt>Normalizer</tt> transforms Unicode text into an equivalent composed or
* decomposed form, allowing for easier sorting and searching of text. * decomposed form, allowing for easier sorting and searching of text.

View File

@ -60,6 +60,26 @@ class VisitedFileCache;
typedef struct _FileStream FileStream; typedef struct _FileStream FileStream;
#endif #endif
/* forward declarations */
class Locale;
class RuleBasedCollator;
class ResourceBundle;
extern int32_t T_ResourceBundle_countArrayItemsImplementation(
const ResourceBundle* resourceBundle,
const char* resourceKey,
UErrorCode& err);
extern const UnicodeString** listInstalledLocalesImplementation(
const char* path,
int32_t* numInstalledLocales);
extern void getTaggedArrayUCharsImplementation(
const ResourceBundle* bundle,
const char *resourceTag,
UChar const** itemTags,
UChar const** items,
int32_t maxItems,
int32_t& numItems,
UErrorCode& err);
/** /**
* A class representing a collection of resource information pertaining to a given * A class representing a collection of resource information pertaining to a given
* locale. A resource bundle provides a way of accessing locale- specfic information in * locale. A resource bundle provides a way of accessing locale- specfic information in

View File

@ -32,6 +32,7 @@
class Locale; class Locale;
class UCharReference; class UCharReference;
class UnicodeStringStreamer;
/** /**
* Unicode String literals in C++. * Unicode String literals in C++.

View File

@ -14,6 +14,9 @@
#include "rbbi_tbl.h" #include "rbbi_tbl.h"
#include "brkdict.h" #include "brkdict.h"
/* forward declaration */
class DictionaryBasedBreakIterator;
/** /**
* This subclass of RuleBasedBreakIteratorTables contains the additional * This subclass of RuleBasedBreakIteratorTables contains the additional
* static data that is used by DictionaryBasedBreakIterator. This comprises * static data that is used by DictionaryBasedBreakIterator. This comprises

View File

@ -1,7 +1,16 @@
/****************************************************************************** /******************************************************************************
* Copyright © {1996-1999}, International Business Machines Corporation and others. All Rights Reserved. * Copyright © {1996-1999}, International Business Machines Corporation and others. All Rights Reserved.
****************************************************************************** ******************************************************************************
*/ * Created by: Mark Davis, Helena Shih
*
* Modification History:
* Date Name Description
*
* 8/18/97 helena Added internal API documentation.
* 8/14/98 erm Synched with 1.2 version of PatternEntry.java
* 04/23/99 stephen Removed EDecompositionMode, merged with
* Normalizer::EMode
*/
#ifndef PTNENTRY_H #ifndef PTNENTRY_H
#define PTNENTRY_H #define PTNENTRY_H
@ -11,23 +20,17 @@
#include "unicode/coll.h" #include "unicode/coll.h"
#include "unicode/normlzr.h" #include "unicode/normlzr.h"
/* forward declarations */
class MergeCollation;
class PointerToPatternEntry;
class VectorOfPointersToPatternEntry;
/** /**
* *
* Utility class for normalizing and merging patterns for collation. * Utility class for normalizing and merging patterns for collation.
* This is to be used with MergeCollation for adding patterns to an * This is to be used with MergeCollation for adding patterns to an
* existing rule table. * existing rule table.
*/ */
/*
* Created by: Mark Davis, Helena Shih
*
* Modification History:
* Date Name Description
*
* 8/18/97 helena Added internal API documentation.
* 8/14/98 erm Synched with 1.2 version of PatternEntry.java
* 04/23/99 stephen Removed EDecompositionMode, merged with
* Normalizer::EMode
*/
class PatternEntry class PatternEntry
{ {

View File

@ -14,6 +14,11 @@
#include "unicode/unistr.h" #include "unicode/unistr.h"
#include "unicode/brkiter.h" #include "unicode/brkiter.h"
#include "filestrm.h" #include "filestrm.h"
/* forward declarations */
class RuleBasedBreakIterator;
class DictionaryBasedBreakIterator;
/** /**
* This class contains the internal static tables that are used by the * This class contains the internal static tables that are used by the
* RuleBasedBreakIterator. Once created, these tables are immutable, * RuleBasedBreakIterator. Once created, these tables are immutable,

View File

@ -318,6 +318,8 @@ class VectorOfPointer {
// Noted by Helena Shih on 6/23/97 with pending design changes (slimming collation). // Noted by Helena Shih on 6/23/97 with pending design changes (slimming collation).
//================================================================================================= //=================================================================================================
class VectorOfPToExpandTable;
/** /**
* PToExpandTable is a smart-pointer to a VectorOfInt that is used to store * PToExpandTable is a smart-pointer to a VectorOfInt that is used to store
* the collation orders that are the result of an expansion. * the collation orders that are the result of an expansion.
@ -486,6 +488,8 @@ class VectorOfPToExpandTable {
bool_t fBogus; bool_t fBogus;
}; };
class VectorOfPToContractElement;
/** /**
* PToContractElement is a smart-pointer to an array that is used to store * PToContractElement is a smart-pointer to an array that is used to store
* the contracting-character strings that are associated with a given Unicode character. * the contracting-character strings that are associated with a given Unicode character.
@ -660,6 +664,8 @@ class VectorOfPToContractElement {
bool_t fBogus; bool_t fBogus;
}; };
class VectorOfPToContractTable;
/** /**
* Pointer to each contracing element list. * Pointer to each contracing element list.
*/ */
@ -818,6 +824,7 @@ class VectorOfPToContractTable {
}; };
class PatternEntry; class PatternEntry;
class VectorOfPointersToPatternEntry;
/** /**
* Proxy class for accessing elements of a VectorOfPointersToPatternEntry * Proxy class for accessing elements of a VectorOfPointersToPatternEntry

View File

@ -40,6 +40,8 @@
class VectorOfPToContractTable; class VectorOfPToContractTable;
class VectorOfPToExpandTable; class VectorOfPToExpandTable;
class RuleBasedCollator;
class CollationElementIterator;
//============================================================================= //=============================================================================
@ -115,7 +117,7 @@ private:
* to change, although this is not really advised. * to change, although this is not really advised.
*/ */
friend class RuleBasedCollator; friend class RuleBasedCollator;
friend class CollationElementIterator; friend class CollationElementIterator;
bool_t isFrenchSec; bool_t isFrenchSec;
int16_t maxSecOrder; int16_t maxSecOrder;

View File

@ -31,6 +31,7 @@
class Normalizer; class Normalizer;
class VectorOfPToContractElement; class VectorOfPToContractElement;
class RuleBasedCollator;
/** /**
* The CollationElementIterator class is used as an iterator to walk through * The CollationElementIterator class is used as an iterator to walk through

View File

@ -13,6 +13,9 @@
#include "unicode/rbbi.h" #include "unicode/rbbi.h"
/* forward declaration */
class DictionaryBasedBreakIteratorTables;
/** /**
* A subclass of RuleBasedBreakIterator that adds the ability to use a dictionary * A subclass of RuleBasedBreakIterator that adds the ability to use a dictionary
* to further subdivide ranges of text beyond what is possible using just the * to further subdivide ranges of text beyond what is possible using just the

View File

@ -21,6 +21,9 @@
#include "unicode/utypes.h" #include "unicode/utypes.h"
#include "unicode/locid.h" #include "unicode/locid.h"
/* forward declaration */
class SimpleDateFormat;
/** /**
* DateFormatSymbols is a public class for encapsulating localizable date-time * DateFormatSymbols is a public class for encapsulating localizable date-time
* formatting data -- including timezone data. DateFormatSymbols is used by * formatting data -- including timezone data. DateFormatSymbols is used by

View File

@ -14,6 +14,8 @@
#include "unicode/brkiter.h" #include "unicode/brkiter.h"
class RuleBasedBreakIteratorTables; class RuleBasedBreakIteratorTables;
class BreakIterator;
/** /**
* <p>A subclass of BreakIterator whose behavior is specified using a list of rules.</p> * <p>A subclass of BreakIterator whose behavior is specified using a list of rules.</p>
* *

View File

@ -27,6 +27,7 @@
struct StandardZone; struct StandardZone;
struct DSTZone; struct DSTZone;
class TimeZone;
/** /**
* <code>SimpleTimeZone</code> is a concrete subclass of <code>TimeZone</code> * <code>SimpleTimeZone</code> is a concrete subclass of <code>TimeZone</code>

View File

@ -25,7 +25,9 @@
#include "unicode/utypes.h" #include "unicode/utypes.h"
#include "unicode/datefmt.h" #include "unicode/datefmt.h"
class DateFormatSymbols; class DateFormatSymbols;
class DateFormat;
/** /**
* SimpleDateFormat is a concrete class for formatting and parsing dates in a * SimpleDateFormat is a concrete class for formatting and parsing dates in a

View File

@ -27,6 +27,8 @@
#include "unicode/unistr.h" #include "unicode/unistr.h"
#include "unicode/coll.h" #include "unicode/coll.h"
/* forward declaration */
class RuleBasedCollator;
/** /**
* Collation keys are generated by the Collator class. Use the CollationKey objects * Collation keys are generated by the Collator class. Use the CollationKey objects

View File

@ -64,6 +64,8 @@ class MergeCollation;
class CollationElementIterator; class CollationElementIterator;
class RuleBasedCollatorStreamer; class RuleBasedCollatorStreamer;
class NormalizerIterator; // see tblcoll.cpp class NormalizerIterator; // see tblcoll.cpp
class Collator;
class TableCollationData;
/** /**
* The RuleBasedCollator class provides the simple implementation of Collator, * The RuleBasedCollator class provides the simple implementation of Collator,

View File

@ -15,6 +15,7 @@ class UnicodeFilter;
class TransliterationRuleData; class TransliterationRuleData;
struct UHashtable; struct UHashtable;
class U_I18N_API UVector; class U_I18N_API UVector;
class CompoundTransliterator;
/** /**
* <code>Transliterator</code> is an abstract class that * <code>Transliterator</code> is an abstract class that

View File

@ -15,6 +15,8 @@
class ParsePosition; class ParsePosition;
class TransliterationRuleData; class TransliterationRuleData;
class TransliterationRuleParser;
class TransliterationRule;
/** /**
* A mutable set of Unicode characters. Objects of this class * A mutable set of Unicode characters. Objects of this class