+ *
+ * @param text A UText representing the text. The iterator is left at
+ * the end of the run of characters which the engine is capable of handling
+ * that starts from the first (or last) character in the range.
+ * @param startPos The start of the run within the supplied text.
+ * @param endPos The end of the run within the supplied text.
+ * @param reverse Whether the caller is looking for breaks in a reverse
+ * direction.
+ * @param breakType The type of break desired, or -1.
+ * @param foundBreaks An allocated C array of the breaks found, if any
+ * @return The number of breaks found.
+ */
+ virtual int32_t findBreaks( UText *text,
+ int32_t startPos,
+ int32_t endPos,
+ UBool reverse,
+ int32_t breakType,
+ UStack &foundBreaks ) const;
+
+protected:
+
+ /**
+ *

- *
- * @param ds Pointer to UDataSwapper containing global data about the
- * transformation and function pointers for handling primitive
- * types.
- * @param inData Pointer to the input data to be transformed or examined.
- * @param length Length of the data, counting bytes. May be -1 for preflighting.
- * If length>=0, then transform the data.
- * If length==-1, then only determine the length of the data.
- * The length cannot be determined from the data itself for all
- * types of data (e.g., not for simple arrays of integers).
- * @param outData Pointer to the output data buffer.
- * If length>=0 (transformation), then the output buffer must
- * have a capacity of at least length.
- * If length==-1, then outData will not be used and can be NULL.
- * @param pErrorCode ICU UErrorCode parameter, must not be NULL and must
- * fulfill U_SUCCESS on input.
- * @return The actual length of the data.
- *
- * @see UDataSwapper
- */
+/**
+ *

+ *
+ * @param median A UChar around which to balance the trie. Ideally, it should
+ * begin at least one word that is near the median of the set in the dictionary
+ * @param status A status code recording the success of the call.
+ * @param containsValue True if the dictionary stores values associated with each word.
+ */
+ MutableTrieDictionary( UChar median, UErrorCode &status, UBool containsValue = FALSE );
+
+ /**
+ *

- *
- * @param median A UChar around which to balance the trie. Ideally, it should
- * begin at least one word that is near the median of the set in the dictionary
- * @param status A status code recording the success of the call.
- */
- MutableTrieDictionary( UChar median, UErrorCode &status );
-
- /**
- *

Virtual destructor.

- */
- virtual ~MutableTrieDictionary();
-
- /**
- *

Find dictionary words that match the text.

- *
- * @param text A UText representing the text. The
- * iterator is left after the longest prefix match in the dictionary.
- * @param maxLength The maximum number of code units to match.
- * @param lengths An array that is filled with the lengths of words that matched.
- * @param count Filled with the number of elements output in lengths.
- * @param limit The size of the lengths array; this limits the number of words output.
- * @return The number of characters in text that were matched.
- */
- virtual int32_t matches( UText *text,
- int32_t maxLength,
- int32_t *lengths,
- int &count,
- int limit ) const;
-
- /**
- *

Return a StringEnumeration for iterating all the words in the dictionary.