Re: [PyCrust] FW: underscore kills command completion
Brought to you by:
pobrien
|
From: Neil H. <ne...@sc...> - 2002-02-06 21:10:03
|
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
|