19 size_t space = commandString.find(
' ' );
20 if( space == string::npos )
23 return commandString.substr( 0, space );
37 size_t space = commandString.find(
' ' );
38 if( commandString.length() > space+1 && space != string::npos )
39 return commandString[++space];
52 size_t firstSpace = commandString.find(
' ' );
53 if( firstSpace == string::npos )
56 size_t secondSpace = commandString.find(
' ', ++firstSpace );
57 if( secondSpace == string::npos)
58 return commandString.substr( firstSpace );
60 return commandString.substr( firstSpace, secondSpace - firstSpace );