Elaboradar 0.1
Caricamento in corso...
Ricerca in corso...
Nessun risultato
Membri pubblici | Attributi pubblici | Elenco di tutti i membri
Riferimenti per la struct radarelab::utils::str::Split

Split a string where a given substring is found. Continua...

#include <string.h>

Membri pubblici

const_iterator begin ()
 Return the begin iterator to split a string on instances of sep.
 
const_iterator end ()
 Return the end iterator to string split.
 

Attributi pubblici

std::string str
 String to split.
 
std::string sep
 Separator.
 
bool skip_empty
 If true, skip empty tokens, effectively grouping consecutive separators as if they were a single one.
 

Descrizione dettagliata

Split a string where a given substring is found.

This does a similar work to the split functions of perl, python and ruby.

Example code:

str::Split splitter(my_string, "/");
vector<string> split;
std::copy(splitter.begin(), splitter.end(), back_inserter(split));
Split a string where a given substring is found.
Definition string.h:158

Definizione alla linea 157 del file string.h.


La documentazione per questa struct รจ stata generata a partire dal seguente file: