From 507ee32fdbe3b769497fbe3676cbbe47401d046e Mon Sep 17 00:00:00 2001 From: dockes Date: Thu, 21 Sep 2006 05:59:02 +0000 Subject: [PATCH] 132.jpg was not split --- src/common/textsplit.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/common/textsplit.cpp b/src/common/textsplit.cpp index 3d875321..cf27ded9 100644 --- a/src/common/textsplit.cpp +++ b/src/common/textsplit.cpp @@ -1,5 +1,5 @@ #ifndef lint -static char rcsid[] = "@(#$Id: textsplit.cpp,v 1.22 2006-04-25 08:17:36 dockes Exp $ (C) 2004 J.F.Dockes"; +static char rcsid[] = "@(#$Id: textsplit.cpp,v 1.23 2006-09-21 05:59:02 dockes Exp $ (C) 2004 J.F.Dockes"; #endif /* * This program is free software; you can redistribute it and/or modify @@ -263,6 +263,9 @@ bool TextSplit::text_to_words(const string &in) case '.': case ',': if (number) { + // 132.jpg ? + if (whatcc(it[charpos+1]) != DIGIT) + goto SPACE; word += it; span += it; break; @@ -368,7 +371,7 @@ using namespace std; class mySplitterCB : public TextSplitCB { int first; public: - mySplitterCB() : first(0) {} + mySplitterCB() : first(1) {} bool takeword(const std::string &term, int pos, int bs, int be) { if (first) {