src/table.c
static bool
isHeadLeftChar(char *str)
{
	const char *u1 = "\342\224\200";
	const char *u2 = "\342\225\220";

	const char *u3 = "\342\225\236"; /* ╞ */
	const char *u4 = "\342\224\234"; /* ├ */
	const char *u5 = "\342\225\240"; /* ╠ */
	const char *u6 = "\342\225\237"; /* ╟ */

	const char *u7 = "\342\224\214"; /* ┌ */
	const char *u8 = "\342\225\224"; /* ╔ */

	/* ascii */
	if ((str[0] == '+' || str[0] == '-') && str[1] == '-')
		return true;

	/* pgcli fmt */
	if (str[0] == '|' && str[1] == '-')
		return true;

	/* expanded border 1 */
	if (str[0] == '-' && str[1] == '[')
		return true;

	/* csv double header */
	if ((str[0] == ':' || str[0] == '=') && str[1] == '=')
		return true;

	/* monetdb */
	if (str[0] == '+' && str[1] == '=')
		return true;

	/* Oracle's SQLcli (ANSI CONSOLE) */
	if (str[0] == '_')
		return true;

	if (str[0] != '\342')
		return false;

	if (strncmp(str, u1, 3) == 0)
		return true;
	if (strncmp(str, u2, 3) == 0)
		return true;
	if (strncmp(str, u3, 3) == 0)
		return true;
	if (strncmp(str, u4, 3) == 0)
		return true;
	if (strncmp(str, u5, 3) == 0)
		return true;
	if (strncmp(str, u6, 3) == 0)
		return true;
	if (strncmp(str, u7, 3) == 0)
		return true;
	if (strncmp(str, u8, 3) == 0)
		return true;

	return false;
}
/*
 * Returns true when char is top left header char
 */
Returns true when char is top left header char
Returns true when char is top left header char
static bool
isHeadLeftChar(char *str)
{
	const char *u1 = "\342\224\200";
	const char *u2 = "\342\225\220";
	const char *u3 = "\342\225\236"; 
	const char *u4 = "\342\224\234"; 
	const char *u5 = "\342\225\240"; 
	const char *u6 = "\342\225\237"; 
	const char *u7 = "\342\224\214"; 
	const char *u8 = "\342\225\224"; 
	if ((str[0] == '+' || str[0] == '-') && str[1] == '-')
		return true;
	if (str[0] == '|' && str[1] == '-')
		return true;
	if (str[0] == '-' && str[1] == '[')
		return true;
	if ((str[0] == ':' || str[0] == '=') && str[1] == '=')
		return true;
	if (str[0] == '+' && str[1] == '=')
		return true;
	if (str[0] == '_')
		return true;
	if (str[0] != '\342')
		return false;
	if (strncmp(str, u1, 3) == 0)
		return true;
	if (strncmp(str, u2, 3) == 0)
		return true;
	if (strncmp(str, u3, 3) == 0)
		return true;
	if (strncmp(str, u4, 3) == 0)
		return true;
	if (strncmp(str, u5, 3) == 0)
		return true;
	if (strncmp(str, u6, 3) == 0)
		return true;
	if (strncmp(str, u7, 3) == 0)
		return true;
	if (strncmp(str, u8, 3) == 0)
		return true;
	return false;
}
static bool isHeadLeftChar ( char * str ) { const char * u1 = " \342 \224 \200 " ; const char * u2 = " \342 \225 \220 " ; const char * u3 = " \342 \225 \236 " ; const char * u4 = " \342 \224 \234 " ; const char * u5 = " \342 \225 \240 " ; const char * u6 = " \342 \225 \237 " ; const char * u7 = " \342 \224 \214 " ; const char * u8 = " \342 \225 \224 " ; if ( ( str [ 0 ] == ' ' || str [ 0 ] == ' ' ) && str [ 1 ] == ' ' ) return true ; if ( str [ 0 ] == ' ' && str [ 1 ] == ' ' ) return true ; if ( str [ 0 ] == ' ' && str [ 1 ] == ' ' ) return true ; if ( ( str [ 0 ] == ' ' || str [ 0 ] == ' ' ) && str [ 1 ] == ' ' ) return true ; if ( str [ 0 ] == ' ' && str [ 1 ] == ' ' ) return true ; if ( str [ 0 ] == ' ' ) return true ; if ( str [ 0 ] != ' \342 ' ) return false ; if ( strncmp ( str , u1 , 3 ) == 0 ) return true ; if ( strncmp ( str , u2 , 3 ) == 0 ) return true ; if ( strncmp ( str , u3 , 3 ) == 0 ) return true ; if ( strncmp ( str , u4 , 3 ) == 0 ) return true ; if ( strncmp ( str , u5 , 3 ) == 0 ) return true ; if ( strncmp ( str , u6 , 3 ) == 0 ) return true ; if ( strncmp ( str , u7 , 3 ) == 0 ) return true ; if ( strncmp ( str , u8 , 3 ) == 0 ) return true ; return false ; }
Returns true when char is top left header char
Returns true when char is top left header char
/* ╞ */ /* ├ */ /* ╠ */ /* ╟ */ /* ┌ */ /* ╔ */ /* ascii */ /* pgcli fmt */ /* expanded border 1 */ /* csv double header */ /* monetdb */ /* Oracle's SQLcli (ANSI CONSOLE) */