If a character occurs more than once in second argument string, then the first occurrence determines the replacement character.
Si un caractère apparaît plusieurs fois dans la deuxième chaîne d'argument, sa première occurrence détermine le caractère de remplacement.
If the third argument string is longer than the second argument string, then excess characters are ignored.
Si la longueur de la troisième chaîne d'argument est supérieure à celle de la deuxième, les caractères excédentaires sont ignorés.
The contains function determines whether the first argument string contains the second argument string and returns boolean true or false.
La fonction contains détermine si la chaîne passée en premier argument contient la chaîne passée en second argument et retourne le booléen true ou false.
The starts-with function returns true if the first argument string starts with the second argument string, and otherwise returns false.
La fonction starts-with() renvoie true si la première chaîne d'argument commence par la seconde chaîne d'argument, et false dans le cas contraire.
The translate function returns the first argument string with occurrences of characters in the second argument string replaced by the character at the corresponding position in the third argument string.
La fonction translate() renvoie la première chaîne de caractères dont certains caractères qui se retrouvent dans la deuxième chaîne d'argument sont remplacés par les caractères situés à la position correspondante dans la troisième chaîne d'argument.
Function name() returns name of the element, the starts-with function returns true if the first argument string starts with the second argument string, and the contains function returns true if the first argument string contains the second argument string.
Exemple 8 La fonction name() retourne le nom de l'élément, la fonction start-with retourne vrai si la chaîne du premier argument commence par celle du deuxième et la fonction contains retourne vrai si la chaîne du premier argument contient celle du deuxième
Contenu potentiellement sensible ou inapproprié
Les exemples vous aident à traduire le mot ou l’expression cherchés dans des contextes variés. Ils ne sont ni sélectionnés ni validés par nous et peuvent contenir des mots ou des idées inappropriés. Signalez des exemples à modifier ou à retirer. Les traductions potentiellement sensibles, inappropriées ou familières sont généralement marquées de rouge ou d’orange.