MCPcopy Create free account
hub / github.com/KiCad/kicad-source-mirror / wxStringSplit

Function wxStringSplit

common/string_utils.cpp:1402–1421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1400
1401
1402void wxStringSplit( const wxString& aText, wxArrayString& aStrings, wxChar aSplitter )
1403{
1404 wxString tmp;
1405
1406 for( unsigned ii = 0; ii < aText.Length(); ii++ )
1407 {
1408 if( aText[ii] == aSplitter )
1409 {
1410 aStrings.Add( tmp );
1411 tmp.Clear();
1412 }
1413 else
1414 {
1415 tmp << aText[ii];
1416 }
1417 }
1418
1419 if( !tmp.IsEmpty() )
1420 aStrings.Add( tmp );
1421}
1422
1423
1424void StripTrailingZeros( wxString& aStringValue, unsigned aTrailingZeroAllowed )

Callers 15

BOOST_AUTO_TEST_CASEFunction · 0.85
GetTextBoxMethod · 0.85
PrintMethod · 0.85
TitleCapsFunction · 0.85
InitialCapsFunction · 0.85
isLanguageMatchMethod · 0.85
getLinePositionsMethod · 0.85
LinebreakTextMethod · 0.85
PlotDrawingSheetFunction · 0.85
ListSetMethod · 0.85
PlotMethod · 0.85

Calls 4

LengthMethod · 0.45
AddMethod · 0.45
ClearMethod · 0.45
IsEmptyMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.68