X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/fd0068a84e9996f225edba706498f6ed413d0673..46f4442e9a5a4f3b98b7c1083586332f6a8a99a4:/icuSources/common/unicode/rbbi.h?ds=sidebyside diff --git a/icuSources/common/unicode/rbbi.h b/icuSources/common/unicode/rbbi.h index 51bab4b1..90ec6e6b 100644 --- a/icuSources/common/unicode/rbbi.h +++ b/icuSources/common/unicode/rbbi.h @@ -1,6 +1,6 @@ /* *************************************************************************** -* Copyright (C) 1999-2006 International Business Machines Corporation * +* Copyright (C) 1999-2008 International Business Machines Corporation * * and others. All rights reserved. * *************************************************************************** @@ -170,6 +170,18 @@ protected: // constructors //======================================================================= + /** + * Constant to be used in the constructor + * RuleBasedBreakIterator(RBBIDataHeader*, EDontAdopt, UErrorCode &); + * which does not adopt the memory indicated by the RBBIDataHeader* + * parameter. + * + * @internal + */ + enum EDontAdopt { + kDontAdopt + }; + /** * Constructor from a flattened set of RBBI data in malloced memory. * RulesBasedBreakIterators built from a custom set of rules @@ -182,6 +194,16 @@ protected: */ RuleBasedBreakIterator(RBBIDataHeader* data, UErrorCode &status); + /** + * Constructor from a flattened set of RBBI data in memory which need not + * be malloced (e.g. it may be a memory-mapped file, etc.). + * + * This version does not adopt the memory, and does not + * free it when done. + * @internal + */ + RuleBasedBreakIterator(const RBBIDataHeader* data, enum EDontAdopt dontAdopt, UErrorCode &status); + friend class RBBIRuleBuilder; /** @internal */ @@ -336,7 +358,7 @@ public: * @param status receives any error codes. * @return The current UText for this break iterator. If an input * UText was provided, it will always be returned. - * @draft ICU 3.4 + * @stable ICU 3.4 */ virtual UText *getUText(UText *fillIn, UErrorCode &status) const; @@ -368,7 +390,7 @@ public: * * @param text The UText used to change the text. * @param status Receives any error codes. - * @draft ICU 3.4 + * @stable ICU 3.4 */ virtual void setText(UText *text, UErrorCode &status);