aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/xpath/functions/string-length/index.md
blob: 52ca3d65b13788eefd0bf7e8d5ee79096c851971 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---
title: string-length
slug: Web/XPath/Functions/string-length
tags:
  - Référence_XSLT
translation_of: Web/XPath/Functions/string-length
original_slug: Web/XPath/Fonctions/string-length
---
{{ XsltRef() }}

La fonction `string-length` retourne le nombre de caractères dans une chaîne donnée.

### Syntaxe

    string-length( [chaîne] )

### Arguments

- `chaîne` (optionnel)
  - : La chaîne à évaluer. S'il est omis, la chaîne utilisée sera le noeud de contexte converti en chaîne.

### Retour

Un entier égal au nombre de caractères dans la chaîne.

### Définition

[XPath 1.0, section 4.2](http://www.w3.org/TR/xpath#function-string-length).

### Support Gecko

Supportée.