comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: Constrained Character Subtype
Date: 1997/03/13
Date: 1997-03-13T00:00:00+00:00	[thread overview]
Message-ID: <dewar.858254134@merv> (raw)
In-Reply-To: mheaney-ya023680001203972342020001@news.ni.net


<<an incomplete version of this post got sent accidentally by noise on the
  line, I will cancel it, but if you see it, ignore it>>

Matthew Heany posts a longish note on how to deal with sets of characters.
I won't quote it, because it misses the very obvious answer:

  Sets of characters are a predefined feature in Ada 95!!!

Look up type Ada.Strings.Maps.Character_Set

a complete set of constructors, and functions to manipulate and provide
these sets is provided.

You can easily create the set Vowels using the To_Set operation, and
test for membership using the Is_In function.





  reply	other threads:[~1997-03-13  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-03-12  0:00 Constrained Character Subtype Tracy Fletcher
1997-03-12  0:00 ` Matthew Heaney
1997-03-13  0:00   ` Robert Dewar [this message]
1997-03-13  0:00   ` Jeff Carter
1997-03-13  0:00 ` Joakim Olsson
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox