<?xml version="1.0"?>

<!--
	description:

		"Examples"

	library: "Gobo Eiffel String Library"
	copyright: "Copyright (c) 2004, Berend de Boer and others"
	license: "MIT License"
	date: "$Date$"
	revision: "$Revision$"
-->

<chapter xmlns="http://www.gobosoft.com/eiffel/gobo/documentation" id="string/formatter/examples">

<chapterinfo>
	<copyright>
		<year>2004-2005</year>
		<holder>Berend de Boer</holder>
	</copyright>
	<author>
		<firstname>Berend</firstname><surname>de Boer</surname>
	</author>
	<email>berend@pobox.com</email>
	<date>7 March 2005</date>
</chapterinfo>

<title>Examples</title>

<para>
The following table gives a number of examples. (Underscores are meant to 
represent spaces.)
</para>

<table>
	<title>Examples</title>
	<tgroup cols="3">
	<thead>
		<row>
			<entry>Value</entry>
			<entry>Format</entry>
			<entry>Result</entry>
		</row>
	</thead>
	<tbody>
		<row>
			<entry>Hello,_John</entry>
			<entry>10s</entry>
			<entry>Hello,_John</entry>
		</row>
		<row>
			<entry>"</entry>
			<entry>-10.5s</entry>
			<entry>Hello_____</entry>
		</row>
		<row>
			<entry>"</entry>
			<entry>^10.5s</entry>
			<entry>__Hello___</entry>
		</row>
		<row>
			<entry>"</entry>
			<entry>s</entry>
			<entry>Hello,_John</entry>
		</row>
		<row>
			<entry>3.1245621</entry>
			<entry>5.0f</entry>
			<entry>____3</entry>
		</row>
		<row>
			<entry>3.1245621</entry>
			<entry>-3.0f</entry>
			<entry>3__</entry>
		</row>
		<row>
			<entry>3.1245621</entry>
			<entry>6.3f</entry>
			<entry>_3.125</entry>
		</row>
		<row>
			<entry>3.1245621</entry>
			<entry>8e</entry>
			<entry>3.124562e+00</entry>
		</row>
	</tbody>
	</tgroup>
</table>

</chapter>
