impl_2codegen_2string__ref_8h_source.html 50 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.11"/>
  7. <title>GRPC C++: include/grpc++/impl/codegen/string_ref.h Source File</title>
  8. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  9. <script type="text/javascript" src="jquery.js"></script>
  10. <script type="text/javascript" src="dynsections.js"></script>
  11. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  12. <script type="text/javascript" src="search/searchdata.js"></script>
  13. <script type="text/javascript" src="search/search.js"></script>
  14. <script type="text/javascript">
  15. $(document).ready(function() { init_search(); });
  16. </script>
  17. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  18. </head>
  19. <body>
  20. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  21. <div id="titlearea">
  22. <table cellspacing="0" cellpadding="0">
  23. <tbody>
  24. <tr style="height: 56px;">
  25. <td id="projectalign" style="padding-left: 0.5em;">
  26. <div id="projectname">GRPC C++
  27. &#160;<span id="projectnumber">1.0.0</span>
  28. </div>
  29. </td>
  30. </tr>
  31. </tbody>
  32. </table>
  33. </div>
  34. <!-- end header part -->
  35. <!-- Generated by Doxygen 1.8.11 -->
  36. <script type="text/javascript">
  37. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  38. </script>
  39. <div id="navrow1" class="tabs">
  40. <ul class="tablist">
  41. <li><a href="index.html"><span>Main&#160;Page</span></a></li>
  42. <li><a href="modules.html"><span>Modules</span></a></li>
  43. <li><a href="namespaces.html"><span>Namespaces</span></a></li>
  44. <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
  45. <li class="current"><a href="files.html"><span>Files</span></a></li>
  46. <li>
  47. <div id="MSearchBox" class="MSearchBoxInactive">
  48. <span class="left">
  49. <img id="MSearchSelect" src="search/mag_sel.png"
  50. onmouseover="return searchBox.OnSearchSelectShow()"
  51. onmouseout="return searchBox.OnSearchSelectHide()"
  52. alt=""/>
  53. <input type="text" id="MSearchField" value="Search" accesskey="S"
  54. onfocus="searchBox.OnSearchFieldFocus(true)"
  55. onblur="searchBox.OnSearchFieldFocus(false)"
  56. onkeyup="searchBox.OnSearchFieldChange(event)"/>
  57. </span><span class="right">
  58. <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
  59. </span>
  60. </div>
  61. </li>
  62. </ul>
  63. </div>
  64. <div id="navrow2" class="tabs2">
  65. <ul class="tablist">
  66. <li><a href="files.html"><span>File&#160;List</span></a></li>
  67. <li><a href="globals.html"><span>Globals</span></a></li>
  68. </ul>
  69. </div>
  70. <!-- window showing the filter options -->
  71. <div id="MSearchSelectWindow"
  72. onmouseover="return searchBox.OnSearchSelectShow()"
  73. onmouseout="return searchBox.OnSearchSelectHide()"
  74. onkeydown="return searchBox.OnSearchSelectKey(event)">
  75. </div>
  76. <!-- iframe showing the search results (closed by default) -->
  77. <div id="MSearchResultsWindow">
  78. <iframe src="javascript:void(0)" frameborder="0"
  79. name="MSearchResults" id="MSearchResults">
  80. </iframe>
  81. </div>
  82. <div id="nav-path" class="navpath">
  83. <ul>
  84. <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>
  85. </div>
  86. </div><!-- top -->
  87. <div class="header">
  88. <div class="headertitle">
  89. <div class="title">string_ref.h</div> </div>
  90. </div><!--header-->
  91. <div class="contents">
  92. <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>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> * Copyright 2015, Google Inc.</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> * All rights reserved.</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<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>&#160;<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>&#160;<span class="comment"> * met:</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<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>&#160;<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>&#160;<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>&#160;<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>&#160;<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>&#160;<span class="comment"> * distribution.</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<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>&#160;<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>&#160;<span class="comment"> * this software without specific prior written permission.</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<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>&#160;<span class="comment"> * &quot;AS IS&quot; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<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>&#160;<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>&#160;<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>&#160;<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>&#160;<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>&#160;<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>&#160;<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>&#160;<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>&#160;<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>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<span class="preprocessor">#ifndef GRPCXX_IMPL_CODEGEN_STRING_REF_H</span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="preprocessor">#define GRPCXX_IMPL_CODEGEN_STRING_REF_H</span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;<span class="preprocessor">#include &lt;string.h&gt;</span></div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;<span class="preprocessor">#include &lt;algorithm&gt;</span></div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<span class="preprocessor">#include &lt;iosfwd&gt;</span></div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;<span class="preprocessor">#include &lt;iostream&gt;</span></div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;<span class="preprocessor">#include &lt;iterator&gt;</span></div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="impl_2codegen_2config_8h.html">grpc++/impl/codegen/config.h</a>&gt;</span></div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;<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>&#160;</div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="classgrpc_1_1string__ref.html"> 56</a></span>&#160;<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>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; <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>&#160; <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>&#160; <span class="keyword">typedef</span> std::reverse_iterator&lt;const_iterator&gt; <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>&#160;</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; <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>&#160; <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>&#160;</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <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>&#160; <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>&#160; <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>&amp; other)</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; : 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>&#160; <a class="code" href="classgrpc_1_1string__ref.html">string_ref</a>&amp; <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>&amp; rhs) {</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; data_ = rhs.data_;</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; length_ = rhs.length_;</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; }</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160;</div><div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="classgrpc_1_1string__ref.html#a0631f7099a7fc8b1bbf16f3353074400"> 75</a></span>&#160; <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>&#160; <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>&#160; <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>&amp; 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>&#160;</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; <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>&#160; 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>&#160; 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>&#160; 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>&#160; 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>&#160; 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>&#160; <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>&#160; }</div><div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="classgrpc_1_1string__ref.html#acade09cf1e91b96c094c449b8a5bd126"> 87</a></span>&#160; 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>&#160; <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>&#160; }</div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="classgrpc_1_1string__ref.html#ac72a8f2a55fe1388f2b3afa83045200b"> 90</a></span>&#160; 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>&#160; <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>&#160; }</div><div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="classgrpc_1_1string__ref.html#a0791405cd27fdf491d67cdc57e93d396"> 93</a></span>&#160; 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>&#160; <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>&#160; }</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160;</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; <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>&#160; <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>&#160; <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>&#160; <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>&#160; <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>&#160;</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; <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>&#160; <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>&#160;</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; <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>&#160; <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>&#160; <span class="keywordtype">size_t</span> min_size = length_ &lt; x.length_ ? length_ : x.length_;</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; <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>&#160; <span class="keywordflow">if</span> (r &lt; 0) <span class="keywordflow">return</span> -1;</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; <span class="keywordflow">if</span> (r &gt; 0) <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; <span class="keywordflow">if</span> (length_ &lt; x.length_) <span class="keywordflow">return</span> -1;</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; <span class="keywordflow">if</span> (length_ &gt; x.length_) <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; }</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160;</div><div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="classgrpc_1_1string__ref.html#a4d4b90bdcb6634690e989daa4234bdd6"> 117</a></span>&#160; <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>&#160; <span class="keywordflow">return</span> length_ &gt;= x.length_ &amp;&amp; (memcmp(data_, x.data_, x.length_) == 0);</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; }</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160;</div><div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="classgrpc_1_1string__ref.html#a07a931b17f1b9f53c48126f38c4a5fb8"> 121</a></span>&#160; <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>&#160; <span class="keywordflow">return</span> length_ &gt;= x.length_ &amp;&amp;</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; (memcmp(data_ + (length_ - x.length_), x.data_, x.length_) == 0);</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; }</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160;</div><div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="classgrpc_1_1string__ref.html#a942796eecf03256cb77be3eb65e6366a"> 126</a></span>&#160; <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>&#160; <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>&#160; <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>&#160; }</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160;</div><div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="classgrpc_1_1string__ref.html#a744b0cab3133b0ae766b5f7514a4ac38"> 131</a></span>&#160; <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>&#160; <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>&#160; <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>&#160; }</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160;</div><div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="classgrpc_1_1string__ref.html#a09ee02dfcf385769503beae677266a57"> 136</a></span>&#160; <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>&#160; <span class="keywordflow">if</span> (pos &gt; length_) pos = length_;</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; <span class="keywordflow">if</span> (n &gt; (length_ - pos)) n = length_ - pos;</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; <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>&#160; }</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160;</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; <span class="keyword">const</span> <span class="keywordtype">char</span>* data_;</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; <span class="keywordtype">size_t</span> length_;</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160;};</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160;</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160;<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>&#160;<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>&#160;<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>&#160;<span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="namespacegrpc.html#a9dc0aa9da43925f6ff5f52895e08ce93">operator&lt;</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) &lt; 0; }</div><div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="namespacegrpc.html#a6ab53d108309107dda6b2a4e13646d96"> 151</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="namespacegrpc.html#a6ab53d108309107dda6b2a4e13646d96">operator&lt;=</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) &lt;= 0; }</div><div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="namespacegrpc.html#a43a91fc985698c2346d3942b6bb64bc3"> 152</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="namespacegrpc.html#a43a91fc985698c2346d3942b6bb64bc3">operator&gt;</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) &gt; 0; }</div><div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="namespacegrpc.html#a068f3ef856653abfa58ddd445a281461"> 153</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="namespacegrpc.html#a068f3ef856653abfa58ddd445a281461">operator&gt;=</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) &gt;= 0; }</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160;</div><div class="line"><a name="l00155"></a><span class="lineno"><a class="line" href="namespacegrpc.html#a2ed883f54d74eb634ffe44edeaac21da"> 155</a></span>&#160;<span class="keyword">inline</span> std::ostream&amp; <a class="code" href="namespacegrpc.html#a2ed883f54d74eb634ffe44edeaac21da">operator&lt;&lt;</a>(std::ostream&amp; out, <span class="keyword">const</span> <a class="code" href="classgrpc_1_1string__ref.html">string_ref</a>&amp; <span class="keywordtype">string</span>) {</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; <span class="keywordflow">return</span> out &lt;&lt; <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>&#160;}</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160;</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160;} <span class="comment">// namespace grpc</span></div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160;</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160;<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>
  93. <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>
  94. <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>
  95. <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>
  96. <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>
  97. <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>
  98. <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>
  99. <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 &amp;other)</div><div class="ttdef"><b>Definition:</b> string_ref.h:67</div></div>
  100. <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>
  101. <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>
  102. <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>
  103. <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>
  104. <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>
  105. <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>
  106. <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 &amp;s)</div><div class="ttdef"><b>Definition:</b> string_ref.h:77</div></div>
  107. <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>
  108. <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>
  109. <div class="ttc" id="namespacegrpc_html_a2ed883f54d74eb634ffe44edeaac21da"><div class="ttname"><a href="namespacegrpc.html#a2ed883f54d74eb634ffe44edeaac21da">grpc::operator&lt;&lt;</a></div><div class="ttdeci">std::ostream &amp; operator&lt;&lt;(std::ostream &amp;out, const string_ref &amp;string)</div><div class="ttdef"><b>Definition:</b> string_ref.h:155</div></div>
  110. <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>
  111. <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>
  112. <div class="ttc" id="namespacegrpc_html_a9dc0aa9da43925f6ff5f52895e08ce93"><div class="ttname"><a href="namespacegrpc.html#a9dc0aa9da43925f6ff5f52895e08ce93">grpc::operator&lt;</a></div><div class="ttdeci">bool operator&lt;(string_ref x, string_ref y)</div><div class="ttdef"><b>Definition:</b> string_ref.h:150</div></div>
  113. <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 &amp; operator=(const string_ref &amp;rhs)</div><div class="ttdef"><b>Definition:</b> string_ref.h:69</div></div>
  114. <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>
  115. <div class="ttc" id="namespacegrpc_html_a6ab53d108309107dda6b2a4e13646d96"><div class="ttname"><a href="namespacegrpc.html#a6ab53d108309107dda6b2a4e13646d96">grpc::operator&lt;=</a></div><div class="ttdeci">bool operator&lt;=(string_ref x, string_ref y)</div><div class="ttdef"><b>Definition:</b> string_ref.h:151</div></div>
  116. <div class="ttc" id="namespacegrpc_html_a43a91fc985698c2346d3942b6bb64bc3"><div class="ttname"><a href="namespacegrpc.html#a43a91fc985698c2346d3942b6bb64bc3">grpc::operator&gt;</a></div><div class="ttdeci">bool operator&gt;(string_ref x, string_ref y)</div><div class="ttdef"><b>Definition:</b> string_ref.h:152</div></div>
  117. <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>
  118. <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>
  119. <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>
  120. <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>
  121. <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>
  122. <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>
  123. <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&lt; const_iterator &gt; const_reverse_iterator</div><div class="ttdef"><b>Definition:</b> string_ref.h:60</div></div>
  124. <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>
  125. <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>
  126. <div class="ttc" id="impl_2codegen_2config_8h_html"><div class="ttname"><a href="impl_2codegen_2config_8h.html">config.h</a></div></div>
  127. <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>
  128. <div class="ttc" id="namespacegrpc_html_a068f3ef856653abfa58ddd445a281461"><div class="ttname"><a href="namespacegrpc.html#a068f3ef856653abfa58ddd445a281461">grpc::operator&gt;=</a></div><div class="ttdeci">bool operator&gt;=(string_ref x, string_ref y)</div><div class="ttdef"><b>Definition:</b> string_ref.h:153</div></div>
  129. <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>
  130. <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>
  131. </div><!-- fragment --></div><!-- contents -->
  132. <!-- start footer part -->
  133. <hr class="footer"/><address class="footer"><small>
  134. Generated on Thu Aug 18 2016 21:34:58 for GRPC C++ by &#160;<a href="http://www.doxygen.org/index.html">
  135. <img class="footer" src="doxygen.png" alt="doxygen"/>
  136. </a> 1.8.11
  137. </small></address>
  138. </body>
  139. </html>