Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
22
Task/String-matching/Aime/string-matching.aime
Normal file
22
Task/String-matching/Aime/string-matching.aime
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
text t;
|
||||
data b;
|
||||
|
||||
b = "Bangkok";
|
||||
|
||||
t = "Bang";
|
||||
|
||||
o_form("starts with, embeds, ends with \"~\": ~, ~, ~\n", t, b.seek(t) == 0,
|
||||
b.seek(t) != -1,
|
||||
b.seek(t) != -1 && b.seek(t) + ~t == ~b);
|
||||
|
||||
t = "ok";
|
||||
|
||||
o_form("starts with, embeds, ends with \"~\": ~, ~, ~\n", t, b.seek(t) == 0,
|
||||
b.seek(t) != -1,
|
||||
b.seek(t) != -1 && b.seek(t) + ~t == ~b);
|
||||
|
||||
t = "Summer";
|
||||
|
||||
o_form("starts with, embeds, ends with \"~\": ~, ~, ~\n", t, b.seek(t) == 0,
|
||||
b.seek(t) != -1,
|
||||
b.seek(t) != -1 && b.seek(t) + ~t == ~b);
|
||||
Loading…
Add table
Add a link
Reference in a new issue