comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: How to append linefeed to unbounded string?
Date: Sun, 15 Nov 2015 16:22:45 -0700
Date: 2015-11-15T16:22:45-07:00	[thread overview]
Message-ID: <n2b3vs$c38$1@dont-email.me> (raw)
In-Reply-To: <e8796a00-96fa-4773-bff8-f4148c30432e@googlegroups.com>

On 11/15/2015 04:16 PM, John Smith wrote:
> 
> This is what I'm doing:
> Ada.Strings.Unbounded.Append(Result,
>   Ada.Strings.Unbounded.To_Unbounded_String(
>     Ada.Characters.Latin_1.LF));

To_Unbounded_String takes a String, not a Character. I'm not sure why you're
getting a msg about it expecting Integer.

There is an Append that takes a Character, as you noted, so you can do

Ada.Strings.Unbounded.Append (Result, Ada.Characters.Latin_1.LF);

-- 
Jeff Carter
"Apart from the sanitation, the medicine, education, wine,
public order, irrigation, roads, the fresh water system,
and public health, what have the Romans ever done for us?"
Monty Python's Life of Brian
80


  reply	other threads:[~2015-11-15 23:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-15 23:16 How to append linefeed to unbounded string? John Smith
2015-11-15 23:22 ` Jeffrey R. Carter [this message]
2015-11-15 23:25   ` John Smith
replies disabled

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