comp.lang.ada
 help / color / mirror / Atom feed
* trimming strings
@ 2014-08-02 13:10 agent
  2014-08-02 14:21 ` Pascal Obry
  2014-08-02 17:22 ` mockturtle
  0 siblings, 2 replies; 15+ messages in thread
From: agent @ 2014-08-02 13:10 UTC (permalink / raw)


I am having a very difficult time understanding something.  I am
trying to do this using gnat on Ubuntu 14.04 system:
 
with Ada.Strings; use Ada.Strings;
with Ada.Strings.Fixed; use Ada.Strings.Fixed;

subtype string255fixedtype is string (1.255);
inbuf : string255fixedtype;

BEGIN
  inbuf := Get_Line;
  inbuf := trim(inbuf,both);  
--    this does not work, error is both is not visible

No combination of ada.strings.fixed.both, or ada.strings.both got it
to be visible.

However, I was able to get left and right to work, by using
ada.strings.left and ada.strings.right.

Trim_end is an enumeration type that says (left,right,both) in the
books I've looked at.

What am I missing?

Thanks

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2014-08-05 21:05 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-02 13:10 trimming strings agent
2014-08-02 14:21 ` Pascal Obry
2014-08-02 15:27   ` G.B.
2014-08-02 17:00     ` Adam Beneschan
2014-08-02 17:22 ` mockturtle
2014-08-03 21:42   ` agent
2014-08-03 23:14     ` Georg Bauhaus
2014-08-04  0:17     ` Shark8
2014-08-04 10:06       ` mockturtle
2014-08-04 10:49         ` Pascal Obry
2014-08-04 11:51           ` Simon Clubley
2014-08-04 12:11             ` Pascal Obry
2014-08-04 16:50         ` Shark8
2014-08-04 23:28           ` Dennis Lee Bieber
2014-08-05 21:05             ` agent

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