UBOOL ParseParam( const TCHAR* Stream, const TCHAR* Param, UBOOL bAllowQuoted ) { const TCHAR* Start = Stream; if( *Stream ) { while( (Start = appStrfind(Start + 1,Param)) != NULL ) { if( Start > Stream && (Start[-1] == '-' || Start[-1] == '/') ) { const TCHAR* End = Start + appStrlen(Param); if ( End == NULL || *End == 0 || appIsWhitespace(*End) ) { return TRUE; } if( bAllowQuoted ) { if( Start[-2] == '\"' && *End == '\"' ) { return TRUE; } } } } } return FALSE; }