26 lines
952 B
Plaintext
26 lines
952 B
Plaintext
\b;Instruction \c;strmid\n;
|
|
Cette instruction extrait la partie centrale d'une chaîne de caractères.
|
|
|
|
Syntaxe:
|
|
\s;\c;strmid ( string, pos, len );\n;
|
|
|
|
\t;pos: \c;\l;int\u cbot\int;\n;
|
|
Position du premier caractère à extraire depuis la gauche.
|
|
|
|
\t;len: \c;\l;int\u cbot\int;\n;
|
|
Nombre de caractères à extraire.
|
|
|
|
Exemples:
|
|
\s;\c; string s = strmid("abcdef", 1, 2); // s vaut "bc"
|
|
\s; string s = strmid("abcdef", 4, 5); // s vaut "ef"
|
|
\s; string s = strmid("abcdef", 9, 2); // s vaut ""
|
|
\n;
|
|
\t;Dictionnaire anglais-français
|
|
\c;string\n; = chaîne de caractères
|
|
\c;middle\n; = milieu
|
|
\c;length\n; = longueur
|
|
|
|
\t;Voir aussi
|
|
\c;\l;strlen\u cbot\strlen;\n;, \c;\l;strleft\u cbot\strleft;\n;, \c;\l;strright\u cbot\strright;\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;
|
|
\l;Programmation\u cbot;, \l;types\u cbot\type; et \l;catégories\u cbot\category;.
|