Am 27.09.2010 um 12:08 schrieb Jean-Marc Lasgouttes:
> Le 27/09/2010 08:34, Stephan Witt a écrit :
>> The problem is, that if one uses single quotes for quotation this logic
>> fails.
>> Maybe, we can say: dear user, don't do this. But I'm not sure.
>
> Having single quotes as non-separator has some merits for words like "don't"
> or
> "aujourd'hui".
>
> ... Another approach would be to ignore quotes at the beginning or end of a
> word. It is probably not difficult to do.
You know that we're talking about isWordSeparator()... :-)
The only thing one has to do is calling isEndOfWord() or isBeginOfWord() in
isWordSeparator()...
Not difficult.
But seriously: there is already one fragile separator implementation!
================
bool Paragraph::isSeparator(pos_type pos) const
{
//FIXME: Are we sure this can be the only separator?
return d->text_[pos] == ' ';
}
================
Stephan