<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>ohcount: /Users/andy/dev/ohcount/src/detector.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.9 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="annotated.html"><span>Data Structures</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File List</span></a></li>
<li><a href="globals.html"><span>Globals</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>/Users/andy/dev/ohcount/src/detector.h File Reference</h1><code>#include "<a class="el" href="sourcefile_8h_source.html">sourcefile.h</a>"</code><br>
<p>
<a href="detector_8h_source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="detector_8h.html#2e687229992a2b4396c34bcc094a33f3">ohcount_detect_language</a> (<a class="el" href="structSourceFile.html">SourceFile</a> *sourcefile)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="detector_8h.html#dc3f3dc4a380b1a72d3a30bc4d88d016">ohcount_is_binary_filename</a> (const char *filename)</td></tr>
</table>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="2e687229992a2b4396c34bcc094a33f3"></a><!-- doxytag: member="detector.h::ohcount_detect_language" ref="2e687229992a2b4396c34bcc094a33f3" args="(SourceFile *sourcefile)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const char* ohcount_detect_language </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structSourceFile.html">SourceFile</a> * </td>
<td class="paramname"> <em>sourcefile</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Attempts to detect the programming language used by the given file. The returned pointer is used internally and must not be 'free'd. <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>sourcefile</em> </td><td>A <a class="el" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> created by <a class="el" href="sourcefile_8h.html#a2a2f198bc5d0cae789b7efc92717ea1">ohcount_sourcefile_new()</a>. </td></tr>
</table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>pointer to a string with the detected language or NULL. </dd></dl>
</div>
</div><p>
<a class="anchor" name="dc3f3dc4a380b1a72d3a30bc4d88d016"></a><!-- doxytag: member="detector.h::ohcount_is_binary_filename" ref="dc3f3dc4a380b1a72d3a30bc4d88d016" args="(const char *filename)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int ohcount_is_binary_filename </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"> <em>filename</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Aug 28 15:20:08 2009 for ohcount by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>
</body>
</html>