/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 2003-2011 AT&T Intellectual Property *
* and is licensed under the *
* Eclipse Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Phong Vo <kpv@research.att.com> *
* *
***********************************************************************/
#include "vchdr.h"
/* Stripping head and tail data.
**
** Written by Kiem-Phong Vo (kpv@research.att.com)
*/
typedef struct _strip_s
{ int type;
} Strip_t;
{ 0, "Not stripping anything, only processing 'nl' if specified", (Void_t*)0 }
};
#if __STD_C
#else
#endif
{
return -1;
/* set valid interval of data to be processed */
else /* dealing with lines of text */
break;
}
/* find an appropriate head amount to strip */
if(*dt == '\n')
break;
break;
}
}
else
}
/* find an appropriate tail amount to strip */
break;
break;
}
}
else
}
/* recode the middle part of the data */
RETURN(-1);
/* allocate output buffer */
RETURN(-1);
/* write out the transformed data */
if(out)
return z;
}
#if __STD_C
#else
#endif
{
if(!vc)
return -1;
RETURN(-1);
RETURN(-1);
RETURN(-1);
RETURN(-1);
RETURN(-1);
if(out)
return z;
}
#if __STD_C
#else
int type;
#endif
{
if(type == VC_OPENING)
return -1;
{
case ST_LINE:
break;
case ST_HEAD:
break;
case ST_TAIL:
break;
}
}
}
else if(type == VC_CLOSING)
}
return 0;
}
{ strip,
"strip", "Strip head and tail data.",
"[-version?strip (AT&T Research) 2009-03-12]" USAGE_LICENSE,
1024*1024,
0
};