MCPcopy Create free account
hub / github.com/davisking/dlib / is_formal_comment

Function is_formal_comment

tools/htmlify/to_xml.cpp:235–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233// ----------------------------------------------------------------------------------------
234
235bool is_formal_comment (
236 const string& str
237)
238{
239 if (str.size() < 6)
240 return false;
241
242 if (str[0] == '/' &&
243 str[1] == '*' &&
244 str[2] == '!' &&
245 str[3] != 'P' &&
246 str[3] != 'p' &&
247 str[str.size()-3] == '!' &&
248 str[str.size()-2] == '*' &&
249 str[str.size()-1] == '/' )
250 return true;
251
252 return false;
253}
254
255// ----------------------------------------------------------------------------------------
256

Callers 1

process_fileFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected