ページの先頭行へ戻る
Symfoware Server V12.7.0 XQueryリファレンス
FUJITSU Software

5.2.2 ends-with

機能

ある文字列(string)が、指定された文字列(substring)で終了しているかどうかを判別し、xs:boolean型の値を返します。

記述形式

構文の構成

参照項番

一般規則

使用例

例1

この式は、文字列“tattoo”の最後が文字列“attoo”で終わっているため、xs:boolean型の値trueを返します。

fn:ends-with( "tattoo" , "attoo" )
例2

この式は、文字列“tattoo”の最後が文字列“to”で終わっていないため、xs:boolean型の値falseを返します。

fn:ends-with( "tattoo" , "to" )
例3

この式は、第2引数のsubstringの値が空シーケンスであるため、xs:boolean型の値trueを返します。

fn:ends-with( "post" , ())