DUChain: How should we support case insensitive functions?

David Nolden david.nolden.kdevelop at art-master.de
Thu Aug 20 20:16:06 UTC 2009


Am Donnerstag 20 August 2009 22:09:19 schrieb Milian Wolff:
> No problem, thanks for replying at all :) And I'll... let me just say it in
> German: Ich werd dir die Daumen drücken. Viel Erfolg!
Thanks I can use that, I'm not that good at holding speeches. :-)

> > But generally, I don't see how we could allow case-insensitive search in
> > the duchain. That is simply not possible in any even half-efficient way,
> > as the searching is done through the IndexedString indices.
>
> Yeah I pretty much thought so, but couldn't come up with something better.
>
> But:
> > So I guess the best way would be: Create some additional declaration
> > type, maybe a template like TemplateDeclaration, where you can attach an
> > additional "pretty" string to each declaration. That would be the 'with
> > case' string then in php, while internally everything would have a
> > lower-case identity.
> >
> > Then before printing something to the user, you will have have to
> > "prettify" it before showing by using the 'pretty' string instead of the
> > identity, much like the C++ support does (It leaves out template default
> > parameters, resolves typedefs when necessary, etc.).
>
> Sounds great, thanks for the hint. Have a nice vacation. Oh and btw.: Does
> that mean you are done with your thesis?
No, that's just the middle speech. It'll still take a month and a half, but I 
need a break now. :-)

So thanks and have fun..





More information about the KDevelop-devel mailing list