MCPcopy Create free account
hub / github.com/FlightGear/flightgear / split

Method split

3rdparty/cppunit/src/cppunit/StringTools.cpp:27–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25
26
27StringTools::Strings
28StringTools::split( const std::string &text,
29 char separator )
30{
31 Strings splittedText;
32
33 std::string::const_iterator itStart = text.begin();
34 while ( !text.empty() )
35 {
36 std::string::const_iterator itSeparator = std::find( itStart,
37 text.end(),
38 separator );
39 splittedText.push_back( text.substr( itStart - text.begin(),
40 itSeparator - itStart ) );
41 if ( itSeparator == text.end() )
42 break;
43 itStart = itSeparator +1;
44 }
45
46 return splittedText;
47}
48
49
50std::string

Callers 15

parse_transformFunction · 0.80
startElementMethod · 0.80
handlePolygonMethod · 0.80
yasim_import.pyFile · 0.80
extract_matrixFunction · 0.80
parseCSSClipMethod · 0.80
getOrCreateWithPathMethod · 0.80
getWithPathMethod · 0.80
fixNavaidNameFunction · 0.80
__init__Method · 0.80
closeMethod · 0.80
recordreplay.pyFile · 0.80

Calls 4

push_backMethod · 0.80
beginMethod · 0.45
emptyMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected