sqlines/str.cpp
// Get substring until the specified char is met
Get substring until the specified char is met
Get substring until the specified char is met
void Str::GetSubtringUntil(const char *input, char ch, int len, std::string &output)
{
	unsigned int pos = 0;
	do
	{
		if(input[pos] == ch)
		{
			output.assign(input, pos);
			break;
		}
		pos++;
	} while(pos < len);
}
void Str :: GetSubtringUntil ( const char * input , char ch , int len , std :: string & output ) { unsigned int pos = 0 ; do { if ( input [ pos ] == ch ) { output . assign ( input , pos ) ; break ; } pos ++ ; } while ( pos < len ) ; }
Get substring until the specified char is met
Get substring until the specified char is met