public class LineBreakStatus
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static byte |
COMBINING_INDIRECT_BREAK |
Constant indicating a Combining Indirect Break
|
static byte |
COMBINING_PROHIBITED_BREAK |
Constant indicating a Combining Prohibited Break
|
static byte |
DIRECT_BREAK |
Constant indicating a Direct Break
|
static byte |
EXPLICIT_BREAK |
Constant indicating a Explicit Break
|
static byte |
INDIRECT_BREAK |
Constant indicating an Indirect Break
|
static byte |
PROHIBITED_BREAK |
Constant indicating a Prohibited Break
|
Constructor | Description |
---|---|
LineBreakStatus() |
Resets the class to the same state as if new LineBreakStatus() had just been called.
|
Modifier and Type | Method | Description |
---|---|---|
byte |
nextChar(char c) |
Check whether a line break may happen according to the rules described in
the Unicode Line Breaking
Algorithm.
|
void |
reset() |
Reset the status.
|
public static final byte DIRECT_BREAK
public static final byte INDIRECT_BREAK
public static final byte COMBINING_INDIRECT_BREAK
public static final byte COMBINING_PROHIBITED_BREAK
public static final byte PROHIBITED_BREAK
public static final byte EXPLICIT_BREAK
public LineBreakStatus()
public void reset()
public byte nextChar(char c)
LineBreakUtils
.
TODO: Better handling for AI, SA, SG and XX line break classes.c
- the character to checkDIRECT_BREAK
,
INDIRECT_BREAK
,
COMBINING_INDIRECT_BREAK
,
COMBINING_PROHIBITED_BREAK
,
PROHIBITED_BREAK
,
EXPLICIT_BREAK
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.