ends-with
Retourne true si la chaîne fournit dans l'argument string se termine avec la chaîne fournie dans l'argument end.
Signature
ends-with(string:chaîne, end:chaîne) -> booléen |
Paramètres
Nom | Type | Description |
---|---|---|
string | chaîne | La chaîne d’entrée. |
end | chaîne | La valeur de chaîne à vérifier. |
Exemples
L’expression suivante retourne true:
ends-with('cat', 't') |
L’expression suivante retourne false:
ends-with('cat', 'a') |