53 theString_( s.Data() )
58 theString_( s.theString_ )
120 std::string splitString = splitter.
getString();
121 std::vector<std::string> result = this->
split( splitString );
128 std::vector<std::string> result;
130 if ( !
theString_.empty() && ! splitter.empty() ) {
132 for ( std::string::size_type offset = 0;; ) {
134 std::string::size_type found =
theString_.find( splitter, offset );
136 if ( found != std::string::npos ) {
137 std::string tmpString =
theString_.substr( offset, found - offset );
138 if ( tmpString.size() > 0 ) {
139 result.push_back( tmpString );
141 offset = found + splitter.size();
144 if ( tmpString.size() > 0 ) {
145 result.push_back( tmpString );