My favorites
▼
|
Sign in
starling
Unicode strings for Erlang
Project hosting will be READ-ONLY
Wednesday at 8am PST
due to brief network maintenance.
Project Home
Downloads
Issues
Source
Checkout
|
Browse
|
Changes
|
r18
Source path:
svn
/
trunk
/
demo
/
demo2.erl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
-module(demo2).
-export([run/0]).
-import(demo_util, [readlines/1]).
-define(pr(X), ustring:pr(X)).
run() ->
application:start(starling_app),
[S1, S2, S3, S4] = lists:map(fun(X) ->
ustring:new(X)
end,
readlines("demo2.txt")),
Pair1Eql = ustring:eql(S1, S2),
Pair2Eql = ustring:eql(S3, S4),
io:format("~s == ~s => ~p~n", [?pr(S1), ?pr(S2), Pair1Eql]),
io:format("~s == ~s => ~p~n", [?pr(S3), ?pr(S4), Pair2Eql]),
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: 585 bytes, 21 lines
View raw file
Hosted by