Нема описа

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. \hypertarget{psfunctions_8cpp}{}\section{psfunctions.\+cpp File Reference}
  2. \label{psfunctions_8cpp}\index{psfunctions.\+cpp@{psfunctions.\+cpp}}
  3. {\ttfamily \#include \char`\"{}psfunctions.\+h\char`\"{}}\\*
  4. \subsection*{Functions}
  5. \begin{DoxyCompactItemize}
  6. \item
  7. unsigned int \hyperlink{psfunctions_8cpp_a1037ae10cf2e9029a971c4346a3ddbc3}{count\+Chars\+Of\+Type} (const string \&st, int($\ast$filter\+Function)(int args), int from\+Idx=0, int to\+Idx=-\/1)
  8. \begin{DoxyCompactList}\small\item\em Given a string will return the number of characters of a certain type. \end{DoxyCompactList}\item
  9. unsigned int \hyperlink{psfunctions_8cpp_ad579313c6ea7443438cffe04f4989846}{count\+Uppercase} (const string \&st)
  10. \begin{DoxyCompactList}\small\item\em Given a string will return the number of uppercase characters. \end{DoxyCompactList}\item
  11. unsigned int \hyperlink{psfunctions_8cpp_a7d01626f2baa8c0c35a85b6a462e5adb}{count\+Lowercase} (const string \&st)
  12. \begin{DoxyCompactList}\small\item\em Given a string will return the number of lowercase characters. \end{DoxyCompactList}\item
  13. int \hyperlink{psfunctions_8cpp_adb8d496f257d2b235032dd09af067ee1}{is\+Symbol} (int c)
  14. \begin{DoxyCompactList}\small\item\em Returns 1 if the passed argument is a symbol. \end{DoxyCompactList}\item
  15. int \hyperlink{psfunctions_8cpp_ab3370c00b77ef1b29e70f08d4e7eaaf6}{is\+Digit\+Or\+Symbol} (int c)
  16. \begin{DoxyCompactList}\small\item\em Returns 1 if the passed argument is a digit or symbol. \end{DoxyCompactList}\item
  17. unsigned int \hyperlink{psfunctions_8cpp_acd1e5c55d28085d1be2e69f0819b7770}{count\+Digits} (const string \&st)
  18. \begin{DoxyCompactList}\small\item\em Given a string will return the number of digits. \end{DoxyCompactList}\item
  19. unsigned int \hyperlink{psfunctions_8cpp_a4bdb8eb13658c5b22f256d14f3104e2e}{count\+Symbols} (const string \&st)
  20. \begin{DoxyCompactList}\small\item\em Given a string will return the number of symbols. \end{DoxyCompactList}\item
  21. string \hyperlink{psfunctions_8cpp_a46157ef79156178bdf774a9315ea4d5c}{to\+Upper\+String} (const string \&st)
  22. \begin{DoxyCompactList}\small\item\em Returns an uppercase version of the received string. \end{DoxyCompactList}\item
  23. unsigned int \hyperlink{psfunctions_8cpp_a3f78ae9f503ae80597803d018d5afec0}{middle\+Digits\+Or\+Symbols} (const string \&st)
  24. \begin{DoxyCompactList}\small\item\em Returns the number of digits and symbols that are not the first or last characters of the received string. \end{DoxyCompactList}\item
  25. \hypertarget{psfunctions_8cpp_afe0bd6a220d8dd86082921912596f812}{}unsigned int {\bfseries count\+Consecutive} (const string \&st, int($\ast$filter\+Function)(int args))\label{psfunctions_8cpp_afe0bd6a220d8dd86082921912596f812}
  26. \item
  27. unsigned int \hyperlink{psfunctions_8cpp_aed852eb177989f956aa44943c993f723}{consec\+Uppercase} (const string \&st)
  28. \begin{DoxyCompactList}\small\item\em Given a string will return the number of uppercase characters that follow a character of that same type. \end{DoxyCompactList}\item
  29. unsigned int \hyperlink{psfunctions_8cpp_a9ebde4a11e5ad25a85ab40428ea2b03f}{consec\+Lowercase} (const string \&st)
  30. \begin{DoxyCompactList}\small\item\em Given a string will return the number of lowercase characters that follow a character of that same type. \end{DoxyCompactList}\item
  31. unsigned int \hyperlink{psfunctions_8cpp_aa9ab4449505a06cee6a2d754aa748a33}{consec\+Digits} (const string \&st)
  32. \begin{DoxyCompactList}\small\item\em Given a string will return the number of digits that follow a digit. \end{DoxyCompactList}\end{DoxyCompactItemize}
  33. \subsection{Function Documentation}
  34. \hypertarget{psfunctions_8cpp_aa9ab4449505a06cee6a2d754aa748a33}{}\index{psfunctions.\+cpp@{psfunctions.\+cpp}!consec\+Digits@{consec\+Digits}}
  35. \index{consec\+Digits@{consec\+Digits}!psfunctions.\+cpp@{psfunctions.\+cpp}}
  36. \subsubsection[{consec\+Digits}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int consec\+Digits (
  37. \begin{DoxyParamCaption}
  38. \item[{const string \&}]{st}
  39. \end{DoxyParamCaption}
  40. )}\label{psfunctions_8cpp_aa9ab4449505a06cee6a2d754aa748a33}
  41. Given a string will return the number of digits that follow a digit.
  42. \begin{DoxyParams}{Parameters}
  43. {\em st} & string by reference to analyze \\
  44. \hline
  45. \end{DoxyParams}
  46. \hypertarget{psfunctions_8cpp_a9ebde4a11e5ad25a85ab40428ea2b03f}{}\index{psfunctions.\+cpp@{psfunctions.\+cpp}!consec\+Lowercase@{consec\+Lowercase}}
  47. \index{consec\+Lowercase@{consec\+Lowercase}!psfunctions.\+cpp@{psfunctions.\+cpp}}
  48. \subsubsection[{consec\+Lowercase}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int consec\+Lowercase (
  49. \begin{DoxyParamCaption}
  50. \item[{const string \&}]{st}
  51. \end{DoxyParamCaption}
  52. )}\label{psfunctions_8cpp_a9ebde4a11e5ad25a85ab40428ea2b03f}
  53. Given a string will return the number of lowercase characters that follow a character of that same type.
  54. \begin{DoxyParams}{Parameters}
  55. {\em st} & string by reference to analyze \\
  56. \hline
  57. \end{DoxyParams}
  58. \hypertarget{psfunctions_8cpp_aed852eb177989f956aa44943c993f723}{}\index{psfunctions.\+cpp@{psfunctions.\+cpp}!consec\+Uppercase@{consec\+Uppercase}}
  59. \index{consec\+Uppercase@{consec\+Uppercase}!psfunctions.\+cpp@{psfunctions.\+cpp}}
  60. \subsubsection[{consec\+Uppercase}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int consec\+Uppercase (
  61. \begin{DoxyParamCaption}
  62. \item[{const string \&}]{st}
  63. \end{DoxyParamCaption}
  64. )}\label{psfunctions_8cpp_aed852eb177989f956aa44943c993f723}
  65. Given a string will return the number of uppercase characters that follow a character of that same type.
  66. \begin{DoxyParams}{Parameters}
  67. {\em st} & string by reference to analyze \\
  68. \hline
  69. \end{DoxyParams}
  70. \hypertarget{psfunctions_8cpp_a1037ae10cf2e9029a971c4346a3ddbc3}{}\index{psfunctions.\+cpp@{psfunctions.\+cpp}!count\+Chars\+Of\+Type@{count\+Chars\+Of\+Type}}
  71. \index{count\+Chars\+Of\+Type@{count\+Chars\+Of\+Type}!psfunctions.\+cpp@{psfunctions.\+cpp}}
  72. \subsubsection[{count\+Chars\+Of\+Type}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int count\+Chars\+Of\+Type (
  73. \begin{DoxyParamCaption}
  74. \item[{const string \&}]{st, }
  75. \item[{int($\ast$)(int args)}]{filter\+Function, }
  76. \item[{int}]{from\+Idx = {\ttfamily 0}, }
  77. \item[{int}]{to\+Idx = {\ttfamily -\/1}}
  78. \end{DoxyParamCaption}
  79. )}\label{psfunctions_8cpp_a1037ae10cf2e9029a971c4346a3ddbc3}
  80. Given a string will return the number of characters of a certain type.
  81. Given a string will return the number of characters of a certain type that follow a character of that same type.
  82. \begin{DoxyParams}{Parameters}
  83. {\em st} & string to analyze \\
  84. \hline
  85. {\em filter\+Function} & a function pointer to a function that returns 1 when a character of the type is given. For example, if function is islower, then count\+Chars\+Of\+Type will count lowercase characters. \\
  86. \hline
  87. {\em from\+Idx} & index from where to start count \\
  88. \hline
  89. {\em to\+Idx} & last index for count\\
  90. \hline
  91. {\em st} & string to analyze \\
  92. \hline
  93. {\em filter\+Function} & a function pointer to a function that returns 1 when a character of the type is given. For example, if function is islower, then count\+Consecutive will count consecutive lowercase characters. \\
  94. \hline
  95. \end{DoxyParams}
  96. \hypertarget{psfunctions_8cpp_acd1e5c55d28085d1be2e69f0819b7770}{}\index{psfunctions.\+cpp@{psfunctions.\+cpp}!count\+Digits@{count\+Digits}}
  97. \index{count\+Digits@{count\+Digits}!psfunctions.\+cpp@{psfunctions.\+cpp}}
  98. \subsubsection[{count\+Digits}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int count\+Digits (
  99. \begin{DoxyParamCaption}
  100. \item[{const string \&}]{st}
  101. \end{DoxyParamCaption}
  102. )}\label{psfunctions_8cpp_acd1e5c55d28085d1be2e69f0819b7770}
  103. Given a string will return the number of digits.
  104. \begin{DoxyParams}{Parameters}
  105. {\em st} & string by reference to analyze \\
  106. \hline
  107. \end{DoxyParams}
  108. \hypertarget{psfunctions_8cpp_a7d01626f2baa8c0c35a85b6a462e5adb}{}\index{psfunctions.\+cpp@{psfunctions.\+cpp}!count\+Lowercase@{count\+Lowercase}}
  109. \index{count\+Lowercase@{count\+Lowercase}!psfunctions.\+cpp@{psfunctions.\+cpp}}
  110. \subsubsection[{count\+Lowercase}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int count\+Lowercase (
  111. \begin{DoxyParamCaption}
  112. \item[{const string \&}]{st}
  113. \end{DoxyParamCaption}
  114. )}\label{psfunctions_8cpp_a7d01626f2baa8c0c35a85b6a462e5adb}
  115. Given a string will return the number of lowercase characters.
  116. \begin{DoxyParams}{Parameters}
  117. {\em st} & string by reference to analyze \\
  118. \hline
  119. \end{DoxyParams}
  120. \hypertarget{psfunctions_8cpp_a4bdb8eb13658c5b22f256d14f3104e2e}{}\index{psfunctions.\+cpp@{psfunctions.\+cpp}!count\+Symbols@{count\+Symbols}}
  121. \index{count\+Symbols@{count\+Symbols}!psfunctions.\+cpp@{psfunctions.\+cpp}}
  122. \subsubsection[{count\+Symbols}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int count\+Symbols (
  123. \begin{DoxyParamCaption}
  124. \item[{const string \&}]{st}
  125. \end{DoxyParamCaption}
  126. )}\label{psfunctions_8cpp_a4bdb8eb13658c5b22f256d14f3104e2e}
  127. Given a string will return the number of symbols.
  128. \begin{DoxyParams}{Parameters}
  129. {\em st} & string by reference to analyze \\
  130. \hline
  131. \end{DoxyParams}
  132. \hypertarget{psfunctions_8cpp_ad579313c6ea7443438cffe04f4989846}{}\index{psfunctions.\+cpp@{psfunctions.\+cpp}!count\+Uppercase@{count\+Uppercase}}
  133. \index{count\+Uppercase@{count\+Uppercase}!psfunctions.\+cpp@{psfunctions.\+cpp}}
  134. \subsubsection[{count\+Uppercase}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int count\+Uppercase (
  135. \begin{DoxyParamCaption}
  136. \item[{const string \&}]{st}
  137. \end{DoxyParamCaption}
  138. )}\label{psfunctions_8cpp_ad579313c6ea7443438cffe04f4989846}
  139. Given a string will return the number of uppercase characters.
  140. \begin{DoxyParams}{Parameters}
  141. {\em st} & string by reference to analyze \\
  142. \hline
  143. \end{DoxyParams}
  144. \hypertarget{psfunctions_8cpp_ab3370c00b77ef1b29e70f08d4e7eaaf6}{}\index{psfunctions.\+cpp@{psfunctions.\+cpp}!is\+Digit\+Or\+Symbol@{is\+Digit\+Or\+Symbol}}
  145. \index{is\+Digit\+Or\+Symbol@{is\+Digit\+Or\+Symbol}!psfunctions.\+cpp@{psfunctions.\+cpp}}
  146. \subsubsection[{is\+Digit\+Or\+Symbol}]{\setlength{\rightskip}{0pt plus 5cm}int is\+Digit\+Or\+Symbol (
  147. \begin{DoxyParamCaption}
  148. \item[{int}]{c}
  149. \end{DoxyParamCaption}
  150. )}\label{psfunctions_8cpp_ab3370c00b77ef1b29e70f08d4e7eaaf6}
  151. Returns 1 if the passed argument is a digit or symbol.
  152. \begin{DoxyParams}{Parameters}
  153. {\em c} & the character to be analyzed. \\
  154. \hline
  155. \end{DoxyParams}
  156. \hypertarget{psfunctions_8cpp_adb8d496f257d2b235032dd09af067ee1}{}\index{psfunctions.\+cpp@{psfunctions.\+cpp}!is\+Symbol@{is\+Symbol}}
  157. \index{is\+Symbol@{is\+Symbol}!psfunctions.\+cpp@{psfunctions.\+cpp}}
  158. \subsubsection[{is\+Symbol}]{\setlength{\rightskip}{0pt plus 5cm}int is\+Symbol (
  159. \begin{DoxyParamCaption}
  160. \item[{int}]{c}
  161. \end{DoxyParamCaption}
  162. )}\label{psfunctions_8cpp_adb8d496f257d2b235032dd09af067ee1}
  163. Returns 1 if the passed argument is a symbol.
  164. \begin{DoxyParams}{Parameters}
  165. {\em c} & the character to be analyzed. \\
  166. \hline
  167. \end{DoxyParams}
  168. \hypertarget{psfunctions_8cpp_a3f78ae9f503ae80597803d018d5afec0}{}\index{psfunctions.\+cpp@{psfunctions.\+cpp}!middle\+Digits\+Or\+Symbols@{middle\+Digits\+Or\+Symbols}}
  169. \index{middle\+Digits\+Or\+Symbols@{middle\+Digits\+Or\+Symbols}!psfunctions.\+cpp@{psfunctions.\+cpp}}
  170. \subsubsection[{middle\+Digits\+Or\+Symbols}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int middle\+Digits\+Or\+Symbols (
  171. \begin{DoxyParamCaption}
  172. \item[{const string \&}]{st}
  173. \end{DoxyParamCaption}
  174. )}\label{psfunctions_8cpp_a3f78ae9f503ae80597803d018d5afec0}
  175. Returns the number of digits and symbols that are not the first or last characters of the received string.
  176. \begin{DoxyParams}{Parameters}
  177. {\em st} & string by reference to analyze \\
  178. \hline
  179. \end{DoxyParams}
  180. \hypertarget{psfunctions_8cpp_a46157ef79156178bdf774a9315ea4d5c}{}\index{psfunctions.\+cpp@{psfunctions.\+cpp}!to\+Upper\+String@{to\+Upper\+String}}
  181. \index{to\+Upper\+String@{to\+Upper\+String}!psfunctions.\+cpp@{psfunctions.\+cpp}}
  182. \subsubsection[{to\+Upper\+String}]{\setlength{\rightskip}{0pt plus 5cm}string to\+Upper\+String (
  183. \begin{DoxyParamCaption}
  184. \item[{const string \&}]{st}
  185. \end{DoxyParamCaption}
  186. )}\label{psfunctions_8cpp_a46157ef79156178bdf774a9315ea4d5c}
  187. Returns an uppercase version of the received string.
  188. \begin{DoxyParams}{Parameters}
  189. {\em st} & string by reference to analyze \\
  190. \hline
  191. \end{DoxyParams}