Keine Beschreibung

psfunctions_8h.tex 10KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. \hypertarget{psfunctions_8h}{}\section{psfunctions.\+h File Reference}
  2. \label{psfunctions_8h}\index{psfunctions.\+h@{psfunctions.\+h}}
  3. {\ttfamily \#include $<$iostream$>$}\\*
  4. {\ttfamily \#include $<$string$>$}\\*
  5. \subsection*{Functions}
  6. \begin{DoxyCompactItemize}
  7. \item
  8. string \hyperlink{psfunctions_8h_a46157ef79156178bdf774a9315ea4d5c}{to\+Upper\+String} (const string \&st)
  9. \begin{DoxyCompactList}\small\item\em Returns an uppercase version of the received string. \end{DoxyCompactList}\item
  10. \hypertarget{psfunctions_8h_a217f6690153d520dcaec865eaad24f4c}{}unsigned int {\bfseries count\+Chars\+Of\+Type} (const string \&st, int($\ast$filter\+Function)(int args), unsigned int from\+Idx, unsigned int to\+Idx)\label{psfunctions_8h_a217f6690153d520dcaec865eaad24f4c}
  11. \item
  12. unsigned int \hyperlink{psfunctions_8h_ad579313c6ea7443438cffe04f4989846}{count\+Uppercase} (const string \&st)
  13. \begin{DoxyCompactList}\small\item\em Given a string will return the number of uppercase characters. \end{DoxyCompactList}\item
  14. unsigned int \hyperlink{psfunctions_8h_a7d01626f2baa8c0c35a85b6a462e5adb}{count\+Lowercase} (const string \&st)
  15. \begin{DoxyCompactList}\small\item\em Given a string will return the number of lowercase characters. \end{DoxyCompactList}\item
  16. unsigned int \hyperlink{psfunctions_8h_acd1e5c55d28085d1be2e69f0819b7770}{count\+Digits} (const string \&st)
  17. \begin{DoxyCompactList}\small\item\em Given a string will return the number of digits. \end{DoxyCompactList}\item
  18. unsigned int \hyperlink{psfunctions_8h_a4bdb8eb13658c5b22f256d14f3104e2e}{count\+Symbols} (const string \&st)
  19. \begin{DoxyCompactList}\small\item\em Given a string will return the number of symbols. \end{DoxyCompactList}\item
  20. unsigned int \hyperlink{psfunctions_8h_a3f78ae9f503ae80597803d018d5afec0}{middle\+Digits\+Or\+Symbols} (const string \&st)
  21. \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
  22. int \hyperlink{psfunctions_8h_adb8d496f257d2b235032dd09af067ee1}{is\+Symbol} (int c)
  23. \begin{DoxyCompactList}\small\item\em Returns 1 if the passed argument is a symbol. \end{DoxyCompactList}\item
  24. int \hyperlink{psfunctions_8h_ab3370c00b77ef1b29e70f08d4e7eaaf6}{is\+Digit\+Or\+Symbol} (int c)
  25. \begin{DoxyCompactList}\small\item\em Returns 1 if the passed argument is a digit or symbol. \end{DoxyCompactList}\item
  26. \hypertarget{psfunctions_8h_afe0bd6a220d8dd86082921912596f812}{}unsigned int {\bfseries count\+Consecutive} (const string \&st, int($\ast$filter\+Function)(int args))\label{psfunctions_8h_afe0bd6a220d8dd86082921912596f812}
  27. \item
  28. unsigned int \hyperlink{psfunctions_8h_aed852eb177989f956aa44943c993f723}{consec\+Uppercase} (const string \&st)
  29. \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
  30. unsigned int \hyperlink{psfunctions_8h_a9ebde4a11e5ad25a85ab40428ea2b03f}{consec\+Lowercase} (const string \&st)
  31. \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
  32. unsigned int \hyperlink{psfunctions_8h_aa9ab4449505a06cee6a2d754aa748a33}{consec\+Digits} (const string \&st)
  33. \begin{DoxyCompactList}\small\item\em Given a string will return the number of digits that follow a digit. \end{DoxyCompactList}\end{DoxyCompactItemize}
  34. \subsection{Function Documentation}
  35. \hypertarget{psfunctions_8h_aa9ab4449505a06cee6a2d754aa748a33}{}\index{psfunctions.\+h@{psfunctions.\+h}!consec\+Digits@{consec\+Digits}}
  36. \index{consec\+Digits@{consec\+Digits}!psfunctions.\+h@{psfunctions.\+h}}
  37. \subsubsection[{consec\+Digits}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int consec\+Digits (
  38. \begin{DoxyParamCaption}
  39. \item[{const string \&}]{st}
  40. \end{DoxyParamCaption}
  41. )}\label{psfunctions_8h_aa9ab4449505a06cee6a2d754aa748a33}
  42. Given a string will return the number of digits that follow a digit.
  43. \begin{DoxyParams}{Parameters}
  44. {\em st} & string by reference to analyze \\
  45. \hline
  46. \end{DoxyParams}
  47. \hypertarget{psfunctions_8h_a9ebde4a11e5ad25a85ab40428ea2b03f}{}\index{psfunctions.\+h@{psfunctions.\+h}!consec\+Lowercase@{consec\+Lowercase}}
  48. \index{consec\+Lowercase@{consec\+Lowercase}!psfunctions.\+h@{psfunctions.\+h}}
  49. \subsubsection[{consec\+Lowercase}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int consec\+Lowercase (
  50. \begin{DoxyParamCaption}
  51. \item[{const string \&}]{st}
  52. \end{DoxyParamCaption}
  53. )}\label{psfunctions_8h_a9ebde4a11e5ad25a85ab40428ea2b03f}
  54. Given a string will return the number of lowercase characters that follow a character of that same type.
  55. \begin{DoxyParams}{Parameters}
  56. {\em st} & string by reference to analyze \\
  57. \hline
  58. \end{DoxyParams}
  59. \hypertarget{psfunctions_8h_aed852eb177989f956aa44943c993f723}{}\index{psfunctions.\+h@{psfunctions.\+h}!consec\+Uppercase@{consec\+Uppercase}}
  60. \index{consec\+Uppercase@{consec\+Uppercase}!psfunctions.\+h@{psfunctions.\+h}}
  61. \subsubsection[{consec\+Uppercase}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int consec\+Uppercase (
  62. \begin{DoxyParamCaption}
  63. \item[{const string \&}]{st}
  64. \end{DoxyParamCaption}
  65. )}\label{psfunctions_8h_aed852eb177989f956aa44943c993f723}
  66. Given a string will return the number of uppercase characters that follow a character of that same type.
  67. \begin{DoxyParams}{Parameters}
  68. {\em st} & string by reference to analyze \\
  69. \hline
  70. \end{DoxyParams}
  71. \hypertarget{psfunctions_8h_acd1e5c55d28085d1be2e69f0819b7770}{}\index{psfunctions.\+h@{psfunctions.\+h}!count\+Digits@{count\+Digits}}
  72. \index{count\+Digits@{count\+Digits}!psfunctions.\+h@{psfunctions.\+h}}
  73. \subsubsection[{count\+Digits}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int count\+Digits (
  74. \begin{DoxyParamCaption}
  75. \item[{const string \&}]{st}
  76. \end{DoxyParamCaption}
  77. )}\label{psfunctions_8h_acd1e5c55d28085d1be2e69f0819b7770}
  78. Given a string will return the number of digits.
  79. \begin{DoxyParams}{Parameters}
  80. {\em st} & string by reference to analyze \\
  81. \hline
  82. \end{DoxyParams}
  83. \hypertarget{psfunctions_8h_a7d01626f2baa8c0c35a85b6a462e5adb}{}\index{psfunctions.\+h@{psfunctions.\+h}!count\+Lowercase@{count\+Lowercase}}
  84. \index{count\+Lowercase@{count\+Lowercase}!psfunctions.\+h@{psfunctions.\+h}}
  85. \subsubsection[{count\+Lowercase}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int count\+Lowercase (
  86. \begin{DoxyParamCaption}
  87. \item[{const string \&}]{st}
  88. \end{DoxyParamCaption}
  89. )}\label{psfunctions_8h_a7d01626f2baa8c0c35a85b6a462e5adb}
  90. Given a string will return the number of lowercase characters.
  91. \begin{DoxyParams}{Parameters}
  92. {\em st} & string by reference to analyze \\
  93. \hline
  94. \end{DoxyParams}
  95. \hypertarget{psfunctions_8h_a4bdb8eb13658c5b22f256d14f3104e2e}{}\index{psfunctions.\+h@{psfunctions.\+h}!count\+Symbols@{count\+Symbols}}
  96. \index{count\+Symbols@{count\+Symbols}!psfunctions.\+h@{psfunctions.\+h}}
  97. \subsubsection[{count\+Symbols}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int count\+Symbols (
  98. \begin{DoxyParamCaption}
  99. \item[{const string \&}]{st}
  100. \end{DoxyParamCaption}
  101. )}\label{psfunctions_8h_a4bdb8eb13658c5b22f256d14f3104e2e}
  102. Given a string will return the number of symbols.
  103. \begin{DoxyParams}{Parameters}
  104. {\em st} & string by reference to analyze \\
  105. \hline
  106. \end{DoxyParams}
  107. \hypertarget{psfunctions_8h_ad579313c6ea7443438cffe04f4989846}{}\index{psfunctions.\+h@{psfunctions.\+h}!count\+Uppercase@{count\+Uppercase}}
  108. \index{count\+Uppercase@{count\+Uppercase}!psfunctions.\+h@{psfunctions.\+h}}
  109. \subsubsection[{count\+Uppercase}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int count\+Uppercase (
  110. \begin{DoxyParamCaption}
  111. \item[{const string \&}]{st}
  112. \end{DoxyParamCaption}
  113. )}\label{psfunctions_8h_ad579313c6ea7443438cffe04f4989846}
  114. Given a string will return the number of uppercase characters.
  115. \begin{DoxyParams}{Parameters}
  116. {\em st} & string by reference to analyze \\
  117. \hline
  118. \end{DoxyParams}
  119. \hypertarget{psfunctions_8h_ab3370c00b77ef1b29e70f08d4e7eaaf6}{}\index{psfunctions.\+h@{psfunctions.\+h}!is\+Digit\+Or\+Symbol@{is\+Digit\+Or\+Symbol}}
  120. \index{is\+Digit\+Or\+Symbol@{is\+Digit\+Or\+Symbol}!psfunctions.\+h@{psfunctions.\+h}}
  121. \subsubsection[{is\+Digit\+Or\+Symbol}]{\setlength{\rightskip}{0pt plus 5cm}int is\+Digit\+Or\+Symbol (
  122. \begin{DoxyParamCaption}
  123. \item[{int}]{c}
  124. \end{DoxyParamCaption}
  125. )}\label{psfunctions_8h_ab3370c00b77ef1b29e70f08d4e7eaaf6}
  126. Returns 1 if the passed argument is a digit or symbol.
  127. \begin{DoxyParams}{Parameters}
  128. {\em c} & the character to be analyzed. \\
  129. \hline
  130. \end{DoxyParams}
  131. \hypertarget{psfunctions_8h_adb8d496f257d2b235032dd09af067ee1}{}\index{psfunctions.\+h@{psfunctions.\+h}!is\+Symbol@{is\+Symbol}}
  132. \index{is\+Symbol@{is\+Symbol}!psfunctions.\+h@{psfunctions.\+h}}
  133. \subsubsection[{is\+Symbol}]{\setlength{\rightskip}{0pt plus 5cm}int is\+Symbol (
  134. \begin{DoxyParamCaption}
  135. \item[{int}]{c}
  136. \end{DoxyParamCaption}
  137. )}\label{psfunctions_8h_adb8d496f257d2b235032dd09af067ee1}
  138. Returns 1 if the passed argument is a symbol.
  139. \begin{DoxyParams}{Parameters}
  140. {\em c} & the character to be analyzed. \\
  141. \hline
  142. \end{DoxyParams}
  143. \hypertarget{psfunctions_8h_a3f78ae9f503ae80597803d018d5afec0}{}\index{psfunctions.\+h@{psfunctions.\+h}!middle\+Digits\+Or\+Symbols@{middle\+Digits\+Or\+Symbols}}
  144. \index{middle\+Digits\+Or\+Symbols@{middle\+Digits\+Or\+Symbols}!psfunctions.\+h@{psfunctions.\+h}}
  145. \subsubsection[{middle\+Digits\+Or\+Symbols}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int middle\+Digits\+Or\+Symbols (
  146. \begin{DoxyParamCaption}
  147. \item[{const string \&}]{st}
  148. \end{DoxyParamCaption}
  149. )}\label{psfunctions_8h_a3f78ae9f503ae80597803d018d5afec0}
  150. Returns the number of digits and symbols that are not the first or last characters of the received string.
  151. \begin{DoxyParams}{Parameters}
  152. {\em st} & string by reference to analyze \\
  153. \hline
  154. \end{DoxyParams}
  155. \hypertarget{psfunctions_8h_a46157ef79156178bdf774a9315ea4d5c}{}\index{psfunctions.\+h@{psfunctions.\+h}!to\+Upper\+String@{to\+Upper\+String}}
  156. \index{to\+Upper\+String@{to\+Upper\+String}!psfunctions.\+h@{psfunctions.\+h}}
  157. \subsubsection[{to\+Upper\+String}]{\setlength{\rightskip}{0pt plus 5cm}string to\+Upper\+String (
  158. \begin{DoxyParamCaption}
  159. \item[{const string \&}]{st}
  160. \end{DoxyParamCaption}
  161. )}\label{psfunctions_8h_a46157ef79156178bdf774a9315ea4d5c}
  162. Returns an uppercase version of the received string.
  163. \begin{DoxyParams}{Parameters}
  164. {\em st} & string by reference to analyze \\
  165. \hline
  166. \end{DoxyParams}