public class Sequences
extends java.lang.Object
Sequencies
stores subsets of control functions, patterns
and methods to work with them.
see
"Standart ECMA-48 Control functions for coded characters sets"Modifier and Type | Class and Description |
---|---|
static class |
Sequences.C0
Control function of C0-set
|
static class |
Sequences.C1
Control function of C1-set
|
static class |
Sequences.Record
Class
Record stores RegExp-patterns. |
static class |
Sequences.Sym
Additional symbols
|
Modifier and Type | Field and Description |
---|---|
static int |
MODE_7BIT
Control functions are reprsented in 7-bit code
|
static int |
MODE_8BIT
Control functions are reprsented in 8-bit code
|
Constructor and Description |
---|
Sequences() |
Modifier and Type | Method and Description |
---|---|
static java.util.EnumMap<CF,Sequences.Record> |
generateFullWorkingSet()
Returns map of Records.
|
static java.util.EnumMap<CF,Sequences.Record> |
generateWorkingSet(CF... args)
Returns map of Records.
|
static java.lang.String |
getCFPattern(CF cmd,
int mode)
Returns control function's RegExp-pattern.
|
static java.lang.String |
getCommonCFPattern(int mode,
boolean exceptLF_CR)
Returns common control function's RegExp-pattern, which matches any sequence.
|
static java.lang.String |
getCommonCFPattern(int mode,
Sequences.C0[] exclC0Set,
Sequences.C1[] exclC1Set,
Sequences.Sym[] exclSymSet)
Returns common control function's RegExp-pattern, which matches any sequence.
|
public static final int MODE_7BIT
public static final int MODE_8BIT
public static java.util.EnumMap<CF,Sequences.Record> generateFullWorkingSet()
public static java.util.EnumMap<CF,Sequences.Record> generateWorkingSet(CF... args)
args
- array of control functionspublic static java.lang.String getCFPattern(CF cmd, int mode)
cmd
- control functionmode
- mode of control function's repersentation, MODE_7BIT and MODE_8BITpublic static java.lang.String getCommonCFPattern(int mode, boolean exceptLF_CR)
mode
- mode of control function's repersentation, MODE_7BIT or MODE_8BITexceptLF_CR
- enables skipping following symbols: Line Feed and Carriage Returnpublic static java.lang.String getCommonCFPattern(int mode, Sequences.C0[] exclC0Set, Sequences.C1[] exclC1Set, Sequences.Sym[] exclSymSet)
mode
- mode of control function's repersentation, MODE_7BIT or MODE_8BITexclC0Set
- array of excluded C0-functionsexclC1Set
- array of excluded C1-functionsexclSymSet
- array of excluded symbols (from CSI-functions)