\section{aversive\_\-10-03-12/modules/ihm/parse/parse\_\-string.c File Reference}
\label{parse__string_8c}\index{aversive\_\-10-03-12/modules/ihm/parse/parse\_\-string.c@{aversive\_\-10-03-12/modules/ihm/parse/parse\_\-string.c}}
{\tt \#include $<$stdio.h$>$}\par
{\tt \#include $<$inttypes.h$>$}\par
{\tt \#include $<$ctype.h$>$}\par
{\tt \#include $<$string.h$>$}\par
{\tt \#include \char`\"{}parse.h\char`\"{}}\par
{\tt \#include \char`\"{}parse\_\-string.h\char`\"{}}\par
\subsection*{Defines}
\begin{CompactItemize}
\item 
\#define {\bf MULTISTRING\_\-HELP}~PSTR(\char`\"{}Mul-choice STRING\char`\"{})
\item 
\#define {\bf ANYSTRING\_\-HELP}~PSTR(\char`\"{}Any STRING\char`\"{})
\item 
\#define {\bf FIXEDSTRING\_\-HELP}~PSTR(\char`\"{}Fixed STRING\char`\"{})
\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
int8\_\-t {\bf parse\_\-string} ({\bf parse\_\-pgm\_\-token\_\-hdr\_\-t} $\ast$tk, const char $\ast$buf, void $\ast$res)
\item 
int8\_\-t {\bf complete\_\-get\_\-nb\_\-string} ({\bf parse\_\-pgm\_\-token\_\-hdr\_\-t} $\ast$tk)
\item 
int8\_\-t {\bf complete\_\-get\_\-elt\_\-string} ({\bf parse\_\-pgm\_\-token\_\-hdr\_\-t} $\ast$tk, int8\_\-t idx, char $\ast$dstbuf, uint8\_\-t size)
\item 
int8\_\-t {\bf get\_\-help\_\-string} ({\bf parse\_\-pgm\_\-token\_\-hdr\_\-t} $\ast$tk, char $\ast$dstbuf, uint8\_\-t size)
\end{CompactItemize}
\subsection*{Variables}
\begin{CompactItemize}
\item 
struct {\bf token\_\-ops} {\bf token\_\-string\_\-ops}
\end{CompactItemize}


\subsection{Define Documentation}
\index{parse\_\-string.c@{parse\_\-string.c}!ANYSTRING\_\-HELP@{ANYSTRING\_\-HELP}}
\index{ANYSTRING\_\-HELP@{ANYSTRING\_\-HELP}!parse_string.c@{parse\_\-string.c}}
\subsubsection[ANYSTRING\_\-HELP]{\setlength{\rightskip}{0pt plus 5cm}\#define ANYSTRING\_\-HELP~PSTR(\char`\"{}Any STRING\char`\"{})}\label{parse__string_8c_2e3671f7eed932d76a5e3570587c8661}




Definition at line 17 of file parse\_\-string.c.

Referenced by get\_\-help\_\-string().\index{parse\_\-string.c@{parse\_\-string.c}!FIXEDSTRING\_\-HELP@{FIXEDSTRING\_\-HELP}}
\index{FIXEDSTRING\_\-HELP@{FIXEDSTRING\_\-HELP}!parse_string.c@{parse\_\-string.c}}
\subsubsection[FIXEDSTRING\_\-HELP]{\setlength{\rightskip}{0pt plus 5cm}\#define FIXEDSTRING\_\-HELP~PSTR(\char`\"{}Fixed STRING\char`\"{})}\label{parse__string_8c_b6824d678c475aac4999bf57a3c85b0c}




Definition at line 18 of file parse\_\-string.c.

Referenced by get\_\-help\_\-string().\index{parse\_\-string.c@{parse\_\-string.c}!MULTISTRING\_\-HELP@{MULTISTRING\_\-HELP}}
\index{MULTISTRING\_\-HELP@{MULTISTRING\_\-HELP}!parse_string.c@{parse\_\-string.c}}
\subsubsection[MULTISTRING\_\-HELP]{\setlength{\rightskip}{0pt plus 5cm}\#define MULTISTRING\_\-HELP~PSTR(\char`\"{}Mul-choice STRING\char`\"{})}\label{parse__string_8c_a43489bd1ae51442cee75a9e8879d950}




Definition at line 16 of file parse\_\-string.c.

Referenced by get\_\-help\_\-string().

\subsection{Function Documentation}
\index{parse\_\-string.c@{parse\_\-string.c}!complete\_\-get\_\-elt\_\-string@{complete\_\-get\_\-elt\_\-string}}
\index{complete\_\-get\_\-elt\_\-string@{complete\_\-get\_\-elt\_\-string}!parse_string.c@{parse\_\-string.c}}
\subsubsection[complete\_\-get\_\-elt\_\-string]{\setlength{\rightskip}{0pt plus 5cm}int8\_\-t complete\_\-get\_\-elt\_\-string ({\bf parse\_\-pgm\_\-token\_\-hdr\_\-t} $\ast$ {\em tk}, \/  int8\_\-t {\em idx}, \/  char $\ast$ {\em dstbuf}, \/  uint8\_\-t {\em size})}\label{parse__string_8c_50f50bb4833dac72dbf5748bc7a83ca4}




Definition at line 119 of file parse\_\-string.c.

References token\_\-string\_\-data::str.\index{parse\_\-string.c@{parse\_\-string.c}!complete\_\-get\_\-nb\_\-string@{complete\_\-get\_\-nb\_\-string}}
\index{complete\_\-get\_\-nb\_\-string@{complete\_\-get\_\-nb\_\-string}!parse_string.c@{parse\_\-string.c}}
\subsubsection[complete\_\-get\_\-nb\_\-string]{\setlength{\rightskip}{0pt plus 5cm}int8\_\-t complete\_\-get\_\-nb\_\-string ({\bf parse\_\-pgm\_\-token\_\-hdr\_\-t} $\ast$ {\em tk})}\label{parse__string_8c_fab16a153b9951f98472727a253ca9ce}




Definition at line 103 of file parse\_\-string.c.

References token\_\-string\_\-data::str.\index{parse\_\-string.c@{parse\_\-string.c}!get\_\-help\_\-string@{get\_\-help\_\-string}}
\index{get\_\-help\_\-string@{get\_\-help\_\-string}!parse_string.c@{parse\_\-string.c}}
\subsubsection[get\_\-help\_\-string]{\setlength{\rightskip}{0pt plus 5cm}int8\_\-t get\_\-help\_\-string ({\bf parse\_\-pgm\_\-token\_\-hdr\_\-t} $\ast$ {\em tk}, \/  char $\ast$ {\em dstbuf}, \/  uint8\_\-t {\em size})}\label{parse__string_8c_bc6db97143b152a47bdbe5b674f5598f}




Definition at line 146 of file parse\_\-string.c.

References ANYSTRING\_\-HELP, FIXEDSTRING\_\-HELP, MULTISTRING\_\-HELP, and token\_\-string\_\-data::str.\index{parse\_\-string.c@{parse\_\-string.c}!parse\_\-string@{parse\_\-string}}
\index{parse\_\-string@{parse\_\-string}!parse_string.c@{parse\_\-string.c}}
\subsubsection[parse\_\-string]{\setlength{\rightskip}{0pt plus 5cm}int8\_\-t parse\_\-string ({\bf parse\_\-pgm\_\-token\_\-hdr\_\-t} $\ast$ {\em tk}, \/  const char $\ast$ {\em buf}, \/  void $\ast$ {\em res})}\label{parse__string_8c_5351277e9b11784a5f554c201fec4918}




Definition at line 45 of file parse\_\-string.c.

References isendoftoken(), token\_\-string\_\-data::str, and STR\_\-TOKEN\_\-SIZE.

\subsection{Variable Documentation}
\index{parse\_\-string.c@{parse\_\-string.c}!token\_\-string\_\-ops@{token\_\-string\_\-ops}}
\index{token\_\-string\_\-ops@{token\_\-string\_\-ops}!parse_string.c@{parse\_\-string.c}}
\subsubsection[token\_\-string\_\-ops]{\setlength{\rightskip}{0pt plus 5cm}struct {\bf token\_\-ops} {\bf token\_\-string\_\-ops}}\label{parse__string_8c_861f243fee806eb5ab2d50bfb18cb61c}


\textbf{Initial value:}

\begin{Code}\begin{verbatim} {
        .parse = parse_string,
        .complete_get_nb = complete_get_nb_string,
        .complete_get_elt = complete_get_elt_string,
        .get_help = get_help_string,
}
\end{verbatim}
\end{Code}


Definition at line 9 of file parse\_\-string.c.