model_server/project_file/src/char_based_merge.cxx
// returns: 1 if there are just whites
//          0 on a first non white char
1 if there are just whites
0 on a first non white char
1 if there are just whites 0 on a first non white char
static int mrg_is_just_whites (const char *txt, int len)
{
    Initialize(mrg_is_just_whites);
    int ret = 1;
    if (!txt || !len) return ret;
    for (int i = 0 ; i < len ; i ++) {
	if (!isspace(txt[i])) {
	    ret = 0;
	    break;
	}
    }
    return ret;
}
static int mrg_is_just_whites ( const char * txt , int len ) { Initialize ( mrg_is_just_whites ) ; int ret = 1 ; if ( ! txt || ! len ) return ret ; for ( int i = 0 ; i < len ; i ++ ) { if ( ! isspace ( txt [ i ] ) ) { ret = 0 ; break ; } } return ret ; }
returns: 1 if there are just whites
0 on a first non white char
returns : 1 if there are just whites 0 on a first non white char