\section{Split\+By\+Any\+Of Class Reference}
\label{classmlpack_1_1data_1_1SplitByAnyOf}\index{Split\+By\+Any\+Of@{Split\+By\+Any\+Of}}


The \doxyref{Split\+By\+Any\+Of}{p.}{classmlpack_1_1data_1_1SplitByAnyOf} class tokenizes a string using a set of delimiters.  


\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
using \textbf{ Mask\+Type} = std\+::array$<$ bool, 1$<$$<$ C\+H\+A\+R\+\_\+\+B\+IT $>$
\begin{DoxyCompactList}\small\item\em A convenient alias for the mask type. \end{DoxyCompactList}\item 
using \textbf{ Token\+Type} = boost\+::string\+\_\+view
\begin{DoxyCompactList}\small\item\em The type of the token which the tokenizer extracts. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\textbf{ Split\+By\+Any\+Of} (const boost\+::string\+\_\+view delimiters)
\begin{DoxyCompactList}\small\item\em Construct the object from the given delimiters. \end{DoxyCompactList}\item 
const \textbf{ Mask\+Type} \& \textbf{ Mask} () const
\begin{DoxyCompactList}\small\item\em Return the mask. \end{DoxyCompactList}\item 
\textbf{ Mask\+Type} \& \textbf{ Mask} ()
\begin{DoxyCompactList}\small\item\em Modify the mask. \end{DoxyCompactList}\item 
boost\+::string\+\_\+view \textbf{ operator()} (boost\+::string\+\_\+view \&str) const
\begin{DoxyCompactList}\small\item\em The function extracts the first token from the given string view and then removes the prefix containing the token from the view. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static bool \textbf{ Is\+Token\+Empty} (const boost\+::string\+\_\+view token)
\begin{DoxyCompactList}\small\item\em The function returns true if the given token is empty. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
The \doxyref{Split\+By\+Any\+Of}{p.}{classmlpack_1_1data_1_1SplitByAnyOf} class tokenizes a string using a set of delimiters. 

Definition at line 26 of file split\+\_\+by\+\_\+any\+\_\+of.\+hpp.



\subsection{Member Typedef Documentation}
\mbox{\label{classmlpack_1_1data_1_1SplitByAnyOf_aaa4af3e49d65c9a8506f0cfd34619e8c}} 
\index{mlpack\+::data\+::\+Split\+By\+Any\+Of@{mlpack\+::data\+::\+Split\+By\+Any\+Of}!Mask\+Type@{Mask\+Type}}
\index{Mask\+Type@{Mask\+Type}!mlpack\+::data\+::\+Split\+By\+Any\+Of@{mlpack\+::data\+::\+Split\+By\+Any\+Of}}
\subsubsection{Mask\+Type}
{\footnotesize\ttfamily using \textbf{ Mask\+Type} =  std\+::array$<$bool, 1 $<$$<$ C\+H\+A\+R\+\_\+\+B\+IT$>$}



A convenient alias for the mask type. 



Definition at line 33 of file split\+\_\+by\+\_\+any\+\_\+of.\+hpp.

\mbox{\label{classmlpack_1_1data_1_1SplitByAnyOf_a03f0c19bcdda5c1375b8a758629eff5d}} 
\index{mlpack\+::data\+::\+Split\+By\+Any\+Of@{mlpack\+::data\+::\+Split\+By\+Any\+Of}!Token\+Type@{Token\+Type}}
\index{Token\+Type@{Token\+Type}!mlpack\+::data\+::\+Split\+By\+Any\+Of@{mlpack\+::data\+::\+Split\+By\+Any\+Of}}
\subsubsection{Token\+Type}
{\footnotesize\ttfamily using \textbf{ Token\+Type} =  boost\+::string\+\_\+view}



The type of the token which the tokenizer extracts. 



Definition at line 30 of file split\+\_\+by\+\_\+any\+\_\+of.\+hpp.



\subsection{Constructor \& Destructor Documentation}
\mbox{\label{classmlpack_1_1data_1_1SplitByAnyOf_acc0147a952dfb8a3dd66d22c0a768f58}} 
\index{mlpack\+::data\+::\+Split\+By\+Any\+Of@{mlpack\+::data\+::\+Split\+By\+Any\+Of}!Split\+By\+Any\+Of@{Split\+By\+Any\+Of}}
\index{Split\+By\+Any\+Of@{Split\+By\+Any\+Of}!mlpack\+::data\+::\+Split\+By\+Any\+Of@{mlpack\+::data\+::\+Split\+By\+Any\+Of}}
\subsubsection{Split\+By\+Any\+Of()}
{\footnotesize\ttfamily \textbf{ Split\+By\+Any\+Of} (\begin{DoxyParamCaption}\item[{const boost\+::string\+\_\+view}]{delimiters }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Construct the object from the given delimiters. 


\begin{DoxyParams}{Parameters}
{\em delimiters} & The given delimiters. \\
\hline
\end{DoxyParams}


Definition at line 40 of file split\+\_\+by\+\_\+any\+\_\+of.\+hpp.



\subsection{Member Function Documentation}
\mbox{\label{classmlpack_1_1data_1_1SplitByAnyOf_ad940364fce91b58ca7f6ef1323219f3b}} 
\index{mlpack\+::data\+::\+Split\+By\+Any\+Of@{mlpack\+::data\+::\+Split\+By\+Any\+Of}!Is\+Token\+Empty@{Is\+Token\+Empty}}
\index{Is\+Token\+Empty@{Is\+Token\+Empty}!mlpack\+::data\+::\+Split\+By\+Any\+Of@{mlpack\+::data\+::\+Split\+By\+Any\+Of}}
\subsubsection{Is\+Token\+Empty()}
{\footnotesize\ttfamily static bool Is\+Token\+Empty (\begin{DoxyParamCaption}\item[{const boost\+::string\+\_\+view}]{token }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}



The function returns true if the given token is empty. 


\begin{DoxyParams}{Parameters}
{\em token} & The given token. \\
\hline
\end{DoxyParams}


Definition at line 78 of file split\+\_\+by\+\_\+any\+\_\+of.\+hpp.

\mbox{\label{classmlpack_1_1data_1_1SplitByAnyOf_a5742046289049335be15949f0dda89b6}} 
\index{mlpack\+::data\+::\+Split\+By\+Any\+Of@{mlpack\+::data\+::\+Split\+By\+Any\+Of}!Mask@{Mask}}
\index{Mask@{Mask}!mlpack\+::data\+::\+Split\+By\+Any\+Of@{mlpack\+::data\+::\+Split\+By\+Any\+Of}}
\subsubsection{Mask()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily const \textbf{ Mask\+Type}\& Mask (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Return the mask. 



Definition at line 84 of file split\+\_\+by\+\_\+any\+\_\+of.\+hpp.

\mbox{\label{classmlpack_1_1data_1_1SplitByAnyOf_abe5606f9d71e14c63eb45692ffe404ef}} 
\index{mlpack\+::data\+::\+Split\+By\+Any\+Of@{mlpack\+::data\+::\+Split\+By\+Any\+Of}!Mask@{Mask}}
\index{Mask@{Mask}!mlpack\+::data\+::\+Split\+By\+Any\+Of@{mlpack\+::data\+::\+Split\+By\+Any\+Of}}
\subsubsection{Mask()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily \textbf{ Mask\+Type}\& Mask (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Modify the mask. 



Definition at line 86 of file split\+\_\+by\+\_\+any\+\_\+of.\+hpp.

\mbox{\label{classmlpack_1_1data_1_1SplitByAnyOf_a1a8b5d91733ed9625908a4edc3246f1d}} 
\index{mlpack\+::data\+::\+Split\+By\+Any\+Of@{mlpack\+::data\+::\+Split\+By\+Any\+Of}!operator()@{operator()}}
\index{operator()@{operator()}!mlpack\+::data\+::\+Split\+By\+Any\+Of@{mlpack\+::data\+::\+Split\+By\+Any\+Of}}
\subsubsection{operator()()}
{\footnotesize\ttfamily boost\+::string\+\_\+view operator() (\begin{DoxyParamCaption}\item[{boost\+::string\+\_\+view \&}]{str }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



The function extracts the first token from the given string view and then removes the prefix containing the token from the view. 


\begin{DoxyParams}{Parameters}
{\em str} & String view to retrieve the token from. \\
\hline
\end{DoxyParams}


Definition at line 54 of file split\+\_\+by\+\_\+any\+\_\+of.\+hpp.



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
/var/www/mlpack.\+ratml.\+org/mlpack.\+org/\+\_\+src/mlpack-\/git/src/mlpack/core/data/tokenizers/\textbf{ split\+\_\+by\+\_\+any\+\_\+of.\+hpp}\end{DoxyCompactItemize}
