Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 697 Bytes

File metadata and controls

36 lines (22 loc) · 697 Bytes
title slug
contains
Web/XPath/Functions/contains

{{XsltSidebar}}{{ XsltRef() }}

contains 関数は、第 1 引数の文字列に第 2 引数の文字列が含まれているかどうかを判定し、論理値 true または false を返します。

構文

contains(haystack ,needle )

引数

  • haystack
    • : 検索される文字列
  • needle
    • : haystack の部分文字列かどうかを検索する文字列

返値

haystackneedle が含まれていれば true。 そうでなければ false

定義

XPath 1.0 4.2

Gecko でのサポート

サポート済み。