\doxysection{SVM strings}
\hypertarget{group__string}{}\label{group__string}\index{SVM strings@{SVM strings}}


This module contains API functions to handle SVM strings.  


\doxysubsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} \mbox{\hyperlink{struct_s_v_m___string}{SVM\+\_\+\+String}} \mbox{\hyperlink{group__string_ga1686cdc04426b513edb16d1971ff85d5}{svm\+\_\+string\+\_\+new}} (const void \texorpdfstring{$\ast$}{*}svm, const char \texorpdfstring{$\ast$}{*}buffer, const \mbox{\hyperlink{group__api__types_gaab347fe7005c87722bd7d80cfe94333c}{SVM\+\_\+\+Size}} size)
\begin{DoxyCompactList}\small\item\em This function creates an instance of a \doxylink{struct_s_v_m___string}{SVM\+\_\+\+String} from a memory buffer. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} \mbox{\hyperlink{struct_s_v_m___string}{SVM\+\_\+\+String}} \mbox{\hyperlink{group__string_gae51ade92ac3f02cfb010f02c3d93fff0}{svm\+\_\+string\+\_\+new\+\_\+\+\_\+raw}} (const void \texorpdfstring{$\ast$}{*}svm, const char \texorpdfstring{$\ast$}{*}string)
\begin{DoxyCompactList}\small\item\em This function creates an instance of a \doxylink{struct_s_v_m___string}{SVM\+\_\+\+String} from a C string. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} \mbox{\hyperlink{struct_s_v_m___string}{SVM\+\_\+\+String}} \mbox{\hyperlink{group__string_ga4f30a2d163dd9a7c3a8ea3b290e882cc}{svm\+\_\+string\+\_\+new\+\_\+\+\_\+buffer}} (const void \texorpdfstring{$\ast$}{*}svm, const \mbox{\hyperlink{group__api__types_gaab347fe7005c87722bd7d80cfe94333c}{SVM\+\_\+\+Size}} size)
\begin{DoxyCompactList}\small\item\em This function creates an instance of a \doxylink{struct_s_v_m___string}{SVM\+\_\+\+String} uninitialised. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} \mbox{\hyperlink{struct_s_v_m___string}{SVM\+\_\+\+String}} \mbox{\hyperlink{group__string_ga869a8a9ba33a403e1cf2eca98adf4f93}{svm\+\_\+string\+\_\+join}} (const void \texorpdfstring{$\ast$}{*}svm, const \mbox{\hyperlink{struct_s_v_m___string}{SVM\+\_\+\+String}} first, const \mbox{\hyperlink{struct_s_v_m___string}{SVM\+\_\+\+String}} second)
\begin{DoxyCompactList}\small\item\em This function creates an instance of a \doxylink{struct_s_v_m___string}{SVM\+\_\+\+String} from two \doxylink{struct_s_v_m___string}{SVM\+\_\+\+String}. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} \mbox{\hyperlink{struct_s_v_m___string}{SVM\+\_\+\+String}} \mbox{\hyperlink{group__string_ga51ce9317c0252e7541c49d4bf32868f7}{svm\+\_\+string\+\_\+join\+\_\+\+\_\+raw}} (const void \texorpdfstring{$\ast$}{*}svm, const \mbox{\hyperlink{struct_s_v_m___string}{SVM\+\_\+\+String}} first, const char \texorpdfstring{$\ast$}{*}second)
\begin{DoxyCompactList}\small\item\em This function creates an instance of a \doxylink{struct_s_v_m___string}{SVM\+\_\+\+String} from a \doxylink{struct_s_v_m___string}{SVM\+\_\+\+String} and a C nul terminated string. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} \mbox{\hyperlink{struct_s_v_m___string}{SVM\+\_\+\+String}} \mbox{\hyperlink{group__string_ga5929ec1670ecb9d2a8f403805a47b258}{svm\+\_\+string\+\_\+join\+\_\+\+\_\+buffer}} (const void \texorpdfstring{$\ast$}{*}svm, const \mbox{\hyperlink{struct_s_v_m___string}{SVM\+\_\+\+String}} first, const char \texorpdfstring{$\ast$}{*}second, const \mbox{\hyperlink{group__api__types_gaab347fe7005c87722bd7d80cfe94333c}{SVM\+\_\+\+Size}} size)
\begin{DoxyCompactList}\small\item\em This function creates an instance of a \doxylink{struct_s_v_m___string}{SVM\+\_\+\+String} from a \doxylink{struct_s_v_m___string}{SVM\+\_\+\+String} and a memory buffer. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} \mbox{\hyperlink{group__api__types_ga872facc2eea0e7296e689134f568b804}{SVM\+\_\+\+Boolean}} \mbox{\hyperlink{group__string_ga94e2e928466e15573a46ccfd3db5da1c}{svm\+\_\+string\+\_\+is\+\_\+equal}} (const void \texorpdfstring{$\ast$}{*}svm, const \mbox{\hyperlink{struct_s_v_m___string}{SVM\+\_\+\+String}} left, const \mbox{\hyperlink{struct_s_v_m___string}{SVM\+\_\+\+String}} right)
\begin{DoxyCompactList}\small\item\em This function compares two \doxylink{struct_s_v_m___string}{SVM\+\_\+\+String}. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} \mbox{\hyperlink{group__api__types_ga872facc2eea0e7296e689134f568b804}{SVM\+\_\+\+Boolean}} \mbox{\hyperlink{group__string_gafdb82a070aa52c61b3bd4aba36dfa7f7}{svm\+\_\+string\+\_\+is\+\_\+equal\+\_\+\+\_\+raw}} (const void \texorpdfstring{$\ast$}{*}svm, const \mbox{\hyperlink{struct_s_v_m___string}{SVM\+\_\+\+String}} left, const char \texorpdfstring{$\ast$}{*}right)
\begin{DoxyCompactList}\small\item\em This function compares a \doxylink{struct_s_v_m___string}{SVM\+\_\+\+String} to a C string. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} \mbox{\hyperlink{group__api__types_ga872facc2eea0e7296e689134f568b804}{SVM\+\_\+\+Boolean}} \mbox{\hyperlink{group__string_ga359c1525fab337732ec7343ed2e8cc80}{svm\+\_\+string\+\_\+is\+\_\+equal\+\_\+\+\_\+buffer}} (const void \texorpdfstring{$\ast$}{*}svm, const \mbox{\hyperlink{struct_s_v_m___string}{SVM\+\_\+\+String}} left, const char \texorpdfstring{$\ast$}{*}buffer, const \mbox{\hyperlink{group__api__types_gaab347fe7005c87722bd7d80cfe94333c}{SVM\+\_\+\+Size}} size)
\begin{DoxyCompactList}\small\item\em This function compares a \doxylink{struct_s_v_m___string}{SVM\+\_\+\+String} to a C buffer. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
This module contains API functions to handle SVM strings. 

Strings are structures used to exchange memory buffers between the virtual machine and the plugin callback functions.

They can be managed by the virtual machine when created using API functions, but can also be manually managed by the plugin code. 

\doxysubsection{Function Documentation}
\Hypertarget{group__string_ga94e2e928466e15573a46ccfd3db5da1c}\label{group__string_ga94e2e928466e15573a46ccfd3db5da1c} 
\index{SVM strings@{SVM strings}!svm\_string\_is\_equal@{svm\_string\_is\_equal}}
\index{svm\_string\_is\_equal@{svm\_string\_is\_equal}!SVM strings@{SVM strings}}
\doxysubsubsection{\texorpdfstring{svm\_string\_is\_equal()}{svm\_string\_is\_equal()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} \mbox{\hyperlink{group__api__types_ga872facc2eea0e7296e689134f568b804}{SVM\+\_\+\+Boolean}} svm\+\_\+string\+\_\+is\+\_\+equal (\begin{DoxyParamCaption}\item[{const void \texorpdfstring{$\ast$}{*}}]{svm,  }\item[{const \mbox{\hyperlink{struct_s_v_m___string}{SVM\+\_\+\+String}}}]{left,  }\item[{const \mbox{\hyperlink{struct_s_v_m___string}{SVM\+\_\+\+String}}}]{right }\end{DoxyParamCaption})}



This function compares two \doxylink{struct_s_v_m___string}{SVM\+\_\+\+String}. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em svm} & The SVM pointer passed as first argument of the callback function. \\
\hline
\mbox{\texttt{ in}}  & {\em left} & The left operand of the equality. \\
\hline
\mbox{\texttt{ in}}  & {\em right} & The right operand of the equality.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
TRUE if left and right contains the same string, FALSE otherwise.
\end{DoxyReturn}

\begin{DoxyExceptions}{Exceptions}
{\em FAILURE} & interruption when a parameter is incorrect. (Please refer to the main description page of this API.) \\
\hline
\end{DoxyExceptions}
\Hypertarget{group__string_ga359c1525fab337732ec7343ed2e8cc80}\label{group__string_ga359c1525fab337732ec7343ed2e8cc80} 
\index{SVM strings@{SVM strings}!svm\_string\_is\_equal\_\_buffer@{svm\_string\_is\_equal\_\_buffer}}
\index{svm\_string\_is\_equal\_\_buffer@{svm\_string\_is\_equal\_\_buffer}!SVM strings@{SVM strings}}
\doxysubsubsection{\texorpdfstring{svm\_string\_is\_equal\_\_buffer()}{svm\_string\_is\_equal\_\_buffer()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} \mbox{\hyperlink{group__api__types_ga872facc2eea0e7296e689134f568b804}{SVM\+\_\+\+Boolean}} svm\+\_\+string\+\_\+is\+\_\+equal\+\_\+\+\_\+buffer (\begin{DoxyParamCaption}\item[{const void \texorpdfstring{$\ast$}{*}}]{svm,  }\item[{const \mbox{\hyperlink{struct_s_v_m___string}{SVM\+\_\+\+String}}}]{left,  }\item[{const char \texorpdfstring{$\ast$}{*}}]{buffer,  }\item[{const \mbox{\hyperlink{group__api__types_gaab347fe7005c87722bd7d80cfe94333c}{SVM\+\_\+\+Size}}}]{size }\end{DoxyParamCaption})}



This function compares a \doxylink{struct_s_v_m___string}{SVM\+\_\+\+String} to a C buffer. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em svm} & The SVM pointer passed as first argument of the callback function. \\
\hline
\mbox{\texttt{ in}}  & {\em left} & The left operand of the equality. \\
\hline
\mbox{\texttt{ in}}  & {\em buffer} & The buffer, right operand of the equality. \\
\hline
\mbox{\texttt{ in}}  & {\em size} & The buffer size.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
TRUE if left and right contains the same string, FALSE otherwise.
\end{DoxyReturn}

\begin{DoxyExceptions}{Exceptions}
{\em FAILURE} & interruption when a parameter is incorrect. (Please refer to the main description page of this API.) \\
\hline
\end{DoxyExceptions}
\Hypertarget{group__string_gafdb82a070aa52c61b3bd4aba36dfa7f7}\label{group__string_gafdb82a070aa52c61b3bd4aba36dfa7f7} 
\index{SVM strings@{SVM strings}!svm\_string\_is\_equal\_\_raw@{svm\_string\_is\_equal\_\_raw}}
\index{svm\_string\_is\_equal\_\_raw@{svm\_string\_is\_equal\_\_raw}!SVM strings@{SVM strings}}
\doxysubsubsection{\texorpdfstring{svm\_string\_is\_equal\_\_raw()}{svm\_string\_is\_equal\_\_raw()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} \mbox{\hyperlink{group__api__types_ga872facc2eea0e7296e689134f568b804}{SVM\+\_\+\+Boolean}} svm\+\_\+string\+\_\+is\+\_\+equal\+\_\+\+\_\+raw (\begin{DoxyParamCaption}\item[{const void \texorpdfstring{$\ast$}{*}}]{svm,  }\item[{const \mbox{\hyperlink{struct_s_v_m___string}{SVM\+\_\+\+String}}}]{left,  }\item[{const char \texorpdfstring{$\ast$}{*}}]{right }\end{DoxyParamCaption})}



This function compares a \doxylink{struct_s_v_m___string}{SVM\+\_\+\+String} to a C string. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em svm} & The SVM pointer passed as first argument of the callback function. \\
\hline
\mbox{\texttt{ in}}  & {\em left} & The left operand of the equality. \\
\hline
\mbox{\texttt{ in}}  & {\em right} & The right operand of the equality.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
TRUE if left and right contains the same string, FALSE otherwise.
\end{DoxyReturn}

\begin{DoxyExceptions}{Exceptions}
{\em FAILURE} & interruption when a parameter is incorrect. (Please refer to the main description page of this API.) \\
\hline
\end{DoxyExceptions}
\Hypertarget{group__string_ga869a8a9ba33a403e1cf2eca98adf4f93}\label{group__string_ga869a8a9ba33a403e1cf2eca98adf4f93} 
\index{SVM strings@{SVM strings}!svm\_string\_join@{svm\_string\_join}}
\index{svm\_string\_join@{svm\_string\_join}!SVM strings@{SVM strings}}
\doxysubsubsection{\texorpdfstring{svm\_string\_join()}{svm\_string\_join()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} \mbox{\hyperlink{struct_s_v_m___string}{SVM\+\_\+\+String}} svm\+\_\+string\+\_\+join (\begin{DoxyParamCaption}\item[{const void \texorpdfstring{$\ast$}{*}}]{svm,  }\item[{const \mbox{\hyperlink{struct_s_v_m___string}{SVM\+\_\+\+String}}}]{first,  }\item[{const \mbox{\hyperlink{struct_s_v_m___string}{SVM\+\_\+\+String}}}]{second }\end{DoxyParamCaption})}



This function creates an instance of a \doxylink{struct_s_v_m___string}{SVM\+\_\+\+String} from two \doxylink{struct_s_v_m___string}{SVM\+\_\+\+String}. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em svm} & The SVM pointer passed as first argument of the callback function. \\
\hline
\mbox{\texttt{ in}}  & {\em first} & The start of the new string. \\
\hline
\mbox{\texttt{ in}}  & {\em second} & The end of the new string.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The joined \doxylink{struct_s_v_m___string}{SVM\+\_\+\+String}. Its buffer is managed by the SVM like variables.
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\doxylink{group__variables}{SVM variables} 
\end{DoxySeeAlso}
\Hypertarget{group__string_ga5929ec1670ecb9d2a8f403805a47b258}\label{group__string_ga5929ec1670ecb9d2a8f403805a47b258} 
\index{SVM strings@{SVM strings}!svm\_string\_join\_\_buffer@{svm\_string\_join\_\_buffer}}
\index{svm\_string\_join\_\_buffer@{svm\_string\_join\_\_buffer}!SVM strings@{SVM strings}}
\doxysubsubsection{\texorpdfstring{svm\_string\_join\_\_buffer()}{svm\_string\_join\_\_buffer()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} \mbox{\hyperlink{struct_s_v_m___string}{SVM\+\_\+\+String}} svm\+\_\+string\+\_\+join\+\_\+\+\_\+buffer (\begin{DoxyParamCaption}\item[{const void \texorpdfstring{$\ast$}{*}}]{svm,  }\item[{const \mbox{\hyperlink{struct_s_v_m___string}{SVM\+\_\+\+String}}}]{first,  }\item[{const char \texorpdfstring{$\ast$}{*}}]{second,  }\item[{const \mbox{\hyperlink{group__api__types_gaab347fe7005c87722bd7d80cfe94333c}{SVM\+\_\+\+Size}}}]{size }\end{DoxyParamCaption})}



This function creates an instance of a \doxylink{struct_s_v_m___string}{SVM\+\_\+\+String} from a \doxylink{struct_s_v_m___string}{SVM\+\_\+\+String} and a memory buffer. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em svm} & The SVM pointer passed as first argument of the callback function. \\
\hline
\mbox{\texttt{ in}}  & {\em first} & The start of the new string. \\
\hline
\mbox{\texttt{ in}}  & {\em second} & The end of the new string. \\
\hline
\mbox{\texttt{ in}}  & {\em size} & The size of the end of the new string.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The joined \doxylink{struct_s_v_m___string}{SVM\+\_\+\+String}. Its buffer is managed by the SVM like variables.
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\doxylink{group__variables}{SVM variables} 
\end{DoxySeeAlso}
\Hypertarget{group__string_ga51ce9317c0252e7541c49d4bf32868f7}\label{group__string_ga51ce9317c0252e7541c49d4bf32868f7} 
\index{SVM strings@{SVM strings}!svm\_string\_join\_\_raw@{svm\_string\_join\_\_raw}}
\index{svm\_string\_join\_\_raw@{svm\_string\_join\_\_raw}!SVM strings@{SVM strings}}
\doxysubsubsection{\texorpdfstring{svm\_string\_join\_\_raw()}{svm\_string\_join\_\_raw()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} \mbox{\hyperlink{struct_s_v_m___string}{SVM\+\_\+\+String}} svm\+\_\+string\+\_\+join\+\_\+\+\_\+raw (\begin{DoxyParamCaption}\item[{const void \texorpdfstring{$\ast$}{*}}]{svm,  }\item[{const \mbox{\hyperlink{struct_s_v_m___string}{SVM\+\_\+\+String}}}]{first,  }\item[{const char \texorpdfstring{$\ast$}{*}}]{second }\end{DoxyParamCaption})}



This function creates an instance of a \doxylink{struct_s_v_m___string}{SVM\+\_\+\+String} from a \doxylink{struct_s_v_m___string}{SVM\+\_\+\+String} and a C nul terminated string. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em svm} & The SVM pointer passed as first argument of the callback function. \\
\hline
\mbox{\texttt{ in}}  & {\em first} & The start of the new string. \\
\hline
\mbox{\texttt{ in}}  & {\em second} & The end of the new string.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The joined \doxylink{struct_s_v_m___string}{SVM\+\_\+\+String}. Its buffer is managed by the SVM like variables.
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\doxylink{group__variables}{SVM variables} 
\end{DoxySeeAlso}
\Hypertarget{group__string_ga1686cdc04426b513edb16d1971ff85d5}\label{group__string_ga1686cdc04426b513edb16d1971ff85d5} 
\index{SVM strings@{SVM strings}!svm\_string\_new@{svm\_string\_new}}
\index{svm\_string\_new@{svm\_string\_new}!SVM strings@{SVM strings}}
\doxysubsubsection{\texorpdfstring{svm\_string\_new()}{svm\_string\_new()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} \mbox{\hyperlink{struct_s_v_m___string}{SVM\+\_\+\+String}} svm\+\_\+string\+\_\+new (\begin{DoxyParamCaption}\item[{const void \texorpdfstring{$\ast$}{*}}]{svm,  }\item[{const char \texorpdfstring{$\ast$}{*}}]{buffer,  }\item[{const \mbox{\hyperlink{group__api__types_gaab347fe7005c87722bd7d80cfe94333c}{SVM\+\_\+\+Size}}}]{size }\end{DoxyParamCaption})}



This function creates an instance of a \doxylink{struct_s_v_m___string}{SVM\+\_\+\+String} from a memory buffer. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em svm} & The SVM pointer passed as first argument of the callback function. \\
\hline
\mbox{\texttt{ in}}  & {\em buffer} & The start of the buffer. \\
\hline
\mbox{\texttt{ in}}  & {\em size} & The size of the buffer.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The corresponding \doxylink{struct_s_v_m___string}{SVM\+\_\+\+String}. Its buffer is managed by the SVM like variables.
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\doxylink{group__variables}{SVM variables} 
\end{DoxySeeAlso}
\Hypertarget{group__string_ga4f30a2d163dd9a7c3a8ea3b290e882cc}\label{group__string_ga4f30a2d163dd9a7c3a8ea3b290e882cc} 
\index{SVM strings@{SVM strings}!svm\_string\_new\_\_buffer@{svm\_string\_new\_\_buffer}}
\index{svm\_string\_new\_\_buffer@{svm\_string\_new\_\_buffer}!SVM strings@{SVM strings}}
\doxysubsubsection{\texorpdfstring{svm\_string\_new\_\_buffer()}{svm\_string\_new\_\_buffer()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} \mbox{\hyperlink{struct_s_v_m___string}{SVM\+\_\+\+String}} svm\+\_\+string\+\_\+new\+\_\+\+\_\+buffer (\begin{DoxyParamCaption}\item[{const void \texorpdfstring{$\ast$}{*}}]{svm,  }\item[{const \mbox{\hyperlink{group__api__types_gaab347fe7005c87722bd7d80cfe94333c}{SVM\+\_\+\+Size}}}]{size }\end{DoxyParamCaption})}



This function creates an instance of a \doxylink{struct_s_v_m___string}{SVM\+\_\+\+String} uninitialised. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em svm} & The SVM pointer passed as first argument of the callback function. \\
\hline
\mbox{\texttt{ in}}  & {\em size} & The size of the created string.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The corresponding \doxylink{struct_s_v_m___string}{SVM\+\_\+\+String}. Its buffer is managed by the SVM like variables.
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\doxylink{group__variables}{SVM variables} 
\end{DoxySeeAlso}
\Hypertarget{group__string_gae51ade92ac3f02cfb010f02c3d93fff0}\label{group__string_gae51ade92ac3f02cfb010f02c3d93fff0} 
\index{SVM strings@{SVM strings}!svm\_string\_new\_\_raw@{svm\_string\_new\_\_raw}}
\index{svm\_string\_new\_\_raw@{svm\_string\_new\_\_raw}!SVM strings@{SVM strings}}
\doxysubsubsection{\texorpdfstring{svm\_string\_new\_\_raw()}{svm\_string\_new\_\_raw()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} \mbox{\hyperlink{struct_s_v_m___string}{SVM\+\_\+\+String}} svm\+\_\+string\+\_\+new\+\_\+\+\_\+raw (\begin{DoxyParamCaption}\item[{const void \texorpdfstring{$\ast$}{*}}]{svm,  }\item[{const char \texorpdfstring{$\ast$}{*}}]{string }\end{DoxyParamCaption})}



This function creates an instance of a \doxylink{struct_s_v_m___string}{SVM\+\_\+\+String} from a C string. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em svm} & The SVM pointer passed as first argument of the callback function. \\
\hline
\mbox{\texttt{ in}}  & {\em string} & A C-\/nul-\/terminated string to initiate the string.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The corresponding \doxylink{struct_s_v_m___string}{SVM\+\_\+\+String}. Its buffer is managed by the SVM like variables.
\end{DoxyReturn}
\begin{DoxyNote}{Note}
This function adds an extra nul character at the end of the buffer, not counted in the size of the created string.
\end{DoxyNote}

\begin{DoxyExceptions}{Exceptions}
{\em FAILURE} & interruption when a parameter is incorrect. (Please refer to the main description page of this API.)\\
\hline
\end{DoxyExceptions}
\begin{DoxySeeAlso}{See also}
\doxylink{group__variables}{SVM variables} 
\end{DoxySeeAlso}
