A class that locates boundaries in text. This class defines a protocol for objects that break up a piece of natural-language text according to a set of criteria. Instances or subclasses of BreakIterator can be provided, for example, to break a piece of text into words, sentences, or logical cha
| 188 | * </blockquote> |
| 189 | */ |
| 190 | public class BreakIterator extends Managed implements Cloneable { |
| 191 | static { Library.staticLoad(); } |
| 192 | |
| 193 | /** |
| 194 | * DONE is returned by previous() and next() after all valid |
| 195 | * boundaries have been returned. |
| 196 | */ |
| 197 | public static final int DONE = -1; |
| 198 | |
| 199 | /** |
| 200 | * Tag value for "words" that do not fit into any of other categories. |
| 201 | * Includes spaces and most punctuation. |
| 202 | */ |
| 203 | public static final int WORD_NONE = 0; |
| 204 | |
| 205 | /** |
| 206 | * Upper bound for tags for uncategorized words. |
| 207 | */ |
| 208 | public static final int WORD_NONE_LIMIT = 100; |
| 209 | |
| 210 | /** |
| 211 | * Tag value for words that appear to be numbers, lower limit. |
| 212 | */ |
| 213 | public static final int WORD_NUMBER = 100; |
| 214 | |
| 215 | /** |
| 216 | * Tag value for words that appear to be numbers, upper limit. |
| 217 | */ |
| 218 | public static final int WORD_NUMBER_LIMIT = 200; |
| 219 | |
| 220 | /** |
| 221 | * Tag value for words that contain letters, excluding |
| 222 | * hiragana, katakana or ideographic characters, lower limit. |
| 223 | */ |
| 224 | public static final int WORD_LETTER = 200; |
| 225 | |
| 226 | /** |
| 227 | * Tag value for words containing letters, upper limit |
| 228 | */ |
| 229 | public static final int WORD_LETTER_LIMIT = 300; |
| 230 | |
| 231 | /** |
| 232 | * Tag value for words containing kana characters, lower limit |
| 233 | */ |
| 234 | public static final int WORD_KANA = 300; |
| 235 | |
| 236 | /** |
| 237 | * Tag value for words containing kana characters, upper limit |
| 238 | */ |
| 239 | public static final int WORD_KANA_LIMIT = 400; |
| 240 | |
| 241 | /** |
| 242 | * Tag value for words containing ideographic characters, lower limit |
| 243 | */ |
| 244 | public static final int WORD_IDEO = 400; |
| 245 | |
| 246 | /** |
| 247 | * Tag value for words containing ideographic characters, upper limit |
nothing calls this directly
no test coverage detected