// -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; c-brace-offset: 0; -*- // // C++ Implementation: dvisourcesplitter // // Author: Jeroen Wijnhout , (C) 2004 // // Copyright: See COPYING file that comes with this distribution // #include #include "dvisourcesplitter.h" #include "kvs_debug.h" #include //#define DEBUG_SOURCESPLITTER DVI_SourceFileSplitter::DVI_SourceFileSplitter(const QString &srclink, const QString &dviFile) { QString filepart = srclink, linepart; // if sourcefilename starts with a number // then there could be a mix up, i.e. src:123file.tex // line 123 and file.tex or line 12 and 3file.tex? bool possibleNumberMixUp = false; #ifdef DEBUG_SOURCESPLITTER kDebug(kvs::dvi) << "DVI_SourceSplitter: srclink " << srclink; #endif //remove src: if necessary if ( filepart.left(4) == "src:" ) filepart = srclink.mid(4); //split first quint32 max = filepart.length(), i = 0; for(i=0; i