package Common;
import Common.Utils.Vector_;

import java.util.Vector;
import java.util.regex.Pattern;
public class CommonConstants {
    public static final int Nan = -1;
    public static final Pattern VALID_EMAIL_ADDRESS_REGEX =
            Pattern.compile("^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,6}$", Pattern.CASE_INSENSITIVE);
    //--
    //-файлы-признаки
    public static final String LOADED = "LOADED";
    public static final String STARTED = "STARTED";
    public static final String ABORTED = "ABORTED";
    public static final String INTERRUPT = "INTERRUPT"; //файл признак прерывания.
    public final static String DONE = "DONE";
    public final static String TIMEOUT = "TIMEOUT";
    //--
    public static char[] regular_metasymbols = new char[]{
            '<', '>', '(', ')', '[', ']', '{', '}', '^', '-', '=', '$', '!', '|', '?', '*', '+', '.'
    };
    public static char toStrike = (char) 822;
    public static char boop = (char) 7;
    public static Vector<Character> forbidden_file_name_characters = new Vector_<>(
            '#', '%', '&', '{', '}',
            '<', '>', '*', '?', '!',
            '$', '\'', '\"', '@', '+',
            '`', '|', '=', '#', ':', '/', '\\',
            '~', '^'
    );
}
