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
@ -33,6 +33,9 @@ class Locale;
//
/////////////////////////////////////////////////
/* forward declaration */
class ILcidPosixMap;
class ILcidPosixElement
{
public:

View File

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

View File

@ -60,6 +60,26 @@ class VisitedFileCache;
typedef struct _FileStream FileStream;
#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
* locale. A resource bundle provides a way of accessing locale- specfic information in

View File

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

View File

@ -14,6 +14,9 @@
#include "rbbi_tbl.h"
#include "brkdict.h"
/* forward declaration */
class DictionaryBasedBreakIterator;
/**
* This subclass of RuleBasedBreakIteratorTables contains the additional
* 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.
******************************************************************************
*/
******************************************************************************
* 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
#define PTNENTRY_H
@ -11,23 +20,17 @@
#include "unicode/coll.h"
#include "unicode/normlzr.h"
/* forward declarations */
class MergeCollation;
class PointerToPatternEntry;
class VectorOfPointersToPatternEntry;
/**
*
* Utility class for normalizing and merging patterns for collation.
* This is to be used with MergeCollation for adding patterns to an
* 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
{

View File

@ -14,6 +14,11 @@
#include "unicode/unistr.h"
#include "unicode/brkiter.h"
#include "filestrm.h"
/* forward declarations */
class RuleBasedBreakIterator;
class DictionaryBasedBreakIterator;
/**
* This class contains the internal static tables that are used by the
* 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).
//=================================================================================================
class VectorOfPToExpandTable;
/**
* PToExpandTable is a smart-pointer to a VectorOfInt that is used to store
* the collation orders that are the result of an expansion.
@ -486,6 +488,8 @@ class VectorOfPToExpandTable {
bool_t fBogus;
};
class VectorOfPToContractElement;
/**
* 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.
@ -660,6 +664,8 @@ class VectorOfPToContractElement {
bool_t fBogus;
};
class VectorOfPToContractTable;
/**
* Pointer to each contracing element list.
*/
@ -818,6 +824,7 @@ class VectorOfPToContractTable {
};
class PatternEntry;
class VectorOfPointersToPatternEntry;
/**
* Proxy class for accessing elements of a VectorOfPointersToPatternEntry

View File

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

View File

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

View File

@ -13,6 +13,9 @@
#include "unicode/rbbi.h"
/* forward declaration */
class DictionaryBasedBreakIteratorTables;
/**
* 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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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