All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.onetwo.common.db.parser.SqlLexerUtils Maven / Gradle / Ivy

package org.onetwo.common.db.parser;

public class SqlLexerUtils {

	private static final boolean[] SQL_IDENTIFIERS = new boolean[256];
	static {
		for(char c=0; c='a' && c<='z'){
				SQL_IDENTIFIERS[c] = true;
			}else if(c>='A' && c<='Z'){
				SQL_IDENTIFIERS[c] = true;
			}else if(c>='0' && c<='9'){
				SQL_IDENTIFIERS[c]= true;
			}
		}
		SQL_IDENTIFIERS['_'] = true;
		SQL_IDENTIFIERS['.'] = true;
		SQL_IDENTIFIERS['*'] = true;
	}
	

	
	public static boolean isSqlIdentifier(char ch){
		return ch 




© 2015 - 2025 Weber Informatics LLC | Privacy Policy