2013-03-29 09:01:03 +00:00
|
|
|
\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-03-29 09:01:03 +00:00
|
|
|
|
2013-10-10 14:10:20 +00:00
|
|
|
Syntaxe:
|
2013-03-29 09:01:03 +00:00
|
|
|
\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-03-29 09:01:03 +00:00
|
|
|
|
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"
|
2013-03-29 09:01:03 +00:00
|
|
|
\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
|
2013-03-29 09:01:03 +00:00
|
|
|
\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;.
|