wibble::str::Split Class Reference

#include <string.h>

List of all members.


Detailed Description

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("/");
   vector<string> split;
   std::copy(splitter.begin(myString), splitter.end(), back_inserter(split));

Public Member Functions

 Split (const std::string &sep, const std::string &str)
 Create a splitter that uses the given regular expression to find tokens.
const_iterator begin () const
 Split the string and iterate the resulting tokens.
const_iterator end () const

Classes

class  const_iterator

Constructor & Destructor Documentation

wibble::str::Split::Split ( const std::string &  sep,
const std::string &  str 
) [inline]

Create a splitter that uses the given regular expression to find tokens.


Member Function Documentation

const_iterator wibble::str::Split::begin (  )  const [inline]

Split the string and iterate the resulting tokens.

Referenced by wibble::str::normpath().

const_iterator wibble::str::Split::end (  )  const [inline]

Referenced by wibble::str::normpath().


The documentation for this class was generated from the following file:

Generated on Tue Jun 17 23:14:23 2008 for wibble by  doxygen 1.5.6