| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
- <meta http-equiv="X-UA-Compatible" content="IE=9"/>
- <meta name="generator" content="Doxygen 1.8.11"/>
- <title>GRPC C++: include/grpc++/impl/codegen/string_ref.h Source File</title>
- <link href="tabs.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="jquery.js"></script>
- <script type="text/javascript" src="dynsections.js"></script>
- <link href="search/search.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="search/searchdata.js"></script>
- <script type="text/javascript" src="search/search.js"></script>
- <script type="text/javascript">
- $(document).ready(function() { init_search(); });
- </script>
- <link href="doxygen.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
- <div id="titlearea">
- <table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
- <td id="projectalign" style="padding-left: 0.5em;">
- <div id="projectname">GRPC C++
-  <span id="projectnumber">1.0.0</span>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <!-- end header part -->
- <!-- Generated by Doxygen 1.8.11 -->
- <script type="text/javascript">
- var searchBox = new SearchBox("searchBox", "search",false,'Search');
- </script>
- <div id="navrow1" class="tabs">
- <ul class="tablist">
- <li><a href="index.html"><span>Main Page</span></a></li>
- <li><a href="modules.html"><span>Modules</span></a></li>
- <li><a href="namespaces.html"><span>Namespaces</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>
- <li>
- <div id="MSearchBox" class="MSearchBoxInactive">
- <span class="left">
- <img id="MSearchSelect" src="search/mag_sel.png"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- alt=""/>
- <input type="text" id="MSearchField" value="Search" accesskey="S"
- onfocus="searchBox.OnSearchFieldFocus(true)"
- onblur="searchBox.OnSearchFieldFocus(false)"
- onkeyup="searchBox.OnSearchFieldChange(event)"/>
- </span><span class="right">
- <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
- </span>
- </div>
- </li>
- </ul>
- </div>
- <div id="navrow2" class="tabs2">
- <ul class="tablist">
- <li><a href="files.html"><span>File List</span></a></li>
- <li><a href="globals.html"><span>Globals</span></a></li>
- </ul>
- </div>
- <!-- window showing the filter options -->
- <div id="MSearchSelectWindow"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- onkeydown="return searchBox.OnSearchSelectKey(event)">
- </div>
- <!-- iframe showing the search results (closed by default) -->
- <div id="MSearchResultsWindow">
- <iframe src="javascript:void(0)" frameborder="0"
- name="MSearchResults" id="MSearchResults">
- </iframe>
- </div>
- <div id="nav-path" class="navpath">
- <ul>
- <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_f1b2ab2a88927c1e950e43c1cf4b634b.html">grpc++</a></li><li class="navelem"><a class="el" href="dir_ac8b245a5921095c43c106649fd7bc4b.html">impl</a></li><li class="navelem"><a class="el" href="dir_a7c29f91546e182c0f2b46e2e51819eb.html">codegen</a></li> </ul>
- </div>
- </div><!-- top -->
- <div class="header">
- <div class="headertitle">
- <div class="title">string_ref.h</div> </div>
- </div><!--header-->
- <div class="contents">
- <a href="impl_2codegen_2string__ref_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> *</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * Copyright 2015, Google Inc.</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * All rights reserved.</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> *</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * Redistribution and use in source and binary forms, with or without</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * modification, are permitted provided that the following conditions are</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * met:</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> *</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * * Redistributions of source code must retain the above copyright</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * notice, this list of conditions and the following disclaimer.</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * * Redistributions in binary form must reproduce the above</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * copyright notice, this list of conditions and the following disclaimer</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * in the documentation and/or other materials provided with the</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> * distribution.</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * * Neither the name of Google Inc. nor the names of its</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> * contributors may be used to endorse or promote products derived from</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> * this software without specific prior written permission.</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> *</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment"> * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment"> * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment"> * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="comment"> * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="comment"> * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="comment"> * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="comment"> * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="comment"> * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="comment"> * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="comment"> *</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="comment"> */</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> </div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#ifndef GRPCXX_IMPL_CODEGEN_STRING_REF_H</span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor">#define GRPCXX_IMPL_CODEGEN_STRING_REF_H</span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="preprocessor">#include <string.h></span></div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> </div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="preprocessor">#include <algorithm></span></div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="preprocessor">#include <iosfwd></span></div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="preprocessor">#include <iostream></span></div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="preprocessor">#include <iterator></span></div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> </div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="preprocessor">#include <<a class="code" href="impl_2codegen_2config_8h.html">grpc++/impl/codegen/config.h</a>></span></div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> </div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="keyword">namespace </span><a class="code" href="namespacegrpc.html">grpc</a> {</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span> </div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="classgrpc_1_1string__ref.html"> 56</a></span> <span class="keyword">class </span><a class="code" href="classgrpc_1_1string__ref.html">string_ref</a> {</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="comment">// types</span></div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="classgrpc_1_1string__ref.html#acd3e9d9734c67f33a87b53c2eefe3913"> 59</a></span>  <span class="keyword">typedef</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classgrpc_1_1string__ref.html#acd3e9d9734c67f33a87b53c2eefe3913">const_iterator</a>;</div><div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="classgrpc_1_1string__ref.html#a32ec8b9506c598690f211ae5afb47b85"> 60</a></span>  <span class="keyword">typedef</span> std::reverse_iterator<const_iterator> <a class="code" href="classgrpc_1_1string__ref.html#a32ec8b9506c598690f211ae5afb47b85">const_reverse_iterator</a>;</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> </div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="comment">// constants</span></div><div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="classgrpc_1_1string__ref.html#af30b4be3e59841594b784c537fa68244"> 63</a></span>  <span class="keyword">const</span> <span class="keyword">static</span> <span class="keywordtype">size_t</span> <a class="code" href="classgrpc_1_1string__ref.html#af30b4be3e59841594b784c537fa68244">npos</a>;</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span> </div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="comment">// construct/copy.</span></div><div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="classgrpc_1_1string__ref.html#a76c38b6cbf957f7b90ccff9e53c081b2"> 66</a></span>  <a class="code" href="classgrpc_1_1string__ref.html#a76c38b6cbf957f7b90ccff9e53c081b2">string_ref</a>() : data_(nullptr), length_(0) {}</div><div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="classgrpc_1_1string__ref.html#ab929e0c1cff6f7ab4f4d9e4b5734b18c"> 67</a></span>  <a class="code" href="classgrpc_1_1string__ref.html#ab929e0c1cff6f7ab4f4d9e4b5734b18c">string_ref</a>(<span class="keyword">const</span> <a class="code" href="classgrpc_1_1string__ref.html">string_ref</a>& other)</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  : data_(other.data_), length_(other.length_) {}</div><div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="classgrpc_1_1string__ref.html#a4363e737a77a7b2784ee1e3b915315e3"> 69</a></span>  <a class="code" href="classgrpc_1_1string__ref.html">string_ref</a>& <a class="code" href="classgrpc_1_1string__ref.html#a4363e737a77a7b2784ee1e3b915315e3">operator=</a>(<span class="keyword">const</span> <a class="code" href="classgrpc_1_1string__ref.html">string_ref</a>& rhs) {</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  data_ = rhs.data_;</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  length_ = rhs.length_;</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  }</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span> </div><div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="classgrpc_1_1string__ref.html#a0631f7099a7fc8b1bbf16f3353074400"> 75</a></span>  <a class="code" href="classgrpc_1_1string__ref.html#a0631f7099a7fc8b1bbf16f3353074400">string_ref</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* s) : data_(s), length_(strlen(s)) {}</div><div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="classgrpc_1_1string__ref.html#a3b6c90d10321a5636a134be68f2f6f18"> 76</a></span>  <a class="code" href="classgrpc_1_1string__ref.html#a3b6c90d10321a5636a134be68f2f6f18">string_ref</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* s, <span class="keywordtype">size_t</span> l) : data_(s), length_(l) {}</div><div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="classgrpc_1_1string__ref.html#a10c3455e679004ab4c61708ce0403601"> 77</a></span>  <a class="code" href="classgrpc_1_1string__ref.html#a10c3455e679004ab4c61708ce0403601">string_ref</a>(<span class="keyword">const</span> <a class="code" href="namespacegrpc.html#ab04a87625da3bf85cdaf5e7856b00203">grpc::string</a>& s) : data_(s.<a class="code" href="classgrpc_1_1string__ref.html#a154cea379c9d7e5635b401a4cc304216">data</a>()), length_(s.<a class="code" href="classgrpc_1_1string__ref.html#aa168f10d77a09a7fe50e3432914bacdd">length</a>()) {}</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span> </div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="comment">// iterators</span></div><div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="classgrpc_1_1string__ref.html#a5a89910308f1fa76147697bffd8b77ba"> 80</a></span>  const_iterator <a class="code" href="classgrpc_1_1string__ref.html#a5a89910308f1fa76147697bffd8b77ba">begin</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> data_; }</div><div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="classgrpc_1_1string__ref.html#a05a9dc01fb7935e0c6de1aff833e6aa6"> 81</a></span>  const_iterator <a class="code" href="classgrpc_1_1string__ref.html#a05a9dc01fb7935e0c6de1aff833e6aa6">end</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> data_ + length_; }</div><div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="classgrpc_1_1string__ref.html#ad194881fb09f599a022f7eaf529fc7bd"> 82</a></span>  const_iterator <a class="code" href="classgrpc_1_1string__ref.html#ad194881fb09f599a022f7eaf529fc7bd">cbegin</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> data_; }</div><div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="classgrpc_1_1string__ref.html#ae9582adbd1ffc14900c44c030da2a1c1"> 83</a></span>  const_iterator <a class="code" href="classgrpc_1_1string__ref.html#ae9582adbd1ffc14900c44c030da2a1c1">cend</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> data_ + length_; }</div><div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="classgrpc_1_1string__ref.html#a5c61b5d98aedeb8e5f777deb9f039688"> 84</a></span>  const_reverse_iterator <a class="code" href="classgrpc_1_1string__ref.html#a5c61b5d98aedeb8e5f777deb9f039688">rbegin</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="keywordflow">return</span> <a class="code" href="classgrpc_1_1string__ref.html#a32ec8b9506c598690f211ae5afb47b85">const_reverse_iterator</a>(<a class="code" href="classgrpc_1_1string__ref.html#a05a9dc01fb7935e0c6de1aff833e6aa6">end</a>());</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  }</div><div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="classgrpc_1_1string__ref.html#acade09cf1e91b96c094c449b8a5bd126"> 87</a></span>  const_reverse_iterator <a class="code" href="classgrpc_1_1string__ref.html#acade09cf1e91b96c094c449b8a5bd126">rend</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keywordflow">return</span> <a class="code" href="classgrpc_1_1string__ref.html#a32ec8b9506c598690f211ae5afb47b85">const_reverse_iterator</a>(<a class="code" href="classgrpc_1_1string__ref.html#a5a89910308f1fa76147697bffd8b77ba">begin</a>());</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  }</div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="classgrpc_1_1string__ref.html#ac72a8f2a55fe1388f2b3afa83045200b"> 90</a></span>  const_reverse_iterator <a class="code" href="classgrpc_1_1string__ref.html#ac72a8f2a55fe1388f2b3afa83045200b">crbegin</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="keywordflow">return</span> <a class="code" href="classgrpc_1_1string__ref.html#a32ec8b9506c598690f211ae5afb47b85">const_reverse_iterator</a>(<a class="code" href="classgrpc_1_1string__ref.html#a05a9dc01fb7935e0c6de1aff833e6aa6">end</a>());</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  }</div><div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="classgrpc_1_1string__ref.html#a0791405cd27fdf491d67cdc57e93d396"> 93</a></span>  const_reverse_iterator <a class="code" href="classgrpc_1_1string__ref.html#a0791405cd27fdf491d67cdc57e93d396">crend</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="keywordflow">return</span> <a class="code" href="classgrpc_1_1string__ref.html#a32ec8b9506c598690f211ae5afb47b85">const_reverse_iterator</a>(<a class="code" href="classgrpc_1_1string__ref.html#a5a89910308f1fa76147697bffd8b77ba">begin</a>());</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  }</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span> </div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <span class="comment">// capacity</span></div><div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="classgrpc_1_1string__ref.html#a8073fdd95b162727457efba52efc2a40"> 98</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="classgrpc_1_1string__ref.html#a8073fdd95b162727457efba52efc2a40">size</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> length_; }</div><div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="classgrpc_1_1string__ref.html#aa168f10d77a09a7fe50e3432914bacdd"> 99</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="classgrpc_1_1string__ref.html#aa168f10d77a09a7fe50e3432914bacdd">length</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> length_; }</div><div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="classgrpc_1_1string__ref.html#a962d3317a74a061ace0f46e0798c19f6"> 100</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="classgrpc_1_1string__ref.html#a962d3317a74a061ace0f46e0798c19f6">max_size</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> length_; }</div><div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="classgrpc_1_1string__ref.html#ad97de998e80c1810741ee7a175c0a350"> 101</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classgrpc_1_1string__ref.html#ad97de998e80c1810741ee7a175c0a350">empty</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> length_ == 0; }</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span> </div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="comment">// element access</span></div><div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="classgrpc_1_1string__ref.html#a154cea379c9d7e5635b401a4cc304216"> 104</a></span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classgrpc_1_1string__ref.html#a154cea379c9d7e5635b401a4cc304216">data</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> data_; }</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span> </div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="comment">// string operations</span></div><div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="classgrpc_1_1string__ref.html#a1433b87ef94239897b526e0b35a57f3f"> 107</a></span>  <span class="keywordtype">int</span> <a class="code" href="classgrpc_1_1string__ref.html#a1433b87ef94239897b526e0b35a57f3f">compare</a>(<a class="code" href="classgrpc_1_1string__ref.html">string_ref</a> x)<span class="keyword"> const </span>{</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="keywordtype">size_t</span> min_size = length_ < x.length_ ? length_ : x.length_;</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="keywordtype">int</span> r = memcmp(data_, x.data_, min_size);</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keywordflow">if</span> (r < 0) <span class="keywordflow">return</span> -1;</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="keywordflow">if</span> (r > 0) <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="keywordflow">if</span> (length_ < x.length_) <span class="keywordflow">return</span> -1;</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <span class="keywordflow">if</span> (length_ > x.length_) <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  }</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span> </div><div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="classgrpc_1_1string__ref.html#a4d4b90bdcb6634690e989daa4234bdd6"> 117</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classgrpc_1_1string__ref.html#a4d4b90bdcb6634690e989daa4234bdd6">starts_with</a>(<a class="code" href="classgrpc_1_1string__ref.html">string_ref</a> x)<span class="keyword"> const </span>{</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <span class="keywordflow">return</span> length_ >= x.length_ && (memcmp(data_, x.data_, x.length_) == 0);</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  }</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span> </div><div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="classgrpc_1_1string__ref.html#a07a931b17f1b9f53c48126f38c4a5fb8"> 121</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classgrpc_1_1string__ref.html#a07a931b17f1b9f53c48126f38c4a5fb8">ends_with</a>(<a class="code" href="classgrpc_1_1string__ref.html">string_ref</a> x)<span class="keyword"> const </span>{</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="keywordflow">return</span> length_ >= x.length_ &&</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  (memcmp(data_ + (length_ - x.length_), x.data_, x.length_) == 0);</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  }</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span> </div><div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="classgrpc_1_1string__ref.html#a942796eecf03256cb77be3eb65e6366a"> 126</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="classgrpc_1_1string__ref.html#a942796eecf03256cb77be3eb65e6366a">find</a>(<a class="code" href="classgrpc_1_1string__ref.html">string_ref</a> s)<span class="keyword"> const </span>{</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <span class="keyword">auto</span> it = std::search(<a class="code" href="classgrpc_1_1string__ref.html#ad194881fb09f599a022f7eaf529fc7bd">cbegin</a>(), <a class="code" href="classgrpc_1_1string__ref.html#ae9582adbd1ffc14900c44c030da2a1c1">cend</a>(), s.<a class="code" href="classgrpc_1_1string__ref.html#ad194881fb09f599a022f7eaf529fc7bd">cbegin</a>(), s.<a class="code" href="classgrpc_1_1string__ref.html#ae9582adbd1ffc14900c44c030da2a1c1">cend</a>());</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keywordflow">return</span> it == <a class="code" href="classgrpc_1_1string__ref.html#ae9582adbd1ffc14900c44c030da2a1c1">cend</a>() ? npos : std::distance(<a class="code" href="classgrpc_1_1string__ref.html#ad194881fb09f599a022f7eaf529fc7bd">cbegin</a>(), it);</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  }</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span> </div><div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="classgrpc_1_1string__ref.html#a744b0cab3133b0ae766b5f7514a4ac38"> 131</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="classgrpc_1_1string__ref.html#a744b0cab3133b0ae766b5f7514a4ac38">find</a>(<span class="keywordtype">char</span> c)<span class="keyword"> const </span>{</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <span class="keyword">auto</span> it = std::find(<a class="code" href="classgrpc_1_1string__ref.html#ad194881fb09f599a022f7eaf529fc7bd">cbegin</a>(), <a class="code" href="classgrpc_1_1string__ref.html#ae9582adbd1ffc14900c44c030da2a1c1">cend</a>(), c);</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <span class="keywordflow">return</span> it == <a class="code" href="classgrpc_1_1string__ref.html#ae9582adbd1ffc14900c44c030da2a1c1">cend</a>() ? npos : std::distance(<a class="code" href="classgrpc_1_1string__ref.html#ad194881fb09f599a022f7eaf529fc7bd">cbegin</a>(), it);</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  }</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span> </div><div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="classgrpc_1_1string__ref.html#a09ee02dfcf385769503beae677266a57"> 136</a></span>  <a class="code" href="classgrpc_1_1string__ref.html">string_ref</a> <a class="code" href="classgrpc_1_1string__ref.html#a09ee02dfcf385769503beae677266a57">substr</a>(<span class="keywordtype">size_t</span> pos, <span class="keywordtype">size_t</span> n = npos)<span class="keyword"> const </span>{</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <span class="keywordflow">if</span> (pos > length_) pos = length_;</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <span class="keywordflow">if</span> (n > (length_ - pos)) n = length_ - pos;</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <span class="keywordflow">return</span> <a class="code" href="classgrpc_1_1string__ref.html#a76c38b6cbf957f7b90ccff9e53c081b2">string_ref</a>(data_ + pos, n);</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  }</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span> </div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* data_;</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <span class="keywordtype">size_t</span> length_;</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span> };</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span> </div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span> <span class="comment">// Comparison operators</span></div><div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="namespacegrpc.html#add0b2451b8e272bad6d673bc2ada0f47"> 148</a></span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="namespacegrpc.html#add0b2451b8e272bad6d673bc2ada0f47">operator==</a>(<a class="code" href="classgrpc_1_1string__ref.html">string_ref</a> x, <a class="code" href="classgrpc_1_1string__ref.html">string_ref</a> y) { <span class="keywordflow">return</span> x.<a class="code" href="classgrpc_1_1string__ref.html#a1433b87ef94239897b526e0b35a57f3f">compare</a>(y) == 0; }</div><div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="namespacegrpc.html#a48f3e907b6269b7f0f8095fa2db0afe3"> 149</a></span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="namespacegrpc.html#a48f3e907b6269b7f0f8095fa2db0afe3">operator!=</a>(<a class="code" href="classgrpc_1_1string__ref.html">string_ref</a> x, <a class="code" href="classgrpc_1_1string__ref.html">string_ref</a> y) { <span class="keywordflow">return</span> x.<a class="code" href="classgrpc_1_1string__ref.html#a1433b87ef94239897b526e0b35a57f3f">compare</a>(y) != 0; }</div><div class="line"><a name="l00150"></a><span class="lineno"><a class="line" href="namespacegrpc.html#a9dc0aa9da43925f6ff5f52895e08ce93"> 150</a></span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="namespacegrpc.html#a9dc0aa9da43925f6ff5f52895e08ce93">operator<</a>(<a class="code" href="classgrpc_1_1string__ref.html">string_ref</a> x, <a class="code" href="classgrpc_1_1string__ref.html">string_ref</a> y) { <span class="keywordflow">return</span> x.<a class="code" href="classgrpc_1_1string__ref.html#a1433b87ef94239897b526e0b35a57f3f">compare</a>(y) < 0; }</div><div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="namespacegrpc.html#a6ab53d108309107dda6b2a4e13646d96"> 151</a></span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="namespacegrpc.html#a6ab53d108309107dda6b2a4e13646d96">operator<=</a>(<a class="code" href="classgrpc_1_1string__ref.html">string_ref</a> x, <a class="code" href="classgrpc_1_1string__ref.html">string_ref</a> y) { <span class="keywordflow">return</span> x.<a class="code" href="classgrpc_1_1string__ref.html#a1433b87ef94239897b526e0b35a57f3f">compare</a>(y) <= 0; }</div><div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="namespacegrpc.html#a43a91fc985698c2346d3942b6bb64bc3"> 152</a></span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="namespacegrpc.html#a43a91fc985698c2346d3942b6bb64bc3">operator></a>(<a class="code" href="classgrpc_1_1string__ref.html">string_ref</a> x, <a class="code" href="classgrpc_1_1string__ref.html">string_ref</a> y) { <span class="keywordflow">return</span> x.<a class="code" href="classgrpc_1_1string__ref.html#a1433b87ef94239897b526e0b35a57f3f">compare</a>(y) > 0; }</div><div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="namespacegrpc.html#a068f3ef856653abfa58ddd445a281461"> 153</a></span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="namespacegrpc.html#a068f3ef856653abfa58ddd445a281461">operator>=</a>(<a class="code" href="classgrpc_1_1string__ref.html">string_ref</a> x, <a class="code" href="classgrpc_1_1string__ref.html">string_ref</a> y) { <span class="keywordflow">return</span> x.<a class="code" href="classgrpc_1_1string__ref.html#a1433b87ef94239897b526e0b35a57f3f">compare</a>(y) >= 0; }</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span> </div><div class="line"><a name="l00155"></a><span class="lineno"><a class="line" href="namespacegrpc.html#a2ed883f54d74eb634ffe44edeaac21da"> 155</a></span> <span class="keyword">inline</span> std::ostream& <a class="code" href="namespacegrpc.html#a2ed883f54d74eb634ffe44edeaac21da">operator<<</a>(std::ostream& out, <span class="keyword">const</span> <a class="code" href="classgrpc_1_1string__ref.html">string_ref</a>& <span class="keywordtype">string</span>) {</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <span class="keywordflow">return</span> out << <a class="code" href="namespacegrpc.html#ab04a87625da3bf85cdaf5e7856b00203">grpc::string</a>(<span class="keywordtype">string</span>.<a class="code" href="classgrpc_1_1string__ref.html#a5a89910308f1fa76147697bffd8b77ba">begin</a>(), <span class="keywordtype">string</span>.<a class="code" href="classgrpc_1_1string__ref.html#a05a9dc01fb7935e0c6de1aff833e6aa6">end</a>());</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span> }</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span> </div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span> } <span class="comment">// namespace grpc</span></div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span> </div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span> <span class="preprocessor">#endif // GRPCXX_IMPL_CODEGEN_STRING_REF_H</span></div><div class="ttc" id="classgrpc_1_1string__ref_html_a962d3317a74a061ace0f46e0798c19f6"><div class="ttname"><a href="classgrpc_1_1string__ref.html#a962d3317a74a061ace0f46e0798c19f6">grpc::string_ref::max_size</a></div><div class="ttdeci">size_t max_size() const </div><div class="ttdef"><b>Definition:</b> string_ref.h:100</div></div>
- <div class="ttc" id="classgrpc_1_1string__ref_html_ae9582adbd1ffc14900c44c030da2a1c1"><div class="ttname"><a href="classgrpc_1_1string__ref.html#ae9582adbd1ffc14900c44c030da2a1c1">grpc::string_ref::cend</a></div><div class="ttdeci">const_iterator cend() const </div><div class="ttdef"><b>Definition:</b> string_ref.h:83</div></div>
- <div class="ttc" id="classgrpc_1_1string__ref_html_a0791405cd27fdf491d67cdc57e93d396"><div class="ttname"><a href="classgrpc_1_1string__ref.html#a0791405cd27fdf491d67cdc57e93d396">grpc::string_ref::crend</a></div><div class="ttdeci">const_reverse_iterator crend() const </div><div class="ttdef"><b>Definition:</b> string_ref.h:93</div></div>
- <div class="ttc" id="classgrpc_1_1string__ref_html_ad194881fb09f599a022f7eaf529fc7bd"><div class="ttname"><a href="classgrpc_1_1string__ref.html#ad194881fb09f599a022f7eaf529fc7bd">grpc::string_ref::cbegin</a></div><div class="ttdeci">const_iterator cbegin() const </div><div class="ttdef"><b>Definition:</b> string_ref.h:82</div></div>
- <div class="ttc" id="namespacegrpc_html_ab04a87625da3bf85cdaf5e7856b00203"><div class="ttname"><a href="namespacegrpc.html#ab04a87625da3bf85cdaf5e7856b00203">grpc::string</a></div><div class="ttdeci">std::string string</div><div class="ttdef"><b>Definition:</b> config.h:118</div></div>
- <div class="ttc" id="classgrpc_1_1string__ref_html_a744b0cab3133b0ae766b5f7514a4ac38"><div class="ttname"><a href="classgrpc_1_1string__ref.html#a744b0cab3133b0ae766b5f7514a4ac38">grpc::string_ref::find</a></div><div class="ttdeci">size_t find(char c) const </div><div class="ttdef"><b>Definition:</b> string_ref.h:131</div></div>
- <div class="ttc" id="classgrpc_1_1string__ref_html_a8073fdd95b162727457efba52efc2a40"><div class="ttname"><a href="classgrpc_1_1string__ref.html#a8073fdd95b162727457efba52efc2a40">grpc::string_ref::size</a></div><div class="ttdeci">size_t size() const </div><div class="ttdef"><b>Definition:</b> string_ref.h:98</div></div>
- <div class="ttc" id="classgrpc_1_1string__ref_html_ab929e0c1cff6f7ab4f4d9e4b5734b18c"><div class="ttname"><a href="classgrpc_1_1string__ref.html#ab929e0c1cff6f7ab4f4d9e4b5734b18c">grpc::string_ref::string_ref</a></div><div class="ttdeci">string_ref(const string_ref &other)</div><div class="ttdef"><b>Definition:</b> string_ref.h:67</div></div>
- <div class="ttc" id="classgrpc_1_1string__ref_html_a942796eecf03256cb77be3eb65e6366a"><div class="ttname"><a href="classgrpc_1_1string__ref.html#a942796eecf03256cb77be3eb65e6366a">grpc::string_ref::find</a></div><div class="ttdeci">size_t find(string_ref s) const </div><div class="ttdef"><b>Definition:</b> string_ref.h:126</div></div>
- <div class="ttc" id="classgrpc_1_1string__ref_html_ac72a8f2a55fe1388f2b3afa83045200b"><div class="ttname"><a href="classgrpc_1_1string__ref.html#ac72a8f2a55fe1388f2b3afa83045200b">grpc::string_ref::crbegin</a></div><div class="ttdeci">const_reverse_iterator crbegin() const </div><div class="ttdef"><b>Definition:</b> string_ref.h:90</div></div>
- <div class="ttc" id="classgrpc_1_1string__ref_html_acd3e9d9734c67f33a87b53c2eefe3913"><div class="ttname"><a href="classgrpc_1_1string__ref.html#acd3e9d9734c67f33a87b53c2eefe3913">grpc::string_ref::const_iterator</a></div><div class="ttdeci">const char * const_iterator</div><div class="ttdef"><b>Definition:</b> string_ref.h:59</div></div>
- <div class="ttc" id="classgrpc_1_1string__ref_html_a0631f7099a7fc8b1bbf16f3353074400"><div class="ttname"><a href="classgrpc_1_1string__ref.html#a0631f7099a7fc8b1bbf16f3353074400">grpc::string_ref::string_ref</a></div><div class="ttdeci">string_ref(const char *s)</div><div class="ttdef"><b>Definition:</b> string_ref.h:75</div></div>
- <div class="ttc" id="classgrpc_1_1string__ref_html_a5c61b5d98aedeb8e5f777deb9f039688"><div class="ttname"><a href="classgrpc_1_1string__ref.html#a5c61b5d98aedeb8e5f777deb9f039688">grpc::string_ref::rbegin</a></div><div class="ttdeci">const_reverse_iterator rbegin() const </div><div class="ttdef"><b>Definition:</b> string_ref.h:84</div></div>
- <div class="ttc" id="classgrpc_1_1string__ref_html_a3b6c90d10321a5636a134be68f2f6f18"><div class="ttname"><a href="classgrpc_1_1string__ref.html#a3b6c90d10321a5636a134be68f2f6f18">grpc::string_ref::string_ref</a></div><div class="ttdeci">string_ref(const char *s, size_t l)</div><div class="ttdef"><b>Definition:</b> string_ref.h:76</div></div>
- <div class="ttc" id="classgrpc_1_1string__ref_html_a10c3455e679004ab4c61708ce0403601"><div class="ttname"><a href="classgrpc_1_1string__ref.html#a10c3455e679004ab4c61708ce0403601">grpc::string_ref::string_ref</a></div><div class="ttdeci">string_ref(const grpc::string &s)</div><div class="ttdef"><b>Definition:</b> string_ref.h:77</div></div>
- <div class="ttc" id="classgrpc_1_1string__ref_html_a154cea379c9d7e5635b401a4cc304216"><div class="ttname"><a href="classgrpc_1_1string__ref.html#a154cea379c9d7e5635b401a4cc304216">grpc::string_ref::data</a></div><div class="ttdeci">const char * data() const </div><div class="ttdef"><b>Definition:</b> string_ref.h:104</div></div>
- <div class="ttc" id="classgrpc_1_1string__ref_html_a05a9dc01fb7935e0c6de1aff833e6aa6"><div class="ttname"><a href="classgrpc_1_1string__ref.html#a05a9dc01fb7935e0c6de1aff833e6aa6">grpc::string_ref::end</a></div><div class="ttdeci">const_iterator end() const </div><div class="ttdef"><b>Definition:</b> string_ref.h:81</div></div>
- <div class="ttc" id="namespacegrpc_html_a2ed883f54d74eb634ffe44edeaac21da"><div class="ttname"><a href="namespacegrpc.html#a2ed883f54d74eb634ffe44edeaac21da">grpc::operator<<</a></div><div class="ttdeci">std::ostream & operator<<(std::ostream &out, const string_ref &string)</div><div class="ttdef"><b>Definition:</b> string_ref.h:155</div></div>
- <div class="ttc" id="classgrpc_1_1string__ref_html_a76c38b6cbf957f7b90ccff9e53c081b2"><div class="ttname"><a href="classgrpc_1_1string__ref.html#a76c38b6cbf957f7b90ccff9e53c081b2">grpc::string_ref::string_ref</a></div><div class="ttdeci">string_ref()</div><div class="ttdef"><b>Definition:</b> string_ref.h:66</div></div>
- <div class="ttc" id="namespacegrpc_html"><div class="ttname"><a href="namespacegrpc.html">grpc</a></div><div class="ttdef"><b>Definition:</b> alarm.h:48</div></div>
- <div class="ttc" id="namespacegrpc_html_a9dc0aa9da43925f6ff5f52895e08ce93"><div class="ttname"><a href="namespacegrpc.html#a9dc0aa9da43925f6ff5f52895e08ce93">grpc::operator<</a></div><div class="ttdeci">bool operator<(string_ref x, string_ref y)</div><div class="ttdef"><b>Definition:</b> string_ref.h:150</div></div>
- <div class="ttc" id="classgrpc_1_1string__ref_html_a4363e737a77a7b2784ee1e3b915315e3"><div class="ttname"><a href="classgrpc_1_1string__ref.html#a4363e737a77a7b2784ee1e3b915315e3">grpc::string_ref::operator=</a></div><div class="ttdeci">string_ref & operator=(const string_ref &rhs)</div><div class="ttdef"><b>Definition:</b> string_ref.h:69</div></div>
- <div class="ttc" id="classgrpc_1_1string__ref_html_af30b4be3e59841594b784c537fa68244"><div class="ttname"><a href="classgrpc_1_1string__ref.html#af30b4be3e59841594b784c537fa68244">grpc::string_ref::npos</a></div><div class="ttdeci">static const size_t npos</div><div class="ttdef"><b>Definition:</b> string_ref.h:63</div></div>
- <div class="ttc" id="namespacegrpc_html_a6ab53d108309107dda6b2a4e13646d96"><div class="ttname"><a href="namespacegrpc.html#a6ab53d108309107dda6b2a4e13646d96">grpc::operator<=</a></div><div class="ttdeci">bool operator<=(string_ref x, string_ref y)</div><div class="ttdef"><b>Definition:</b> string_ref.h:151</div></div>
- <div class="ttc" id="namespacegrpc_html_a43a91fc985698c2346d3942b6bb64bc3"><div class="ttname"><a href="namespacegrpc.html#a43a91fc985698c2346d3942b6bb64bc3">grpc::operator></a></div><div class="ttdeci">bool operator>(string_ref x, string_ref y)</div><div class="ttdef"><b>Definition:</b> string_ref.h:152</div></div>
- <div class="ttc" id="classgrpc_1_1string__ref_html_acade09cf1e91b96c094c449b8a5bd126"><div class="ttname"><a href="classgrpc_1_1string__ref.html#acade09cf1e91b96c094c449b8a5bd126">grpc::string_ref::rend</a></div><div class="ttdeci">const_reverse_iterator rend() const </div><div class="ttdef"><b>Definition:</b> string_ref.h:87</div></div>
- <div class="ttc" id="classgrpc_1_1string__ref_html"><div class="ttname"><a href="classgrpc_1_1string__ref.html">grpc::string_ref</a></div><div class="ttdoc">This class is a non owning reference to a string. </div><div class="ttdef"><b>Definition:</b> string_ref.h:56</div></div>
- <div class="ttc" id="classgrpc_1_1string__ref_html_a4d4b90bdcb6634690e989daa4234bdd6"><div class="ttname"><a href="classgrpc_1_1string__ref.html#a4d4b90bdcb6634690e989daa4234bdd6">grpc::string_ref::starts_with</a></div><div class="ttdeci">bool starts_with(string_ref x) const </div><div class="ttdef"><b>Definition:</b> string_ref.h:117</div></div>
- <div class="ttc" id="classgrpc_1_1string__ref_html_ad97de998e80c1810741ee7a175c0a350"><div class="ttname"><a href="classgrpc_1_1string__ref.html#ad97de998e80c1810741ee7a175c0a350">grpc::string_ref::empty</a></div><div class="ttdeci">bool empty() const </div><div class="ttdef"><b>Definition:</b> string_ref.h:101</div></div>
- <div class="ttc" id="namespacegrpc_html_add0b2451b8e272bad6d673bc2ada0f47"><div class="ttname"><a href="namespacegrpc.html#add0b2451b8e272bad6d673bc2ada0f47">grpc::operator==</a></div><div class="ttdeci">bool operator==(string_ref x, string_ref y)</div><div class="ttdef"><b>Definition:</b> string_ref.h:148</div></div>
- <div class="ttc" id="classgrpc_1_1string__ref_html_a07a931b17f1b9f53c48126f38c4a5fb8"><div class="ttname"><a href="classgrpc_1_1string__ref.html#a07a931b17f1b9f53c48126f38c4a5fb8">grpc::string_ref::ends_with</a></div><div class="ttdeci">bool ends_with(string_ref x) const </div><div class="ttdef"><b>Definition:</b> string_ref.h:121</div></div>
- <div class="ttc" id="classgrpc_1_1string__ref_html_a32ec8b9506c598690f211ae5afb47b85"><div class="ttname"><a href="classgrpc_1_1string__ref.html#a32ec8b9506c598690f211ae5afb47b85">grpc::string_ref::const_reverse_iterator</a></div><div class="ttdeci">std::reverse_iterator< const_iterator > const_reverse_iterator</div><div class="ttdef"><b>Definition:</b> string_ref.h:60</div></div>
- <div class="ttc" id="classgrpc_1_1string__ref_html_a5a89910308f1fa76147697bffd8b77ba"><div class="ttname"><a href="classgrpc_1_1string__ref.html#a5a89910308f1fa76147697bffd8b77ba">grpc::string_ref::begin</a></div><div class="ttdeci">const_iterator begin() const </div><div class="ttdef"><b>Definition:</b> string_ref.h:80</div></div>
- <div class="ttc" id="namespacegrpc_html_a48f3e907b6269b7f0f8095fa2db0afe3"><div class="ttname"><a href="namespacegrpc.html#a48f3e907b6269b7f0f8095fa2db0afe3">grpc::operator!=</a></div><div class="ttdeci">bool operator!=(string_ref x, string_ref y)</div><div class="ttdef"><b>Definition:</b> string_ref.h:149</div></div>
- <div class="ttc" id="impl_2codegen_2config_8h_html"><div class="ttname"><a href="impl_2codegen_2config_8h.html">config.h</a></div></div>
- <div class="ttc" id="classgrpc_1_1string__ref_html_a09ee02dfcf385769503beae677266a57"><div class="ttname"><a href="classgrpc_1_1string__ref.html#a09ee02dfcf385769503beae677266a57">grpc::string_ref::substr</a></div><div class="ttdeci">string_ref substr(size_t pos, size_t n=npos) const </div><div class="ttdef"><b>Definition:</b> string_ref.h:136</div></div>
- <div class="ttc" id="namespacegrpc_html_a068f3ef856653abfa58ddd445a281461"><div class="ttname"><a href="namespacegrpc.html#a068f3ef856653abfa58ddd445a281461">grpc::operator>=</a></div><div class="ttdeci">bool operator>=(string_ref x, string_ref y)</div><div class="ttdef"><b>Definition:</b> string_ref.h:153</div></div>
- <div class="ttc" id="classgrpc_1_1string__ref_html_a1433b87ef94239897b526e0b35a57f3f"><div class="ttname"><a href="classgrpc_1_1string__ref.html#a1433b87ef94239897b526e0b35a57f3f">grpc::string_ref::compare</a></div><div class="ttdeci">int compare(string_ref x) const </div><div class="ttdef"><b>Definition:</b> string_ref.h:107</div></div>
- <div class="ttc" id="classgrpc_1_1string__ref_html_aa168f10d77a09a7fe50e3432914bacdd"><div class="ttname"><a href="classgrpc_1_1string__ref.html#aa168f10d77a09a7fe50e3432914bacdd">grpc::string_ref::length</a></div><div class="ttdeci">size_t length() const </div><div class="ttdef"><b>Definition:</b> string_ref.h:99</div></div>
- </div><!-- fragment --></div><!-- contents -->
- <!-- start footer part -->
- <hr class="footer"/><address class="footer"><small>
- Generated on Thu Aug 18 2016 21:34:58 for GRPC C++ by  <a href="http://www.doxygen.org/index.html">
- <img class="footer" src="doxygen.png" alt="doxygen"/>
- </a> 1.8.11
- </small></address>
- </body>
- </html>
|