PageRenderTime 12ms CodeModel.GetById 6ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/src/wrappers/glib/examples/string_example.e

http://github.com/tybor/Liberty
Specman e | 25 lines | 22 code | 3 blank | 0 comment | 0 complexity | 3d8dbca2107dbc9ad9da495b80b81050 MD5 | raw file
 1indexing
 2	copyright: "(C) 2005 Paolo Redaelli "
 3	license: "LGPL v2 or later"
 4	date: "$Date:$"
 5	revision: "$REvision:$"
 6
 7class STRING_EXAMPLE
 8
 9creation make
10feature
11	string: G_STRING
12	make is
13		local i: INTEGER; c: CHARACTER
14		do
15			create string.make (10)
16			print ("String count is "+string.count.out+"%N")
17			from i:=0; c:='a' until c>'j' loop
18				string.put(c,i)
19				c:=c.next
20				i:=i+1
21			end
22			print(string.to_string)
23		end
24end	
25