Re: [Ctags] Ctags-5.3 released

> This adds support to ctags to sort the tags file in a
> case-insensitive (i.e. case-folded) manner and also adds support to
> the readtags library to perform binary searches on tag files sorted
> in such a manner.
>
> Previously, a tag file could only be sorted using the C-locale (i.e.
> ASCII ordering) and the readtags library would then have to search
> linearly (i.e. slow for big tag files), instead of a binary search.
> Now, readtags can do a binary search on tag file sorted in a
> case-insensitive manner. Case-insensitive sorting is useful for
> case-insensitive languages.
>
> Is this clearer now?
Yes, clearer. However, can this be used with the case-sensitive languages
like C++? Also, is this support added as an option or it takes over the
original
implementation?
Best regards,
Paul.

Hello,
Thanks to all for the contributions.
> * Added support to ctags and readtags library for case-folded sorting of
tag
> files, submitted by Flemming Madsen.
Can you explain this a bit more?
Best regards,
Paul.

On Thu, 18 Jul 2002, Paul Selormey wrote:
> > * Added support to ctags and readtags library for case-folded sorting of
> tag
> > files, submitted by Flemming Madsen.
>
> Can you explain this a bit more?
This adds support to ctags to sort the tags file in a
case-insensitive (i.e. case-folded) manner and also adds support to
the readtags library to perform binary searches on tag files sorted
in such a manner.
Previously, a tag file could only be sorted using the C-locale (i.e.
ASCII ordering) and the readtags library would then have to search
linearly (i.e. slow for big tag files), instead of a binary search.
Now, readtags can do a binary search on tag file sorted in a
case-insensitive manner. Case-insensitive sorting is useful for
case-insensitive languages.
Is this clearer now?
--
Darren Hiebert <dhiebert@...>
http://DarrenHiebert.com

> This adds support to ctags to sort the tags file in a
> case-insensitive (i.e. case-folded) manner and also adds support to
> the readtags library to perform binary searches on tag files sorted
> in such a manner.
>
> Previously, a tag file could only be sorted using the C-locale (i.e.
> ASCII ordering) and the readtags library would then have to search
> linearly (i.e. slow for big tag files), instead of a binary search.
> Now, readtags can do a binary search on tag file sorted in a
> case-insensitive manner. Case-insensitive sorting is useful for
> case-insensitive languages.
>
> Is this clearer now?
Yes, clearer. However, can this be used with the case-sensitive languages
like C++? Also, is this support added as an option or it takes over the
original
implementation?
Best regards,
Paul.

On Thu, 18 Jul 2002, Paul Selormey wrote:
> > This adds support to ctags to sort the tags file in a
> > case-insensitive (i.e. case-folded) manner and also adds support to
> > the readtags library to perform binary searches on tag files sorted
> > in such a manner.
> >
> > Previously, a tag file could only be sorted using the C-locale (i.e.
> > ASCII ordering) and the readtags library would then have to search
> > linearly (i.e. slow for big tag files), instead of a binary search.
> > Now, readtags can do a binary search on tag file sorted in a
> > case-insensitive manner. Case-insensitive sorting is useful for
> > case-insensitive languages.
> >
> > Is this clearer now?
>
> Yes, clearer. However, can this be used with the case-sensitive languages
> like C++? Also, is this support added as an option or it takes over the
> original implementation?
It can be used with any language. However, it would require support
by the tool reading tag files to allow the user to indicate whether
or not a requested tag should match case. Bear in mind that
searching for a tag having exact case when the tag file is sorted
case-insensitive cannot use binary searches either. To be able to
get a binary search, the sorting of the tag file must match the kind
of searches that are being done.
Sorting a tag file in a case-insensitive manner is an option in
ctags; see the modified description of the --sort option in the man
page, which will explain how to control it. If you have an interest
in the readtags library, see readtags.h in the distribution.
--
Darren Hiebert <dhiebert@...>
http://DarrenHiebert.com

Thanks,
I am really interested in the readtabs lib, which I consider to be the best
help to developers using the ctags in an application.
Best regards,
Paul.
----- Original Message -----
From: "Darren Hiebert" <dhiebert@...>
To: "Paul Selormey" <paul@...>
Cc: "Ctags Users" <ctags-users@...>
Sent: Thursday, July 18, 2002 1:02 PM
Subject: Re: [Ctags] Ctags-5.3 released
> On Thu, 18 Jul 2002, Paul Selormey wrote:
>
> > > This adds support to ctags to sort the tags file in a
> > > case-insensitive (i.e. case-folded) manner and also adds support to
> > > the readtags library to perform binary searches on tag files sorted
> > > in such a manner.
> > >
> > > Previously, a tag file could only be sorted using the C-locale (i.e.
> > > ASCII ordering) and the readtags library would then have to search
> > > linearly (i.e. slow for big tag files), instead of a binary search.
> > > Now, readtags can do a binary search on tag file sorted in a
> > > case-insensitive manner. Case-insensitive sorting is useful for
> > > case-insensitive languages.
> > >
> > > Is this clearer now?
> >
> > Yes, clearer. However, can this be used with the case-sensitive
languages
> > like C++? Also, is this support added as an option or it takes over the
> > original implementation?
>
> It can be used with any language. However, it would require support
> by the tool reading tag files to allow the user to indicate whether
> or not a requested tag should match case. Bear in mind that
> searching for a tag having exact case when the tag file is sorted
> case-insensitive cannot use binary searches either. To be able to
> get a binary search, the sorting of the tag file must match the kind
> of searches that are being done.
>
> Sorting a tag file in a case-insensitive manner is an option in
> ctags; see the modified description of the --sort option in the man
> page, which will explain how to control it. If you have an interest
> in the readtags library, see readtags.h in the distribution.
>
> --
> Darren Hiebert <dhiebert@...>
> http://DarrenHiebert.com
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Ctags-users mailing list
> Ctags-users@...
> https://lists.sourceforge.net/lists/listinfo/ctags-users

(I've had a brief search of the documentation/man pages/mailing list
so please forgive me if this has come up before)
I'd like to get tags for local variables as well as global ones.
int a;
void Func() { int b; }
a gets a tag, but b doesn't, I want them both to be recognised.
Is the functionality present in ctags to parse function bodies? I've had
a go at this myself in the past and realise how hard it is parsing C++, so
wouldn't be at all surprised to learn that this is impossible.
Charlie - Queens' College - Cavendish Astrophysics - 07866 636318

>
>
>
> (I've had a brief search of the documentation/man pages/mailing list
> so please forgive me if this has come up before)
>
> I'd like to get tags for local variables as well as global ones.
>
> int a;
> void Func() { int b; }
>
> a gets a tag, but b doesn't, I want them both to be recognised.
>
> Is the functionality present in ctags to parse function bodies? I've had
> a go at this myself in the past and realise how hard it is parsing C++, so
> wouldn't be at all surprised to learn that this is impossible.
CTags does not do inside function bodies at all. If you're looking for
that kind of a complex parser, you're welcome to have a look at my
project http://sourcebase.sf.net/ which uses the Source Navigator
parsers which are more advanced (because they need features such as
X-Ref, etc.)
Rgds,
Biswa.
>
> Charlie - Queens' College - Cavendish Astrophysics - 07866 636318
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Ctags-users mailing list
> Ctags-users@...
> https://lists.sourceforge.net/lists/listinfo/ctags-users
>
>