Sorry... monday....
while (text[lastEndOffset + trail] == _T(')') ||
text[lastEndOffset + trail] == _T('"'))
or a previous version...
2010/10/12 Kostka Bořivoj <kos...@tovek.cz>
> I think while is an infinite cycle in this version...
>
> Borek
>
>
>
> *From:* Rustem Alimov [mailto:arka...@gmail.com]
> *Sent:* Monday, October 11, 2010 5:25 PM
>
> *To:* clucene-developers@lists.sourceforge.net
> *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 <kos...@tovek.cz>
>
> OK, I'll look at it
>
> Borek
>
>
>
> *From:* Rustem Alimov [mailto:arka...@gmail.com]
> *Sent:* Monday, October 11, 2010 11:17 AM
> *To:* clucene-developers@lists.sourceforge.net
> *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
> CLucene-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/clucene-developers
>
>
>
>
> ------------------------------------------------------------------------------
> 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
> CLucene-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/clucene-developers
>
>
------------------------------------------------------------------------------
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
CLucene-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clucene-developers