[Geany-devel] Use of Scintilla word boundaries for word searches

Dimitar Zhekov dimitar.zhekov at xxxxx
Sat Aug 20 18:56:07 UTC 2011

On Sat, 20 Aug 2011 20:19:56 +0200
Colomban Wendling <lists.ban at herbesfolles.org> wrote:

> > For Scintilla/Geany, "boza" or "боза", enclosed in non-ascii
> > quotes, is not a word any more.
> Ah OK, got it.  Yeah, it doesn't detect the quote as "blank chars",
> so doesn't fit in "...consists of sequences of non-blank characters
> separated by blanks".

If you enclose boza in ascii quotes, it doesn't fit the definition
either, but is recognized as a word. There is no reason to guess,
Scintilla is open source, and here is the exact definition:

 * Check that the character at the given position is a word or
 * punctuation character and that the previous character is of
 * a different character class.
bool Document::IsWordStartAt(int pos) {

And the same goes for word end and whole word. Weird.

E-gards: Jimmy

More information about the Devel mailing list