No Description

psfunctions_8h_source.html 16KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  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.9.1"/>
  7. <title>My Project: Fichero Fuente psfunctions.h</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 style="padding-left: 0.5em;">
  26. <div id="projectname">My Project
  27. </div>
  28. </td>
  29. </tr>
  30. </tbody>
  31. </table>
  32. </div>
  33. <!-- end header part -->
  34. <!-- Generado por Doxygen 1.8.9.1 -->
  35. <script type="text/javascript">
  36. var searchBox = new SearchBox("searchBox", "search",false,'Buscar');
  37. </script>
  38. <div id="navrow1" class="tabs">
  39. <ul class="tablist">
  40. <li><a href="index.html"><span>Página&#160;principal</span></a></li>
  41. <li><a href="namespaces.html"><span>Namespaces</span></a></li>
  42. <li><a href="annotated.html"><span>Clases</span></a></li>
  43. <li class="current"><a href="files.html"><span>Archivos</span></a></li>
  44. <li>
  45. <div id="MSearchBox" class="MSearchBoxInactive">
  46. <span class="left">
  47. <img id="MSearchSelect" src="search/mag_sel.png"
  48. onmouseover="return searchBox.OnSearchSelectShow()"
  49. onmouseout="return searchBox.OnSearchSelectHide()"
  50. alt=""/>
  51. <input type="text" id="MSearchField" value="Buscar" accesskey="S"
  52. onfocus="searchBox.OnSearchFieldFocus(true)"
  53. onblur="searchBox.OnSearchFieldFocus(false)"
  54. onkeyup="searchBox.OnSearchFieldChange(event)"/>
  55. </span><span class="right">
  56. <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
  57. </span>
  58. </div>
  59. </li>
  60. </ul>
  61. </div>
  62. <div id="navrow2" class="tabs2">
  63. <ul class="tablist">
  64. <li><a href="files.html"><span>Lista&#160;de&#160;archivos</span></a></li>
  65. <li><a href="globals.html"><span>Miembros&#160;de&#160;los&#160;ficheros</span></a></li>
  66. </ul>
  67. </div>
  68. </div><!-- top -->
  69. <!-- window showing the filter options -->
  70. <div id="MSearchSelectWindow"
  71. onmouseover="return searchBox.OnSearchSelectShow()"
  72. onmouseout="return searchBox.OnSearchSelectHide()"
  73. onkeydown="return searchBox.OnSearchSelectKey(event)">
  74. </div>
  75. <!-- iframe showing the search results (closed by default) -->
  76. <div id="MSearchResultsWindow">
  77. <iframe src="javascript:void(0)" frameborder="0"
  78. name="MSearchResults" id="MSearchResults">
  79. </iframe>
  80. </div>
  81. <div class="header">
  82. <div class="headertitle">
  83. <div class="title">psfunctions.h</div> </div>
  84. </div><!--header-->
  85. <div class="contents">
  86. <a href="psfunctions_8h.html">Ir a la documentación de este archivo.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="preprocessor">#ifndef PSFUNCTIONS_H</span></div>
  87. <div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="preprocessor">#define PSFUNCTIONS_H</span></div>
  88. <div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;</div>
  89. <div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;</div>
  90. <div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="preprocessor">#include &lt;iostream&gt;</span></div>
  91. <div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div>
  92. <div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;</div>
  93. <div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="keyword">using namespace </span><a class="code" href="namespacestd.html">std</a>;</div>
  94. <div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;</div>
  95. <div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="keywordtype">string</span> <a class="code" href="psfunctions_8h.html#a46157ef79156178bdf774a9315ea4d5c">toUpperString</a>(<span class="keyword">const</span> <span class="keywordtype">string</span> &amp;st);</div>
  96. <div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;</div>
  97. <div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="psfunctions_8cpp.html#a1037ae10cf2e9029a971c4346a3ddbc3">countCharsOfType</a>(<span class="keyword">const</span> <span class="keywordtype">string</span> &amp;st,</div>
  98. <div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; <span class="keywordtype">int</span> (* filterFunction)(<span class="keywordtype">int</span> args) ,</div>
  99. <div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> fromIdx, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> toIdx);</div>
  100. <div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;</div>
  101. <div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160;<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="psfunctions_8h.html#ad579313c6ea7443438cffe04f4989846">countUppercase</a>(<span class="keyword">const</span> <span class="keywordtype">string</span> &amp;st);</div>
  102. <div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;</div>
  103. <div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160;<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="psfunctions_8h.html#a7d01626f2baa8c0c35a85b6a462e5adb">countLowercase</a>(<span class="keyword">const</span> <span class="keywordtype">string</span> &amp;st);</div>
  104. <div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;</div>
  105. <div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160;<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="psfunctions_8h.html#acd1e5c55d28085d1be2e69f0819b7770">countDigits</a>(<span class="keyword">const</span> <span class="keywordtype">string</span> &amp;st);</div>
  106. <div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160;</div>
  107. <div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160;<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="psfunctions_8h.html#a4bdb8eb13658c5b22f256d14f3104e2e">countSymbols</a>(<span class="keyword">const</span> <span class="keywordtype">string</span> &amp;st);</div>
  108. <div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160;</div>
  109. <div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160;<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="psfunctions_8h.html#a3f78ae9f503ae80597803d018d5afec0">middleDigitsOrSymbols</a>(<span class="keyword">const</span> <span class="keywordtype">string</span> &amp;st);</div>
  110. <div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160;</div>
  111. <div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160;<span class="keywordtype">int</span> <a class="code" href="psfunctions_8h.html#adb8d496f257d2b235032dd09af067ee1">isSymbol</a>(<span class="keywordtype">int</span> c);</div>
  112. <div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160;</div>
  113. <div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160;<span class="keywordtype">int</span> <a class="code" href="psfunctions_8h.html#ab3370c00b77ef1b29e70f08d4e7eaaf6">isDigitOrSymbol</a>(<span class="keywordtype">int</span> c);</div>
  114. <div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160;</div>
  115. <div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160;<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> countConsecutive(<span class="keyword">const</span> <span class="keywordtype">string</span> &amp;st, <span class="keywordtype">int</span> (* filterFunction)(<span class="keywordtype">int</span> args) );</div>
  116. <div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160;</div>
  117. <div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160;<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="psfunctions_8h.html#aed852eb177989f956aa44943c993f723">consecUppercase</a>(<span class="keyword">const</span> <span class="keywordtype">string</span> &amp;st);</div>
  118. <div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160;</div>
  119. <div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160;<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="psfunctions_8h.html#a9ebde4a11e5ad25a85ab40428ea2b03f">consecLowercase</a>(<span class="keyword">const</span> <span class="keywordtype">string</span> &amp;st);</div>
  120. <div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160;</div>
  121. <div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160;<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="psfunctions_8h.html#aa9ab4449505a06cee6a2d754aa748a33">consecDigits</a>(<span class="keyword">const</span> <span class="keywordtype">string</span> &amp;st);</div>
  122. <div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160;</div>
  123. <div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160;</div>
  124. <div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160;<span class="preprocessor">#endif // PSFUNCTIONS_H</span></div>
  125. <div class="ttc" id="psfunctions_8h_html_adb8d496f257d2b235032dd09af067ee1"><div class="ttname"><a href="psfunctions_8h.html#adb8d496f257d2b235032dd09af067ee1">isSymbol</a></div><div class="ttdeci">int isSymbol(int c)</div><div class="ttdoc">Devuelve 1 si el argumento es un simbolo. </div><div class="ttdef"><b>Definition:</b> psfunctions.cpp:83</div></div>
  126. <div class="ttc" id="psfunctions_8h_html_a7d01626f2baa8c0c35a85b6a462e5adb"><div class="ttname"><a href="psfunctions_8h.html#a7d01626f2baa8c0c35a85b6a462e5adb">countLowercase</a></div><div class="ttdeci">unsigned int countLowercase(const string &amp;st)</div><div class="ttdoc">Dada una cadena de caracteres devolvera el numero de caracteres en minuscula. </div><div class="ttdef"><b>Definition:</b> psfunctions.cpp:72</div></div>
  127. <div class="ttc" id="psfunctions_8h_html_acd1e5c55d28085d1be2e69f0819b7770"><div class="ttname"><a href="psfunctions_8h.html#acd1e5c55d28085d1be2e69f0819b7770">countDigits</a></div><div class="ttdeci">unsigned int countDigits(const string &amp;st)</div><div class="ttdoc">Dada una cadena de caracteres devolvera el numero de digitos. </div><div class="ttdef"><b>Definition:</b> psfunctions.cpp:107</div></div>
  128. <div class="ttc" id="namespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div></div>
  129. <div class="ttc" id="psfunctions_8h_html_a3f78ae9f503ae80597803d018d5afec0"><div class="ttname"><a href="psfunctions_8h.html#a3f78ae9f503ae80597803d018d5afec0">middleDigitsOrSymbols</a></div><div class="ttdeci">unsigned int middleDigitsOrSymbols(const string &amp;st)</div><div class="ttdoc">Devuelve el numero de digitos y simbolos que no son el primer o el ultimo caracter de la cadena recib...</div><div class="ttdef"><b>Definition:</b> psfunctions.cpp:147</div></div>
  130. <div class="ttc" id="psfunctions_8cpp_html_a1037ae10cf2e9029a971c4346a3ddbc3"><div class="ttname"><a href="psfunctions_8cpp.html#a1037ae10cf2e9029a971c4346a3ddbc3">countCharsOfType</a></div><div class="ttdeci">unsigned int countCharsOfType(const string &amp;st, int(*filterFunction)(int args), int fromIdx=0, int toIdx=-1)</div><div class="ttdoc">Dada una cadena de caracters devuelve el numero de caracteres de un cierto tipo. </div><div class="ttdef"><b>Definition:</b> psfunctions.cpp:25</div></div>
  131. <div class="ttc" id="psfunctions_8h_html_a4bdb8eb13658c5b22f256d14f3104e2e"><div class="ttname"><a href="psfunctions_8h.html#a4bdb8eb13658c5b22f256d14f3104e2e">countSymbols</a></div><div class="ttdeci">unsigned int countSymbols(const string &amp;st)</div><div class="ttdoc">Dada una cadena de caracteres devolvera el numero de simbolos. </div><div class="ttdef"><b>Definition:</b> psfunctions.cpp:119</div></div>
  132. <div class="ttc" id="psfunctions_8h_html_aa9ab4449505a06cee6a2d754aa748a33"><div class="ttname"><a href="psfunctions_8h.html#aa9ab4449505a06cee6a2d754aa748a33">consecDigits</a></div><div class="ttdeci">unsigned int consecDigits(const string &amp;st)</div><div class="ttdoc">Dada una cadena devolvera el numero de digitos que sigue a un digito. </div><div class="ttdef"><b>Definition:</b> psfunctions.cpp:223</div></div>
  133. <div class="ttc" id="psfunctions_8h_html_ab3370c00b77ef1b29e70f08d4e7eaaf6"><div class="ttname"><a href="psfunctions_8h.html#ab3370c00b77ef1b29e70f08d4e7eaaf6">isDigitOrSymbol</a></div><div class="ttdeci">int isDigitOrSymbol(int c)</div><div class="ttdoc">Devuelve 1 si el argumento es un digito o simbolo. </div><div class="ttdef"><b>Definition:</b> psfunctions.cpp:95</div></div>
  134. <div class="ttc" id="psfunctions_8h_html_a46157ef79156178bdf774a9315ea4d5c"><div class="ttname"><a href="psfunctions_8h.html#a46157ef79156178bdf774a9315ea4d5c">toUpperString</a></div><div class="ttdeci">string toUpperString(const string &amp;st)</div><div class="ttdoc">Devuelve una version en mayusculas de la cadena de caracteres recibida. </div><div class="ttdef"><b>Definition:</b> psfunctions.cpp:130</div></div>
  135. <div class="ttc" id="psfunctions_8h_html_aed852eb177989f956aa44943c993f723"><div class="ttname"><a href="psfunctions_8h.html#aed852eb177989f956aa44943c993f723">consecUppercase</a></div><div class="ttdeci">unsigned int consecUppercase(const string &amp;st)</div><div class="ttdoc">Dada una cadena devolvera el numero de caracteres en mayuscula que sigue a un caracter del mismo tipo...</div><div class="ttdef"><b>Definition:</b> psfunctions.cpp:195</div></div>
  136. <div class="ttc" id="psfunctions_8h_html_a9ebde4a11e5ad25a85ab40428ea2b03f"><div class="ttname"><a href="psfunctions_8h.html#a9ebde4a11e5ad25a85ab40428ea2b03f">consecLowercase</a></div><div class="ttdeci">unsigned int consecLowercase(const string &amp;st)</div><div class="ttdoc">Dada una cadena devolvera el numero de caracteres en minuscula que sigue a un caracter del mismo tipo...</div><div class="ttdef"><b>Definition:</b> psfunctions.cpp:209</div></div>
  137. <div class="ttc" id="psfunctions_8h_html_ad579313c6ea7443438cffe04f4989846"><div class="ttname"><a href="psfunctions_8h.html#ad579313c6ea7443438cffe04f4989846">countUppercase</a></div><div class="ttdeci">unsigned int countUppercase(const string &amp;st)</div><div class="ttdoc">Dada una cadena de caracteres devolvera el numero de caracteres en mayuscula. </div><div class="ttdef"><b>Definition:</b> psfunctions.cpp:59</div></div>
  138. </div><!-- fragment --></div><!-- contents -->
  139. <!-- start footer part -->
  140. <hr class="footer"/><address class="footer"><small>
  141. Generado el Miércoles, 3 de Junio de 2015 15:05:24 para My Project por &#160;<a href="http://www.doxygen.org/index.html">
  142. <img class="footer" src="doxygen.png" alt="doxygen"/>
  143. </a> 1.8.9.1
  144. </small></address>
  145. </body>
  146. </html>