void QgsDelimitedTextFile::setTypeCSV( QString delim, QString quote, QString escape ) { resetDefinition(); mType = DelimTypeCSV; mDelimChars = decodeChars( delim ); mQuoteChar = decodeChars( quote ); mEscapeChar = decodeChars( escape ); mParser = &QgsDelimitedTextFile::parseQuoted; mDefinitionValid = mDelimChars.size() > 0; if ( ! mDefinitionValid ) { QgsDebugMsg( "Invalid empty delimiter defined for text file delimiter" ); } }
void QgsDelimitedTextFile::setTypeCSV( const QString &delim, const QString "e, const QString &escape ) { resetDefinition(); mType = DelimTypeCSV; mDelimChars = decodeChars( delim ); mQuoteChar = decodeChars( quote ); mEscapeChar = decodeChars( escape ); mParser = &QgsDelimitedTextFile::parseQuoted; mDefinitionValid = !mDelimChars.isEmpty(); if ( ! mDefinitionValid ) { QgsDebugMsg( "Invalid empty delimiter defined for text file delimiter" ); } }