colobot-data/help/cbot/F/strright.txt

17 lines
692 B
Plaintext
Raw Normal View History

\b;Instruction \c;strright\n;
2013-10-10 14:10:20 +00:00
Cette instruction extrait la partie droite d'une chaîne de caractères.
2013-10-10 14:10:20 +00:00
Syntaxe:
\s;\c;strright ( string, len );\n;
\t;len: \c;\l;int\u cbot\int;\n;
2013-10-10 14:10:20 +00:00
Nombre de caractères à extraire depuis la droite.
2013-10-10 14:10:20 +00:00
Exemples:
\s;\c; string s = strright("abcdef", 2); // s vaut "ef"
\s; string s = strright("abc", 10); // s vaut "abc"
\n;
2013-10-10 14:10:20 +00:00
\t;Voir aussi
\c;\l;strlen\u cbot\strlen;\n;, \c;\l;strleft\u cbot\strleft;\n;, \c;\l;strmid\u cbot\strmid;\n;, \c;\l;strfind\u cbot\strfind;\n;, \c;\l;strval\u cbot\strval;\n;, \c;\l;strupper\u cbot\strupper;\n;, \c;\l;strlower\u cbot\strlower;\n;
2013-10-10 14:10:20 +00:00
\l;Programmation\u cbot;, \l;types\u cbot\type; et \l;catégories\u cbot\category;.