\hypertarget{psfunctions_8cpp}{}\section{Referencia del Archivo psfunctions.\+cpp} \label{psfunctions_8cpp}\index{psfunctions.\+cpp@{psfunctions.\+cpp}} {\ttfamily \#include \char`\"{}psfunctions.\+h\char`\"{}}\\* \subsection*{Funciones} \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 Dada una cadena de caracters devuelve el numero de caracteres de un cierto tipo. \end{DoxyCompactList}\item unsigned int \hyperlink{psfunctions_8cpp_ad579313c6ea7443438cffe04f4989846}{count\+Uppercase} (const string \&st) \begin{DoxyCompactList}\small\item\em Dada una cadena de caracteres devolvera el numero de caracteres en mayuscula. \end{DoxyCompactList}\item unsigned int \hyperlink{psfunctions_8cpp_a7d01626f2baa8c0c35a85b6a462e5adb}{count\+Lowercase} (const string \&st) \begin{DoxyCompactList}\small\item\em Dada una cadena de caracteres devolvera el numero de caracteres en minuscula. \end{DoxyCompactList}\item int \hyperlink{psfunctions_8cpp_adb8d496f257d2b235032dd09af067ee1}{is\+Symbol} (int c) \begin{DoxyCompactList}\small\item\em Devuelve 1 si el argumento es un simbolo. \end{DoxyCompactList}\item int \hyperlink{psfunctions_8cpp_ab3370c00b77ef1b29e70f08d4e7eaaf6}{is\+Digit\+Or\+Symbol} (int c) \begin{DoxyCompactList}\small\item\em Devuelve 1 si el argumento es un digito o simbolo. \end{DoxyCompactList}\item unsigned int \hyperlink{psfunctions_8cpp_acd1e5c55d28085d1be2e69f0819b7770}{count\+Digits} (const string \&st) \begin{DoxyCompactList}\small\item\em Dada una cadena de caracteres devolvera el numero de digitos. \end{DoxyCompactList}\item unsigned int \hyperlink{psfunctions_8cpp_a4bdb8eb13658c5b22f256d14f3104e2e}{count\+Symbols} (const string \&st) \begin{DoxyCompactList}\small\item\em Dada una cadena de caracteres devolvera el numero de simbolos. \end{DoxyCompactList}\item string \hyperlink{psfunctions_8cpp_a46157ef79156178bdf774a9315ea4d5c}{to\+Upper\+String} (const string \&st) \begin{DoxyCompactList}\small\item\em Devuelve una version en mayusculas de la cadena de caracteres recibida. \end{DoxyCompactList}\item unsigned int \hyperlink{psfunctions_8cpp_a3f78ae9f503ae80597803d018d5afec0}{middle\+Digits\+Or\+Symbols} (const string \&st) \begin{DoxyCompactList}\small\item\em Devuelve el numero de digitos y simbolos que no son el primer o el ultimo caracter de la cadena recibida. \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 Dada una cadena devolvera el numero de caracteres en mayuscula que sigue a un caracter del mismo tipo. \end{DoxyCompactList}\item unsigned int \hyperlink{psfunctions_8cpp_a9ebde4a11e5ad25a85ab40428ea2b03f}{consec\+Lowercase} (const string \&st) \begin{DoxyCompactList}\small\item\em Dada una cadena devolvera el numero de caracteres en minuscula que sigue a un caracter del mismo tipo. \end{DoxyCompactList}\item unsigned int \hyperlink{psfunctions_8cpp_aa9ab4449505a06cee6a2d754aa748a33}{consec\+Digits} (const string \&st) \begin{DoxyCompactList}\small\item\em Dada una cadena devolvera el numero de digitos que sigue a un digito. \end{DoxyCompactList}\end{DoxyCompactItemize} \subsection{Documentación de las funciones} \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} Dada una cadena devolvera el numero de digitos que sigue a un digito. \begin{DoxyParams}{Parámetros} {\em st} & cadena de caracteres por referencia a analizar. \\ \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} Dada una cadena devolvera el numero de caracteres en minuscula que sigue a un caracter del mismo tipo. \begin{DoxyParams}{Parámetros} {\em st} & cadena de caracteres por referencia a analizar. \\ \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} Dada una cadena devolvera el numero de caracteres en mayuscula que sigue a un caracter del mismo tipo. \begin{DoxyParams}{Parámetros} {\em st} & cadena de caracteres por referencia a analizar. \\ \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} Dada una cadena de caracters devuelve el numero de caracteres de un cierto tipo. Dada una cadena de caracters devuelve el numero de caracteres de un cierto tipo que sigue un caracter de el mismo tipo. \begin{DoxyParams}{Parámetros} {\em st} & Cadena de caracteres a analizar \\ \hline {\em filter\+Function} & Apuntador a funcion a una funcion que devuelve 1 cuando un caracter de el typo es dado. Por ejemplo, si la funciones la funcion islower, entonces count\+Chars\+Of\+Type contara caracteres en minuscula \\ \hline {\em from\+Idx} & indice de desde donde comenzar a contar. \\ \hline {\em to\+Idx} & ultimo indice para contar.\\ \hline {\em st} & Cadena de caracteres a analizar \\ \hline {\em filter\+Function} & Apuntador a funcion a una funcion que devuelve 1 cuando un caracter de el typo es dado. Por ejemplo, si la funciones la funcion islower, entonces count\+Consecutive contara caracteres consecutivos en minuscula \\ \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} Dada una cadena de caracteres devolvera el numero de digitos. \begin{DoxyParams}{Parámetros} {\em st} & cadena de caracteres por referencia a analizar. \\ \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} Dada una cadena de caracteres devolvera el numero de caracteres en minuscula. \begin{DoxyParams}{Parámetros} {\em st} & cadena de caracteres por referencia a analizar. \\ \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} Dada una cadena de caracteres devolvera el numero de simbolos. \begin{DoxyParams}{Parámetros} {\em st} & cadena de caracteres por referencia a analizar. \\ \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} Dada una cadena de caracteres devolvera el numero de caracteres en mayuscula. \begin{DoxyParams}{Parámetros} {\em st} & cadena de caracteres por referencia a analizar. \\ \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} Devuelve 1 si el argumento es un digito o simbolo. \begin{DoxyParams}{Parámetros} {\em c} & el caracter a ser analizado. \\ \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} Devuelve 1 si el argumento es un simbolo. \begin{DoxyParams}{Parámetros} {\em c} & el caracter a ser analizado. \\ \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} Devuelve el numero de digitos y simbolos que no son el primer o el ultimo caracter de la cadena recibida. \begin{DoxyParams}{Parámetros} {\em st} & cadena de caracteres por referencia a analizar. \\ \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} Devuelve una version en mayusculas de la cadena de caracteres recibida. \begin{DoxyParams}{Parámetros} {\em st} & cadena de caracteres por referencia a analizar. \\ \hline \end{DoxyParams}