/*
*******************************************************************************
*
-* Copyright (C) 2011-2013 International Business Machines
+* Copyright (C) 2011-2014 International Business Machines
* Corporation and others. All Rights Reserved.
*
*******************************************************************************
#include "unicode/uobject.h"
#include "unicode/locid.h"
-
-#if !UCONFIG_NO_COLLATION && !UCONFIG_NO_NORMALIZATION
+#if !UCONFIG_NO_COLLATION
/**
* \file
*/
class U_I18N_API AlphabeticIndex: public UObject {
public:
-#ifdef U_HIDE_DRAFT_API
- class Bucket;
-#else
/**
* An index "bucket" with a label string and type.
* It is referenced by getBucketIndex(),
* and returned by ImmutableIndex.getBucket().
*
* The Bucket class is not intended for public subclassing.
- * @draft ICU 51
+ * @stable ICU 51
*/
class U_I18N_API Bucket : public UObject {
public:
/**
* Destructor.
- * @draft ICU 51
+ * @stable ICU 51
*/
virtual ~Bucket();
* Returns the label string.
*
* @return the label string for the bucket
- * @draft ICU 51
+ * @stable ICU 51
*/
const UnicodeString &getLabel() const { return label_; }
/**
* Returns whether this bucket is a normal, underflow, overflow, or inflow bucket.
*
* @return the bucket label type
- * @draft ICU 51
+ * @stable ICU 51
*/
UAlphabeticIndexLabelType getLabelType() const { return labelType_; }
*
* The ImmutableIndex class is not intended for public subclassing.
*
- * @draft ICU 51
+ * @stable ICU 51
*/
class U_I18N_API ImmutableIndex : public UObject {
public:
/**
* Destructor.
- * @draft ICU 51
+ * @stable ICU 51
*/
virtual ~ImmutableIndex();
* Returns the number of index buckets and labels, including underflow/inflow/overflow.
*
* @return the number of index buckets
- * @draft ICU 51
+ * @stable ICU 51
*/
int32_t getBucketCount() const;
*
* @param name the string to be sorted into an index bucket
* @return the bucket number for the name
- * @draft ICU 51
+ * @stable ICU 51
*/
int32_t getBucketIndex(const UnicodeString &name, UErrorCode &errorCode) const;
*
* @param index bucket number
* @return the index-th bucket
- * @draft ICU 51
+ * @stable ICU 51
*/
const Bucket *getBucket(int32_t index) const;
BucketList *buckets_;
Collator *collatorPrimaryOnly_;
};
-#endif /* U_HIDE_DRAFT_API */
/**
* Construct an AlphabeticIndex object for the specified locale. If the locale's
*/
AlphabeticIndex(const Locale &locale, UErrorCode &status);
-#ifndef U_HIDE_DRAFT_API
/**
* Construct an AlphabeticIndex that uses a specific collator.
*
* @param collator The collator to use to order the contents of this index.
* @param status Error code, will be set with the reason if the
* operation fails.
- * @draft ICU 51
+ * @stable ICU 51
*/
AlphabeticIndex(RuleBasedCollator *collator, UErrorCode &status);
-#endif /* U_HIDE_DRAFT_API */
/**
* Add Labels to this Index. The labels are additions to those
*/
virtual ~AlphabeticIndex();
-#ifndef U_HIDE_DRAFT_API
/**
* Builds an immutable, thread-safe version of this instance, without data records.
*
* @return an immutable index instance
- * @draft ICU 51
+ * @stable ICU 51
*/
ImmutableIndex *buildImmutableIndex(UErrorCode &errorCode);
-#endif /* U_HIDE_DRAFT_API */
/**
* Get the Collator that establishes the ordering of the items in this index.
U_NAMESPACE_END
-#endif /* UCONFIG_NO_COLLATION / UCONFIG_NO_NORMALIZATION */
+#endif // !UCONFIG_NO_COLLATION
#endif