Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 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