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

22 lines
809 B
Plaintext
Raw Normal View History

\b;Instruction \c;strleft\n;
2013-10-10 14:10:20 +00:00
Cette instruction extrait la partie gauche d'une chaîne de caractères.
2013-10-10 14:10:20 +00:00
Syntaxe:
\s;\c;strleft ( 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 gauche.
2013-10-10 14:10:20 +00:00
Exemples:
\s;\c; string s = strleft("abcdef", 2); // s vaut "ab"
\s; string s = strleft("abc", 10); // s vaut "abc"
\n;
2013-10-10 14:10:20 +00:00
\t;Dictionnaire anglais-français
\c;string\n; = chaîne de caractères
\c;left \n; = gauche
\c;length\n; = longueur
\t;Voir aussi
\c;\l;strlen\u cbot\strlen;\n;, \c;\l;strright\u cbot\strright;\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;.