>>>>> "Etienne" == Etienne Grossmann <[EMAIL PROTECTED]> writes:
JMarc> This should certainly not be a macro (we try to avoid them as
JMarc> much as
Etienne> ^^^^^^^^^^ Ah ?
Using inline functions is nearly always better in C++. You get better
debugger support, less surprises.
JMarc> possible, in fact). Could you change it to an inline function
JMarc> and put this function in textutil.h, along with the others? In
JMarc> fact, the right thing to do is:
JMarc>
JMarc> define bool IsWordChar(unsigned char c) in textutil.h, and
JMarc> maybe define LyXParagraph::IsWordChar(int pos)
Etienne> ^^^ That's an offset ?
Yes, that's the offset from the paragraph. It should just do something
like
return IsWordChar(GetChar(pos));
Of course, this means that there is a collision between the function
and the method. You'll have to choose another name for one of
these...
JMarc