comp.lang.ada
 help / color / mirror / Atom feed
From: sk <noname@myob.com>
Subject: Re: Ada Characters?
Date: Wed, 27 Feb 2002 20:37:04 -0600
Date: 2002-02-27T20:37:04-06:00	[thread overview]
Message-ID: <mailman.1014863882.18648.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: Qhgf8.10877$mG.44556@rwcrnsc54

Hi,

> if <how do I check to see if it's a NL(new line) character?> then

???

How about looking at the packages Ada.Characters.Latin_1 or ASCII ?

if TEXT(I) = Ada.Characters.Latin_1.NL ...

if TEXT(I) = ASCII.NL ...

or even 

if Ada.Text_Io.End_Of_Line (<file>) then ...

These are quick-and-dirty, so the names of constants might be
wrong (NL ?, perhaps CR, cannot remember).

-------------------------------------
-- Merge vertically for real address
-------------------------------------
s n p @ t . o
 k i e k c c m
-------------------------------------



  parent reply	other threads:[~2002-02-28  2:37 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-28  2:07 Ada Characters? Wannabe h4x0r
2002-02-28  2:28 ` Jim Rogers
2002-02-28  2:37 ` sk [this message]
2002-02-28 13:16 ` Georg Bauhaus
2002-02-28 19:30   ` Wannabe h4x0r
2002-03-01 10:50     ` Georg Bauhaus
2002-03-05 20:58     ` Nick Roberts
2002-03-06  1:45       ` Wannabe h4x0r
2002-02-28 22:54 ` Jeffrey Carter
replies disabled

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