|
From: Kostka B. <ko...@to...> - 2010-10-12 09:26:05
|
I think while is an infinite cycle in this version...
Borek
From: Rustem Alimov [mailto:ar...@gm...]
Sent: Monday, October 11, 2010 5:25 PM
To: clu...@li...
Subject: Re: [CLucene-dev] Fwd: Highlighter. UPD
New version :)
// append trailing ')' and '"' to snippet
size_t trail = 0;
while (text[lastEndOffset] == _T(')') || text[lastEndOffset] == _T('"'))
++trail;
if (trail)
{
writeTo->append(text + lastEndOffset, trail);
lastEndOffset += trail;
}
2010/10/11 Kostka Bořivoj <ko...@to...>
OK, I'll look at it
Borek
From: Rustem Alimov [mailto:ar...@gm...]
Sent: Monday, October 11, 2010 11:17 AM
To: clu...@li...
Subject: [CLucene-dev] Fwd: Highlighter. UPD
Hi!
Please, append next block to code
src/contribs-lib/CLucene/highlighter/Highlighter.cpp
Highlighter::getBestTextFragments
Line: 315-317
// append trailing ')' and '"' to snippet
while (text[lastEndOffset] == _T(')') || text[lastEndOffset] == _T('"'))
{
writeTo->append(text + lastEndOffset, 1);
++lastEndOffset;
}
// append text after end of last token
//if (lastEndOffset < (int32_t)_tcslen(text))
//newText->append(text+lastEndOffset);
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
CLucene-developers mailing list
CLu...@li...
https://lists.sourceforge.net/lists/listinfo/clucene-developers
|