/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
- indexing
- copyright: "(C) 2005 Paolo Redaelli "
- license: "LGPL v2 or later"
- date: "$Date:$"
- revision: "$REvision:$"
- class STRING_EXAMPLE
- creation make
- feature
- string: G_STRING
- make is
- local i: INTEGER; c: CHARACTER
- do
- create string.make (10)
- print ("String count is "+string.count.out+"%N")
- from i:=0; c:='a' until c>'j' loop
- string.put(c,i)
- c:=c.next
- i:=i+1
- end
- print(string.to_string)
- end
- end