Ada Programming/Attributes/'Wide Image

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Description

[edit | edit source]

Image of the value of X as a Wide_String.

S'Wide_Image calls S'Put_Image passing Arg (which will typically store a sequence of character values in a text buffer) and then returns the result of retrieving the contents of that buffer with function Wide_Get.

X'Wide_Image denotes the result of calling function S'Wide_Image with Arg being X, where S is the nominal subtype of X (Ada 2022).

Example

[edit | edit source]
SWide_Image (X:S) return Wide_String
XWide_Image return Wide_String -- Ada 2022