aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/xpath/functions/starts-with/index.md
blob: ecd2e42fa587e354cfb1bfdef1f31f7edee44432 (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
33
34
35
36
37
---
title: starts-with
slug: Web/XPath/Functions/starts-with
tags:
  - Référence_XSLT
translation_of: Web/XPath/Functions/starts-with
original_slug: Web/XPath/Fonctions/starts-with
---
{{ XsltRef() }}

La fonction `starts-with` vérifie si la première chaîne débute par la seconde, et retourne `true` ou `false`.

### Syntaxe

    starts-with( meule , aiguille)

### Arguments

- `meule`
  - : La chaîne dans laquelle chercher.

<!---->

- `aiguille`
  - : La chaîne à rechercher.

### Retour

`true` si meule débute par `aiguille`. Autrement, `false`.

### Définition

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

### Support Gecko

Supportée.