\hypertarget{psfunctions_8h}{}\section{psfunctions.\+h File Reference} \label{psfunctions_8h}\index{psfunctions.\+h@{psfunctions.\+h}} {\ttfamily \#include $<$iostream$>$}\\* {\ttfamily \#include $<$string$>$}\\* \subsection*{Functions} \begin{DoxyCompactItemize} \item string \hyperlink{psfunctions_8h_a46157ef79156178bdf774a9315ea4d5c}{to\+Upper\+String} (const string \&st) \begin{DoxyCompactList}\small\item\em Returns an uppercase version of the received string. \end{DoxyCompactList}\item \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} \item unsigned int \hyperlink{psfunctions_8h_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_8h_a7d01626f2baa8c0c35a85b6a462e5adb}{count\+Lowercase} (const string \&st) \begin{DoxyCompactList}\small\item\em Given a string will return the number of lowercase characters. \end{DoxyCompactList}\item unsigned int \hyperlink{psfunctions_8h_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_8h_a4bdb8eb13658c5b22f256d14f3104e2e}{count\+Symbols} (const string \&st) \begin{DoxyCompactList}\small\item\em Given a string will return the number of symbols. \end{DoxyCompactList}\item unsigned int \hyperlink{psfunctions_8h_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 int \hyperlink{psfunctions_8h_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_8h_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 \hypertarget{psfunctions_8h_afe0bd6a220d8dd86082921912596f812}{}unsigned int {\bfseries count\+Consecutive} (const string \&st, int($\ast$filter\+Function)(int args))\label{psfunctions_8h_afe0bd6a220d8dd86082921912596f812} \item unsigned int \hyperlink{psfunctions_8h_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_8h_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_8h_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_8h_aa9ab4449505a06cee6a2d754aa748a33}{}\index{psfunctions.\+h@{psfunctions.\+h}!consec\+Digits@{consec\+Digits}} \index{consec\+Digits@{consec\+Digits}!psfunctions.\+h@{psfunctions.\+h}} \subsubsection[{consec\+Digits}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int consec\+Digits ( \begin{DoxyParamCaption} \item[{const string \&}]{st} \end{DoxyParamCaption} )}\label{psfunctions_8h_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_8h_a9ebde4a11e5ad25a85ab40428ea2b03f}{}\index{psfunctions.\+h@{psfunctions.\+h}!consec\+Lowercase@{consec\+Lowercase}} \index{consec\+Lowercase@{consec\+Lowercase}!psfunctions.\+h@{psfunctions.\+h}} \subsubsection[{consec\+Lowercase}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int consec\+Lowercase ( \begin{DoxyParamCaption} \item[{const string \&}]{st} \end{DoxyParamCaption} )}\label{psfunctions_8h_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_8h_aed852eb177989f956aa44943c993f723}{}\index{psfunctions.\+h@{psfunctions.\+h}!consec\+Uppercase@{consec\+Uppercase}} \index{consec\+Uppercase@{consec\+Uppercase}!psfunctions.\+h@{psfunctions.\+h}} \subsubsection[{consec\+Uppercase}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int consec\+Uppercase ( \begin{DoxyParamCaption} \item[{const string \&}]{st} \end{DoxyParamCaption} )}\label{psfunctions_8h_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_8h_acd1e5c55d28085d1be2e69f0819b7770}{}\index{psfunctions.\+h@{psfunctions.\+h}!count\+Digits@{count\+Digits}} \index{count\+Digits@{count\+Digits}!psfunctions.\+h@{psfunctions.\+h}} \subsubsection[{count\+Digits}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int count\+Digits ( \begin{DoxyParamCaption} \item[{const string \&}]{st} \end{DoxyParamCaption} )}\label{psfunctions_8h_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_8h_a7d01626f2baa8c0c35a85b6a462e5adb}{}\index{psfunctions.\+h@{psfunctions.\+h}!count\+Lowercase@{count\+Lowercase}} \index{count\+Lowercase@{count\+Lowercase}!psfunctions.\+h@{psfunctions.\+h}} \subsubsection[{count\+Lowercase}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int count\+Lowercase ( \begin{DoxyParamCaption} \item[{const string \&}]{st} \end{DoxyParamCaption} )}\label{psfunctions_8h_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_8h_a4bdb8eb13658c5b22f256d14f3104e2e}{}\index{psfunctions.\+h@{psfunctions.\+h}!count\+Symbols@{count\+Symbols}} \index{count\+Symbols@{count\+Symbols}!psfunctions.\+h@{psfunctions.\+h}} \subsubsection[{count\+Symbols}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int count\+Symbols ( \begin{DoxyParamCaption} \item[{const string \&}]{st} \end{DoxyParamCaption} )}\label{psfunctions_8h_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_8h_ad579313c6ea7443438cffe04f4989846}{}\index{psfunctions.\+h@{psfunctions.\+h}!count\+Uppercase@{count\+Uppercase}} \index{count\+Uppercase@{count\+Uppercase}!psfunctions.\+h@{psfunctions.\+h}} \subsubsection[{count\+Uppercase}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int count\+Uppercase ( \begin{DoxyParamCaption} \item[{const string \&}]{st} \end{DoxyParamCaption} )}\label{psfunctions_8h_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_8h_ab3370c00b77ef1b29e70f08d4e7eaaf6}{}\index{psfunctions.\+h@{psfunctions.\+h}!is\+Digit\+Or\+Symbol@{is\+Digit\+Or\+Symbol}} \index{is\+Digit\+Or\+Symbol@{is\+Digit\+Or\+Symbol}!psfunctions.\+h@{psfunctions.\+h}} \subsubsection[{is\+Digit\+Or\+Symbol}]{\setlength{\rightskip}{0pt plus 5cm}int is\+Digit\+Or\+Symbol ( \begin{DoxyParamCaption} \item[{int}]{c} \end{DoxyParamCaption} )}\label{psfunctions_8h_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_8h_adb8d496f257d2b235032dd09af067ee1}{}\index{psfunctions.\+h@{psfunctions.\+h}!is\+Symbol@{is\+Symbol}} \index{is\+Symbol@{is\+Symbol}!psfunctions.\+h@{psfunctions.\+h}} \subsubsection[{is\+Symbol}]{\setlength{\rightskip}{0pt plus 5cm}int is\+Symbol ( \begin{DoxyParamCaption} \item[{int}]{c} \end{DoxyParamCaption} )}\label{psfunctions_8h_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_8h_a3f78ae9f503ae80597803d018d5afec0}{}\index{psfunctions.\+h@{psfunctions.\+h}!middle\+Digits\+Or\+Symbols@{middle\+Digits\+Or\+Symbols}} \index{middle\+Digits\+Or\+Symbols@{middle\+Digits\+Or\+Symbols}!psfunctions.\+h@{psfunctions.\+h}} \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_8h_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_8h_a46157ef79156178bdf774a9315ea4d5c}{}\index{psfunctions.\+h@{psfunctions.\+h}!to\+Upper\+String@{to\+Upper\+String}} \index{to\+Upper\+String@{to\+Upper\+String}!psfunctions.\+h@{psfunctions.\+h}} \subsubsection[{to\+Upper\+String}]{\setlength{\rightskip}{0pt plus 5cm}string to\+Upper\+String ( \begin{DoxyParamCaption} \item[{const string \&}]{st} \end{DoxyParamCaption} )}\label{psfunctions_8h_a46157ef79156178bdf774a9315ea4d5c} Returns an uppercase version of the received string. \begin{DoxyParams}{Parameters} {\em st} & string by reference to analyze \\ \hline \end{DoxyParams}