标签:
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; }
标签:
原文地址:http://www.cnblogs.com/sevenyuan/p/4500837.html