diff options
author | Michał Konopacki <konopacki.m@gmail.com> | 2012-08-09 22:13:10 +0200 |
---|---|---|
committer | Michał Konopacki <konopacki.m@gmail.com> | 2012-08-09 22:13:10 +0200 |
commit | 7b03a6a2acb9c7ddbae663b27be4b223f984cfcd (patch) | |
tree | 29855d977b5b19eac31723e490773bb30e10efae /src/CBot/tests/TestCBot/scenarios/TestStr.txt | |
parent | ef7e297efe63a45cd3a821c171d98d0681c714ff (diff) | |
download | colobot-7b03a6a2acb9c7ddbae663b27be4b223f984cfcd.tar.gz colobot-7b03a6a2acb9c7ddbae663b27be4b223f984cfcd.tar.bz2 colobot-7b03a6a2acb9c7ddbae663b27be4b223f984cfcd.zip |
CBot console interpreter
Based on program found in sources
Diffstat (limited to 'src/CBot/tests/TestCBot/scenarios/TestStr.txt')
-rw-r--r-- | src/CBot/tests/TestCBot/scenarios/TestStr.txt | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/CBot/tests/TestCBot/scenarios/TestStr.txt b/src/CBot/tests/TestCBot/scenarios/TestStr.txt deleted file mode 100644 index 683ec1b..0000000 --- a/src/CBot/tests/TestCBot/scenarios/TestStr.txt +++ /dev/null @@ -1,17 +0,0 @@ -extern public void TSTR()
-{
- string s = "C'est un essai";
-
- print ( s, strlen(s), strleft(s, 3), strright(s,3), strmid(s, 2), strmid(s,2,3), strfind(s, "un"), strfind(s, "sdgfld") );
-
- show ( strupper(s), strlower(s) );
-
- s = "123.45" ;
- print ( strval(s) );
-
-
- string sub = strright("abcdef", 2); // sub vaut "ef###", # étant un caractère bizarre quelconque
- show (sub);
- int pos = strfind("abcdef", "xy"); // pos vaut -1. Pourquoi pas nan ?
- show(pos);
-}
|