RE: [PyCrust] FW: underscore kills command completion
Brought to you by:
pobrien
From: Patrick K. O'B. <po...@or...> - 2002-02-06 23:10:37
|
I don't have the tools to do this, plus it sounds like Robin's domain. Robin? --- Patrick K. O'Brien Orbtech > -----Original Message----- > From: pyc...@li... > [mailto:pyc...@li...]On Behalf Of Neil > Hodgson > Sent: Wednesday, February 06, 2002 3:10 PM > To: po...@or...; Kevin Altis; pycr > Subject: Re: [PyCrust] FW: underscore kills command completion > > > Me: > > > Something is still broken in the search routine. > > > > Yes, there is a bug here so I will look into it. > > I think changing the string comparison functions to compare > non-alphabetic to upper cased characters will fix this. If you have > facilities to build wxPython, then change scintilla/src/PropSet.cxx: > > int CompareCaseInsensitive(const char *a, const char *b) { > while (*a && *b) { > if (*a != *b) { > char upperA = MakeUpperCase(*a); > char upperB = MakeUpperCase(*b); > if (upperA != upperB) > return upperA - upperB; > } > a++; > b++; > } > // Either *a or *b is nul > return *a - *b; > } > > int CompareNCaseInsensitive(const char *a, const char *b, int len) { > while (*a && *b && len) { > if (*a != *b) { > char upperA = MakeUpperCase(*a); > char upperB = MakeUpperCase(*b); > if (upperA != upperB) > return upperA - upperB; > } > a++; > b++; > len--; > } > if (len == 0) > return 0; > else > // Either *a or *b is nul > return *a - *b; > } > > > Neil > > > > _______________________________________________ > PyCrust-users mailing list > PyC...@li... > https://lists.sourceforge.net/lists/listinfo/pycrust-users |