My favorites
|
Sign in
starling
Unicode strings for Erlang
Project Home
Downloads
Issues
Source
Checkout
|
Browse
|
Changes
|
r18
Source path:
svn
/
trunk
/
demo
/
demo1.erl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
-module(demo1).
-export([run/0]).
-import(demo_util, [readlines/1]).
-define(pr(X), ustring:pr(X)).
run() ->
application:start(starling_app),
lists:foreach(fun(X) ->
Ustr = ustring:new(X),
Upper = ustring:to_upper(Ustr),
Lower = ustring:to_lower(Ustr),
io:format("~s~n", [?pr(Upper)]),
io:format("~s~n", [?pr(Lower)])
end,
readlines("demo1.txt")),
application:stop(starling_app).
Show details
Hide details
Change log
r12
by hasan.veldstra on Mar 11, 2008
Diff
Added simple demos.
Go to:
/trunk/demo
/trunk/demo/demo1.erl
/trunk/demo/demo1.txt
/trunk/demo/demo2.erl
/trunk/demo/demo2.txt
/trunk/demo/demo_util.erl
Project members,
sign in
to write a code review
Older revisions
All revisions of this file
File info
Size: 562 bytes, 19 lines
View raw file
Hosted by