| 34 | CString value; //!< values and comments (with leading ; or //) |
| 35 | |
| 36 | bool IsComment( void ) const |
| 37 | { |
| 38 | const char *pBegin=value.GetString(); |
| 39 | while(*pBegin==' ' || *pBegin=='\t')pBegin++; |
| 40 | |
| 41 | // "//" (comment) |
| 42 | if(pBegin[0]=='/' && pBegin[1]=='/')return(true); |
| 43 | |
| 44 | // ';' (comment) |
| 45 | if(pBegin[0] == ';')return(true); |
| 46 | |
| 47 | // emptyline (comment) |
| 48 | if(pBegin[0]==0)return(true); |
| 49 | |
| 50 | return(false); |
| 51 | } |
| 52 | }; |
| 53 | |
| 54 | //! constructor |
no test coverage detected