Re: [PyCrust] FW: underscore kills command completion
Brought to you by:
pobrien
|
From: Robin D. <ro...@al...> - 2002-02-07 02:48:14
|
Will do. Neil, will this be going into a Scintilla release soon?
--Robin
----- Original Message -----
From: "Patrick K. O'Brien" <po...@or...>
To: "Neil Hodgson" <ne...@sc...>; "Kevin Altis"
<al...@se...>; "pycr" <PyC...@li...>
Cc: "Robin Dunn" <ro...@al...>
Sent: Wednesday, February 06, 2002 2:48 PM
Subject: RE: [PyCrust] FW: underscore kills command completion
> 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
>
>
|