diff options
Diffstat (limited to 'files/pl/web/xpath/functions/substring-before')
| -rw-r--r-- | files/pl/web/xpath/functions/substring-before/index.html | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/files/pl/web/xpath/functions/substring-before/index.html b/files/pl/web/xpath/functions/substring-before/index.html new file mode 100644 index 0000000000..72b9b11da3 --- /dev/null +++ b/files/pl/web/xpath/functions/substring-before/index.html @@ -0,0 +1,39 @@ +--- +title: substring-before +slug: Web/XPath/Functions/substring-before +tags: + - Dokumentacje + - Wszystkie_kategorie + - XSLT + - XSLT:Dokumentacje +translation_of: Web/XPath/Functions/substring-before +original_slug: Web/XPath/Funkcje/substring-before +--- +<p> +{{ XsltRef() }} +</p><p><br> +Funkcja <code>substring-before</code> zwraca łańcuch znaków będący resztą podanego łańcucha znaków przed danym podciągiem. </p> +<h3 id="Sk.C5.82adnia" name="Sk.C5.82adnia"> Składnia </h3> +<pre class="eval">substring-before( <i>stóg siana</i> , <i>igła</i> ) +</pre> +<h3 id="Argumenty" name="Argumenty"> Argumenty </h3> +<dl><dt><i><code>stóg siana</code></i> +</dt><dd>Oceniany łańcuch znaków. Zostanie zwrócona część tego łańcucha. </dd></dl> +<dl><dt><i><code>igła</code></i> +</dt><dd>Szukany podciąg. Zostanie zwrócone wszystko przed pierwszym wystąpieniem <i><code>igła</code></i> w łańcuchu <i><code>stóg siana</code></i>. +</dd></dl> +<h3 id="Zwraca" name="Zwraca"> Zwraca </h3> +<p>Łańcuch znaków. +</p> +<h3 id="Przyk.C5.82ady" name="Przyk.C5.82ady"> Przykłady </h3> +<table class="standard-table"> <tbody><tr> <th>Przykład XPath</th> <th>Wyświetli</th> </tr> <tr> <td><code>substring-before('aa-bb','-')</code></td> <td><code>aa</code></td> </tr> <tr> <td><code>substring-before('aa-bb','a')</code></td> <td><code>(empty string)</code></td> </tr> <tr> <td><code>substring-before('aa-bb','b')</code></td> <td><code>aa-</code></td> </tr> <tr> <td><code>substring-before('aa-bb','q')</code></td> <td>(pusty łańcuch znaków)</td> </tr> +</tbody></table> +<h3 id="Definicja" name="Definicja"> Definicja </h3> +<p><a href="http://www.w3.org/TR/xpath#function-substring-before" class="external">XPath 1.0 4.2</a> +</p> +<h3 id="Gecko" name="Gecko"> Gecko </h3> +<p>Obsługuje. +</p> +<div class="noinclude"> +</div> +{{ languages( { "en": "en/XPath/Functions/substring-before", "fr": "fr/XPath/Fonctions/substring-before", "ja": "ja/XPath/Functions/substring-before" } ) }} |
