From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,T_SCC_BODY_TEXT_LINE, WEIRD_QUOTING autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: problemn with string'last Date: Fri, 05 May 2023 17:33:18 +0100 Organization: A noiseless patient Spider Message-ID: References: <2bc1705c-7802-4e89-960f-9b566d376f3cn@googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Info: dont-email.me; posting-host="1a3db257aaae033d3c0adfb8427bc6af"; logging-data="2554413"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19FyhuxBQaNhCfhi8d1ZtUneNGebH/HT7g=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (darwin) Cancel-Lock: sha1:WuTCWDLCZi+zVHVwyD2erfhqC5Y= sha1:ch5R6oDwFNEyHWehx9SeKnlcdCA= Xref: news.eternal-september.org comp.lang.ada:65176 List-Id: Manuel Gomez writes: > Or like this (doubling the quotes, which is the way to _escape_ the > double quote inside Ada strings): > > Data : constant String := " PLUS_STRING : > CONSTANT STRING(1..3) :=(1 =>'""' , 2 =>'+' , 3 =>'""');"; '"' is a single quote character. """" is a string containing one quote character.