EgtGeneral 1.8c2 :

- nella Split verifico siano stati definiti dei separatori.
This commit is contained in:
Dario Sassi
2017-04-04 07:36:08 +00:00
parent 054b1905c9
commit 9b540c0004
2 changed files with 6 additions and 0 deletions
+6
View File
@@ -265,6 +265,12 @@ void
Split( const string& sString, const string& sSeparator, bool bFirstVsLast,
string& sFirst, string& sLast)
{
// verifico definizione separatore
if ( sSeparator.empty()) {
sFirst.clear() ;
sLast.clear() ;
return ;
}
// cerco il separatore
string::size_type iPos = ( bFirstVsLast ? sString.find( sSeparator) : sString.rfind( sSeparator)) ;
// se trovato