Le 15/03/2011 12:19, Jürgen Spitzmüller a écrit :
I'm not sure. As I wrote in another threat, the semantics of isChar() and isLetter() is not absolutely clear to me. In particular, I'm not sure where these are (or might be, in future) used outside of s&r, so I decided to go for a variable that is specifically designed for this particular case.
isLetter is used in two places: Paragraph::isWordSeparator and countChars (buffer_funcs.cpp).
I think that one of our problems with character classes is that we do ad-hoc decisions in each piece of code, which makes the code more complicated than it should be.
s&r, spell checking, word counting and word selecting already have subtly different sets of rules, and this is not a good thing.
I would say that if an inset is isChar and outputs a null string, it should be handled gracefully by find.
JMarc
