Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
16
Task/String-comparison/Aime/string-comparison.aime
Normal file
16
Task/String-comparison/Aime/string-comparison.aime
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
text s, t;
|
||||
|
||||
s = "occidental";
|
||||
t = "oriental";
|
||||
|
||||
# operator case sensitive comparison
|
||||
o_form("~ vs ~ (==, !=, <, <=, >=, >): ~ ~ ~ ~ ~ ~\n", s, t, s == t, s != t, s < t, s <= t, s >= t, s > t);
|
||||
|
||||
s = "Oriental";
|
||||
t = "oriental";
|
||||
|
||||
# case sensitive comparison
|
||||
o_form("~ vs ~ (==, !=, <, >): ~ ~ ~ ~\n", s, t, !compare(s, t), compare(s, t), compare(s, t) < 0, 0 < compare(s, t));
|
||||
|
||||
# case insensitive comparison
|
||||
o_form("~ vs ~ (==, !=, <, >): ~ ~ ~ ~\n", s, t, !icompare(s, t), icompare(s, t), icompare(s, t) < 0, 0 < icompare(s, t));
|
||||
Loading…
Add table
Add a link
Reference in a new issue