Analyser/Is_Pipe_Marker [ Functions ]
NAME
Is_Pipe_Marker
FUNCTION
Check for "pipe" markers e.g. "|html ".
SYNOPSIS
static char *Is_Pipe_Marker( char *cur_char, int *pipe_mode )
RESULT
Pointer to the data to be piped to document or in case no pointers are found.
SEE ALSO
RB_Check_Pipe
SOURCE
{ char *s = cur_char + 1; *pipe_mode = -1; if ( *cur_char == '|' && *s ) { if ( strncmp( "html ", s, 5 ) == 0 ) { *pipe_mode = HTML; return ( s + 5 ); } else if ( strncmp( "latex ", s, 6 ) == 0 ) { *pipe_mode = LATEX; return ( s + 6 ); } else if ( strncmp( "rtf ", s, 4 ) == 0 ) { *pipe_mode = RTF; return ( s + 4 ); } else if ( strncmp( "dbxml ", s, 6 ) == 0 ) { *pipe_mode = XMLDOCBOOK; return ( s + 6 ); } else if ( strncmp( "ascii ", s, 6 ) == 0 ) { *pipe_mode = ASCII; return ( s + 6 ); } } return ( char * ) NULL; }