MCPcopy Create free account
hub / github.com/JetBrains/skija / BreakIterator

Class BreakIterator

shared/java/BreakIterator.java:191–550  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

staticLoadMethod · 0.95

Tested by

no test coverage detected