website/docs/ddoc/transport/handy_http_transport.helper...

35 lines
4.5 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<title>indexOf (handy_http_transport.helpers.indexOf)</title>
<meta charset="utf-8" />
<meta content="width=device-width, initial-scale=1" name="viewport" />
<link href="style.css" rel="stylesheet" />
<script src="script.js" type="text/javascript"></script>
<link href="search-results.html" rel="prefetch" />
</head>
<body>
<div id="page-header">
<div id="logotype">
<span>Documentation</span>
<nav>
<a href="http://dlang.org/">Dlang.org</a>
</nav>
</div>
<form action="search-docs.html" id="search">
<input name="searchTerm" placeholder="Find a symbol name..." type="search" />
<input type="submit" value="Go" />
</form>
</div>
<div id="page-body">
<div id="page-content">
<h1>indexOf</h1><div class="breadcrumbs"><a class="breadcrumb" href="handy_http_transport.html">handy_http_transport</a> <a class="breadcrumb" href="handy_http_transport.helpers.html">helpers</a> </div><div><div class="documentation-comment synopsis"><div><p>Internal helper function to get the first index of a character in a string.</p></div></div></div><div class="annotated-prototype"><div class="function-prototype"><div class="attributes"></div><div class="return-type"><span class="name" data-ident="ptrdiff_t">ptrdiff_t</span></div><div class="function-name">indexOf</div><div class="template-parameters" data-count="0"></div><div class="runtime-parameters" data-count="3"><div class="parameters-list toplevel"><span class="paren">(</span><div class="runtime-parameter-item parameter-item"><span class="parameter-type-holder"><span class="parameter-type"><span class="builtin-type">string</span></span></span> <span class="parameter-name name" data-ident="s"><a href="#param-s">s</a></span></div><span class="comma">,</span><div class="runtime-parameter-item parameter-item"><span class="parameter-type-holder"><span class="parameter-type"><span class="builtin-type">char</span></span></span> <span class="parameter-name name" data-ident="c"><a href="#param-c">c</a></span></div><span class="comma">,</span><div class="runtime-parameter-item parameter-item"><span class="parameter-type-holder"><span class="parameter-type"><span class="name" data-ident="size_t">size_t</span></span></span> <span class="parameter-name name" data-ident="offset"><a href="#param-offset">offset</a></span><span class="parameter-default-value">&#160;=&#160;0</span></div><span class="paren">)</span></div></div><div class="function-contracts"></div></div></div><div><h2 id="parameters"><a class="header-anchor" href="#parameters">Parameters</a></h2><dl class="parameter-descriptions"><dt id="param-s"><a class="parameter-name" data-ident="s" href="#param-s">s</a> <span class="parameter-type"><span class="builtin-type">string</span></span></dt><dd><div class="documentation-comment"><div><p>The string to look in.</p></div></div></dd><dt id="param-c"><a class="parameter-name" data-ident="c" href="#param-c">c</a> <span class="parameter-type"><span class="builtin-type">char</span></span></dt><dd><div class="documentation-comment"><div><p>The character to look for.</p></div></div></dd><dt id="param-offset"><a class="parameter-name" data-ident="offset" href="#param-offset">offset</a> <span class="parameter-type"><span class="name" data-ident="size_t">size_t</span></span></dt><dd><div class="documentation-comment"><div><p>An optional offset to look from.</p></div></div></dd></dl><h2 id="returns"><a class="header-anchor" href="#returns">Return Value</a></h2><div><div class="return-type-holder">Type: <span class="return-type"><span class="name" data-ident="ptrdiff_t">ptrdiff_t</span></span></div><div class="documentation-comment returns-description"><div><p>The index of the character, or -1.</p></div></div></div></div></div>
<div id="page-nav"><a class="parent" href="handy_http_transport.html">handy_http_transport</a> <a class="parent" href="handy_http_transport.helpers.html">helpers</a>
<span class="type-separator">functions</span><ul><li><a class="function" href="handy_http_transport.helpers.consumeUntil.html">consumeUntil</a></li><li><a class="function current" href="handy_http_transport.helpers.indexOf.html">indexOf</a></li><li><a class="function" href="handy_http_transport.helpers.stripSpaces.html">stripSpaces</a></li><li><a class="function" href="handy_http_transport.helpers.writeUIntToBuffer.html">writeUIntToBuffer</a></li></ul></div>
</div>
<div id="page-footer">Page generated by <a href="https://github.com/adamdruppe/adrdox">adrdox</a></div>
</body>
</html>