Seed7 - The extensible programming language
Seed7 FAQ Manual Screenshots Examples Libraries Algorithms Download Links
Libraries AES ARC4 Array ASN.1 Bigfile Bigint Bigrat Bin32 Bin64 Bitdata Bitmapfont Bitset Bitsetof Boolean Browser Bstring Bytedata Cards Category CC config Cgi Cgi dialog Char Charsets Cipher Clib_file Color CLI Commands Complex Console Crc32 Deflate DES Dialog Dir Draw Duration Echo Editline Enable_input Enable_io Enable_output Encoding Environment External_file File File system Float Font Forloop Ftp Getf Gethttp Gethttps Graph Graph_file Gzip Hash Hashsetof Hmac Html_ent Httpserv Idxarray Image Inflate Inflate file Inifile Integer Keybd Line Listener LZW Make Math Msgdigest Null_file Osfiles Picture utility Pixmap_file Pixmapfont PKCS #1 Poll Process Progs Propertyfile Rational Reference Ref_list Scanfile Scanstri Set Shell Smtp Sockbase Socket SQL base Stdio Strifile String Stritext Subrange Tar Text Time TLS/SSL Triple DES Unicode Utf16 Utf8 Vectorfont 3D Vector Wildcard Window Wrinum X.509 Xmldom Xml_ent Zip
Libraries
Enable_output Source Code
 previous   up   next 

Operator Summary
string
(in aType: aValue) lpad (in integer: leng)
Convert aValue to string and pad it with spaces at the left side.
string
(in aType: aValue) rpad (in integer: leng)
Convert aValue to string and pad it with spaces at the right side.
string
(in string: stri) <& (in aType: aValue)
Convert aValue to string and append it to stri.
string
(in aType: aValue) <& (in string: stri)
Convert aValue to string and append stri to it.

Function Summary
void
enable_output (in type: aType)
Template function to define output functions for aType.
void
write (inout file: aFile, in aType: aValue)
Write aValue to the file aFile.
void
writeln (inout file: aFile, in aType: aValue)
Write aValue followed by end-of-line to the file aFile.
void
write (in aType: aValue)
Write aValue to the standard output file OUT.
void
writeln (in aType: aValue)
Write aValue followed by end-of-line to the standard output file OUT.

Operator Detail

lpad

const func string: (in aType: aValue) lpad (in integer: leng)

Convert aValue to string and pad it with spaces at the left side. The string is padded up to a given length.

Returns:
aValue converted to string and left padded with spaces.

rpad

const func string: (in aType: aValue) rpad (in integer: leng)

Convert aValue to string and pad it with spaces at the right side. The string is padded up to a given length.

Returns:
aValue converted to string and right padded with spaces.

<&

const func string: (in string: stri) <& (in aType: aValue)

Convert aValue to string and append it to stri. This operator is intended for write statements.

Returns:
the result of the concatination.

<&

const func string: (in aType: aValue) <& (in string: stri)

Convert aValue to string and append stri to it. This operator is intended for write statements.

Returns:
the result of the concatination.

Function Detail

enable_output

const proc: enable_output (in type: aType)

Template function to define output functions for aType. It defines the functions write and writeln and the operators lpad, rpad and &lt;&amp;. The functions and operators use the str function to convert the aType value to a string. Afterwards they call the corresponding function respectively operator for string values. The functions write and writeln are defined with file argument and without file argument. The functions without file argument write to the standard output file OUT.


write

const proc: write (inout file: aFile, in aType: aValue)

Write aValue to the file aFile.


writeln

const proc: writeln (inout file: aFile, in aType: aValue)

Write aValue followed by end-of-line to the file aFile.


write

const proc: write (in aType: aValue)

Write aValue to the standard output file OUT.


writeln

const proc: writeln (in aType: aValue)

Write aValue followed by end-of-line to the standard output file OUT.



 previous   up   next