2.6 String Literals
is formed by a sequence of graphic characters (possibly none) enclosed
between two quotation marks used as string brackets. They are used to
), values of a string type (see 4.2
and array subaggregates (see 4.3.3
"" | non_quotation_mark_graphic_character
is either a pair of quotation marks (""), or a single graphic_character
other than a quotation mark.
The sequence of characters
of a string_literal
is formed from the sequence of string_element
between the bracketing quotation marks, in the given order, with a string_element
that is "" becoming a single quotation mark in the sequence
of characters, and any other string_element
being reproduced in the sequence.
6 No transformation is performed on the
sequence of characters of a string_literal
Examples of string
"Message of the day:"
"" -- a null string literal
" " "A" """" -- three string literals of length 1
"Characters such as $, %, and } are allowed in string literals"
"Archimedes said ""Εύρηκα"""
"Volume of cylinder (πr²h) = "
Ada 2005 and 2012 Editions sponsored in part by Ada-Europe