\hypertarget{psfunctions_8cpp}{}\section{psfunctions.\+cpp File Reference} \label{psfunctions_8cpp}\index{psfunctions.\+cpp@{psfunctions.\+cpp}} {\ttfamily \#include \char`\"{}psfunctions.\+h\char`\"{}}\\* \subsection*{Functions} \begin{DoxyCompactItemize} \item 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) \begin{DoxyCompactList}\small\item\em Given a string will return the number of characters of a certain type. \end{DoxyCompactList}\item unsigned int \hyperlink{psfunctions_8cpp_ad579313c6ea7443438cffe04f4989846}{count\+Uppercase} (const string \&st) \begin{DoxyCompactList}\small\item\em Given a string will return the number of uppercase characters. \end{DoxyCompactList}\item unsigned int \hyperlink{psfunctions_8cpp_a7d01626f2baa8c0c35a85b6a462e5adb}{count\+Lowercase} (const string \&st) \begin{DoxyCompactList}\small\item\em Given a string will return the number of lowercase characters. \end{DoxyCompactList}\item int \hyperlink{psfunctions_8cpp_adb8d496f257d2b235032dd09af067ee1}{is\+Symbol} (int c) \begin{DoxyCompactList}\small\item\em Returns 1 if the passed argument is a symbol. \end{DoxyCompactList}\item int \hyperlink{psfunctions_8cpp_ab3370c00b77ef1b29e70f08d4e7eaaf6}{is\+Digit\+Or\+Symbol} (int c) \begin{DoxyCompactList}\small\item\em Returns 1 if the passed argument is a digit or symbol. \end{DoxyCompactList}\item unsigned int \hyperlink{psfunctions_8cpp_acd1e5c55d28085d1be2e69f0819b7770}{count\+Digits} (const string \&st) \begin{DoxyCompactList}\small\item\em Given a string will return the number of digits. \end{DoxyCompactList}\item unsigned int \hyperlink{psfunctions_8cpp_a4bdb8eb13658c5b22f256d14f3104e2e}{count\+Symbols} (const string \&st) \begin{DoxyCompactList}\small\item\em Given a string will return the number of symbols. \end{DoxyCompactList}\item string \hyperlink{psfunctions_8cpp_a46157ef79156178bdf774a9315ea4d5c}{to\+Upper\+String} (const string \&st) \begin{DoxyCompactList}\small\item\em Returns an uppercase version of the received string. \end{DoxyCompactList}\item unsigned int \hyperlink{psfunctions_8cpp_a3f78ae9f503ae80597803d018d5afec0}{middle\+Digits\+Or\+Symbols} (const string \&st) \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 \hypertarget{psfunctions_8cpp_afe0bd6a220d8dd86082921912596f812}{}unsigned int {\bfseries count\+Consecutive} (const string \&st, int($\ast$filter\+Function)(int args))\label{psfunctions_8cpp_afe0bd6a220d8dd86082921912596f812} \item unsigned int \hyperlink{psfunctions_8cpp_aed852eb177989f956aa44943c993f723}{consec\+Uppercase} (const string \&st) \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 unsigned int \hyperlink{psfunctions_8cpp_a9ebde4a11e5ad25a85ab40428ea2b03f}{consec\+Lowercase} (const string \&st) \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 unsigned int \hyperlink{psfunctions_8cpp_aa9ab4449505a06cee6a2d754aa748a33}{consec\+Digits} (const string \&st) \begin{DoxyCompactList}\small\item\em Given a string will return the number of digits that follow a digit. \end{DoxyCompactList}\end{DoxyCompactItemize} \subsection{Function Documentation} \hypertarget{psfunctions_8cpp_aa9ab4449505a06cee6a2d754aa748a33}{}\index{psfunctions.\+cpp@{psfunctions.\+cpp}!consec\+Digits@{consec\+Digits}} \index{consec\+Digits@{consec\+Digits}!psfunctions.\+cpp@{psfunctions.\+cpp}} \subsubsection[{consec\+Digits}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int consec\+Digits ( \begin{DoxyParamCaption} \item[{const string \&}]{st} \end{DoxyParamCaption} )}\label{psfunctions_8cpp_aa9ab4449505a06cee6a2d754aa748a33} Given a string will return the number of digits that follow a digit. \begin{DoxyParams}{Parameters} {\em st} & string by reference to analyze \\ \hline \end{DoxyParams} \hypertarget{psfunctions_8cpp_a9ebde4a11e5ad25a85ab40428ea2b03f}{}\index{psfunctions.\+cpp@{psfunctions.\+cpp}!consec\+Lowercase@{consec\+Lowercase}} \index{consec\+Lowercase@{consec\+Lowercase}!psfunctions.\+cpp@{psfunctions.\+cpp}} \subsubsection[{consec\+Lowercase}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int consec\+Lowercase ( \begin{DoxyParamCaption} \item[{const string \&}]{st} \end{DoxyParamCaption} )}\label{psfunctions_8cpp_a9ebde4a11e5ad25a85ab40428ea2b03f} Given a string will return the number of lowercase characters that follow a character of that same type. \begin{DoxyParams}{Parameters} {\em st} & string by reference to analyze \\ \hline \end{DoxyParams} \hypertarget{psfunctions_8cpp_aed852eb177989f956aa44943c993f723}{}\index{psfunctions.\+cpp@{psfunctions.\+cpp}!consec\+Uppercase@{consec\+Uppercase}} \index{consec\+Uppercase@{consec\+Uppercase}!psfunctions.\+cpp@{psfunctions.\+cpp}} \subsubsection[{consec\+Uppercase}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int consec\+Uppercase ( \begin{DoxyParamCaption} \item[{const string \&}]{st} \end{DoxyParamCaption} )}\label{psfunctions_8cpp_aed852eb177989f956aa44943c993f723} Given a string will return the number of uppercase characters that follow a character of that same type. \begin{DoxyParams}{Parameters} {\em st} & string by reference to analyze \\ \hline \end{DoxyParams} \hypertarget{psfunctions_8cpp_a1037ae10cf2e9029a971c4346a3ddbc3}{}\index{psfunctions.\+cpp@{psfunctions.\+cpp}!count\+Chars\+Of\+Type@{count\+Chars\+Of\+Type}} \index{count\+Chars\+Of\+Type@{count\+Chars\+Of\+Type}!psfunctions.\+cpp@{psfunctions.\+cpp}} \subsubsection[{count\+Chars\+Of\+Type}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int count\+Chars\+Of\+Type ( \begin{DoxyParamCaption} \item[{const string \&}]{st, } \item[{int($\ast$)(int args)}]{filter\+Function, } \item[{int}]{from\+Idx = {\ttfamily 0}, } \item[{int}]{to\+Idx = {\ttfamily -\/1}} \end{DoxyParamCaption} )}\label{psfunctions_8cpp_a1037ae10cf2e9029a971c4346a3ddbc3} Given a string will return the number of characters of a certain type. Given a string will return the number of characters of a certain type that follow a character of that same type. \begin{DoxyParams}{Parameters} {\em st} & string to analyze \\ \hline {\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. \\ \hline {\em from\+Idx} & index from where to start count \\ \hline {\em to\+Idx} & last index for count\\ \hline {\em st} & string to analyze \\ \hline {\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. \\ \hline \end{DoxyParams} \hypertarget{psfunctions_8cpp_acd1e5c55d28085d1be2e69f0819b7770}{}\index{psfunctions.\+cpp@{psfunctions.\+cpp}!count\+Digits@{count\+Digits}} \index{count\+Digits@{count\+Digits}!psfunctions.\+cpp@{psfunctions.\+cpp}} \subsubsection[{count\+Digits}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int count\+Digits ( \begin{DoxyParamCaption} \item[{const string \&}]{st} \end{DoxyParamCaption} )}\label{psfunctions_8cpp_acd1e5c55d28085d1be2e69f0819b7770} Given a string will return the number of digits. \begin{DoxyParams}{Parameters} {\em st} & string by reference to analyze \\ \hline \end{DoxyParams} \hypertarget{psfunctions_8cpp_a7d01626f2baa8c0c35a85b6a462e5adb}{}\index{psfunctions.\+cpp@{psfunctions.\+cpp}!count\+Lowercase@{count\+Lowercase}} \index{count\+Lowercase@{count\+Lowercase}!psfunctions.\+cpp@{psfunctions.\+cpp}} \subsubsection[{count\+Lowercase}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int count\+Lowercase ( \begin{DoxyParamCaption} \item[{const string \&}]{st} \end{DoxyParamCaption} )}\label{psfunctions_8cpp_a7d01626f2baa8c0c35a85b6a462e5adb} Given a string will return the number of lowercase characters. \begin{DoxyParams}{Parameters} {\em st} & string by reference to analyze \\ \hline \end{DoxyParams} \hypertarget{psfunctions_8cpp_a4bdb8eb13658c5b22f256d14f3104e2e}{}\index{psfunctions.\+cpp@{psfunctions.\+cpp}!count\+Symbols@{count\+Symbols}} \index{count\+Symbols@{count\+Symbols}!psfunctions.\+cpp@{psfunctions.\+cpp}} \subsubsection[{count\+Symbols}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int count\+Symbols ( \begin{DoxyParamCaption} \item[{const string \&}]{st} \end{DoxyParamCaption} )}\label{psfunctions_8cpp_a4bdb8eb13658c5b22f256d14f3104e2e} Given a string will return the number of symbols. \begin{DoxyParams}{Parameters} {\em st} & string by reference to analyze \\ \hline \end{DoxyParams} \hypertarget{psfunctions_8cpp_ad579313c6ea7443438cffe04f4989846}{}\index{psfunctions.\+cpp@{psfunctions.\+cpp}!count\+Uppercase@{count\+Uppercase}} \index{count\+Uppercase@{count\+Uppercase}!psfunctions.\+cpp@{psfunctions.\+cpp}} \subsubsection[{count\+Uppercase}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int count\+Uppercase ( \begin{DoxyParamCaption} \item[{const string \&}]{st} \end{DoxyParamCaption} )}\label{psfunctions_8cpp_ad579313c6ea7443438cffe04f4989846} Given a string will return the number of uppercase characters. \begin{DoxyParams}{Parameters} {\em st} & string by reference to analyze \\ \hline \end{DoxyParams} \hypertarget{psfunctions_8cpp_ab3370c00b77ef1b29e70f08d4e7eaaf6}{}\index{psfunctions.\+cpp@{psfunctions.\+cpp}!is\+Digit\+Or\+Symbol@{is\+Digit\+Or\+Symbol}} \index{is\+Digit\+Or\+Symbol@{is\+Digit\+Or\+Symbol}!psfunctions.\+cpp@{psfunctions.\+cpp}} \subsubsection[{is\+Digit\+Or\+Symbol}]{\setlength{\rightskip}{0pt plus 5cm}int is\+Digit\+Or\+Symbol ( \begin{DoxyParamCaption} \item[{int}]{c} \end{DoxyParamCaption} )}\label{psfunctions_8cpp_ab3370c00b77ef1b29e70f08d4e7eaaf6} Returns 1 if the passed argument is a digit or symbol. \begin{DoxyParams}{Parameters} {\em c} & the character to be analyzed. \\ \hline \end{DoxyParams} \hypertarget{psfunctions_8cpp_adb8d496f257d2b235032dd09af067ee1}{}\index{psfunctions.\+cpp@{psfunctions.\+cpp}!is\+Symbol@{is\+Symbol}} \index{is\+Symbol@{is\+Symbol}!psfunctions.\+cpp@{psfunctions.\+cpp}} \subsubsection[{is\+Symbol}]{\setlength{\rightskip}{0pt plus 5cm}int is\+Symbol ( \begin{DoxyParamCaption} \item[{int}]{c} \end{DoxyParamCaption} )}\label{psfunctions_8cpp_adb8d496f257d2b235032dd09af067ee1} Returns 1 if the passed argument is a symbol. \begin{DoxyParams}{Parameters} {\em c} & the character to be analyzed. \\ \hline \end{DoxyParams} \hypertarget{psfunctions_8cpp_a3f78ae9f503ae80597803d018d5afec0}{}\index{psfunctions.\+cpp@{psfunctions.\+cpp}!middle\+Digits\+Or\+Symbols@{middle\+Digits\+Or\+Symbols}} \index{middle\+Digits\+Or\+Symbols@{middle\+Digits\+Or\+Symbols}!psfunctions.\+cpp@{psfunctions.\+cpp}} \subsubsection[{middle\+Digits\+Or\+Symbols}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int middle\+Digits\+Or\+Symbols ( \begin{DoxyParamCaption} \item[{const string \&}]{st} \end{DoxyParamCaption} )}\label{psfunctions_8cpp_a3f78ae9f503ae80597803d018d5afec0} Returns the number of digits and symbols that are not the first or last characters of the received string. \begin{DoxyParams}{Parameters} {\em st} & string by reference to analyze \\ \hline \end{DoxyParams} \hypertarget{psfunctions_8cpp_a46157ef79156178bdf774a9315ea4d5c}{}\index{psfunctions.\+cpp@{psfunctions.\+cpp}!to\+Upper\+String@{to\+Upper\+String}} \index{to\+Upper\+String@{to\+Upper\+String}!psfunctions.\+cpp@{psfunctions.\+cpp}} \subsubsection[{to\+Upper\+String}]{\setlength{\rightskip}{0pt plus 5cm}string to\+Upper\+String ( \begin{DoxyParamCaption} \item[{const string \&}]{st} \end{DoxyParamCaption} )}\label{psfunctions_8cpp_a46157ef79156178bdf774a9315ea4d5c} Returns an uppercase version of the received string. \begin{DoxyParams}{Parameters} {\em st} & string by reference to analyze \\ \hline \end{DoxyParams}