jcfunc
Class Sequences

java.lang.Object
  extended by jcfunc.Sequences

public class Sequences
extends java.lang.Object

Class Sequencies stores subsets of control functions, patterns and methods to work with them. see "Standart ECMA-48 Control functions for coded characters sets"


Nested Class Summary
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
 
Field Summary
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 Summary
Sequences()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODE_7BIT

public static final int MODE_7BIT
Control functions are reprsented in 7-bit code

See Also:
Constant Field Values

MODE_8BIT

public static final int MODE_8BIT
Control functions are reprsented in 8-bit code

See Also:
Constant Field Values
Constructor Detail

Sequences

public Sequences()
Method Detail

generateFullWorkingSet

public static java.util.EnumMap<CF,Sequences.Record> generateFullWorkingSet()
Returns map of Records. Map contains information about ALL control functions.


generateWorkingSet

public static java.util.EnumMap<CF,Sequences.Record> generateWorkingSet(CF... args)
Returns map of Records. Map contains information about SELECTED control functions only. If array of control functions is empty - returned Map is empty too.

Parameters:
args - array of control functions

getCFPattern

public static java.lang.String getCFPattern(CF cmd,
                                            int mode)
Returns control function's RegExp-pattern.

Parameters:
cmd - control function
mode - mode of control function's repersentation, MODE_7BIT and MODE_8BIT

getCommonCFPattern

public static java.lang.String getCommonCFPattern(int mode,
                                                  boolean exceptLF_CR)
Returns common control function's RegExp-pattern, which matches any sequence.

Parameters:
mode - mode of control function's repersentation, MODE_7BIT or MODE_8BIT
exceptLF_CR - enables skipping following symbols: Line Feed and Carriage Return

getCommonCFPattern

public 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.

Parameters:
mode - mode of control function's repersentation, MODE_7BIT or MODE_8BIT
exclC0Set - array of excluded C0-functions
exclC1Set - array of excluded C1-functions
exclSymSet - array of excluded symbols (from CSI-functions)