error = "bad character, not in [a-zA-Z_-]";
error = "bad character, not in [a-zA-Z0-9_-]";
get_attr_name(const char *input) {	int lpc = 0;	char ch = 0;	const char *error = NULL;		for(lpc = 0; error == NULL && lpc < (ssize_t)strlen(input); lpc++) {		ch = input[lpc];		crm_debug_5("Processing char %c[%d]", ch, lpc);		switch(ch) {			case 0:				error = "unexpected EOS"; 				break;			case '\t':			case '\n':			case ' ':				error = "unexpected whitespace"; 				break;			case '=':				return lpc;			default:				if('a' <= ch && ch <= 'z') {				} else if('A' <= ch && ch <= 'Z') {				} else if(ch == '_') {				} else if(ch == '-') {				} else {					error = "bad character, not in [a-zA-Z_-]";				} 				break;		}	}	crm_err("Error parsing token near %.15s: %s", input, crm_str(error));	return -1;}