MCPcopy Create free account
hub / github.com/StrongPC123/Far-Cry-1-Source-Full / IsComment

Method IsComment

ResourceCompiler/CfgFile.h:36–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 3

UpdateOrCreateEntryMethod · 0.80
LoadBufMethod · 0.80
SetConfigMethod · 0.80

Calls 1

GetStringMethod · 0.45

Tested by

no test coverage detected