text/verify/m_verify.c
/* these are only allowed if inside quotes */
these are only allowed if inside quotes
these are only allowed if inside quotes
static M_bool is_escaped(const char *str, const char *str_pos, char escape)
{
	size_t escape_count;
	escape_count = 0;
	while (str_pos > str && *(str_pos - 1) == escape) {
		escape_count++;
		str_pos--;
	}
	return (escape_count % 2 == 1)? M_TRUE : M_FALSE;
}
static M_bool is_escaped ( const char * str , const char * str_pos , char escape ) { size_t escape_count ; escape_count = 0 ; while ( str_pos > str && * ( str_pos - 1 ) == escape ) { escape_count ++ ; str_pos -- ; } return ( escape_count % 2 == 1 ) ? M_TRUE : M_FALSE ; }
these are only allowed if inside quotes
these are only allowed if inside quotes
/* NOTE: an escape character may escape itself. So, we have to count the number of escape characters
	 *       before the current character, in order to determine if this character is escaped.
	 * 
	 * Ex: \\\" --> " is escaped by \
	 *     \\"  --> " is not escaped
	 *     \"   --> " is escaped by \
	 */ /* Count the number of escapes before the current character. */ /* If the current char is preceeded by an odd number of escapes, this character is escaped. */