NetBeansв„ў IDE Field Guide: Developing Desktop, Web, Enterprise, and Mobile Applications (2nd Edition)

The index-of() function returns a sequence of integers indicating the positions within a particular sequence where items equal to a specified value occur.

For example, «index-of(("a", "b", "c"), "b") » returns 2 .

Argument

Data Type

Meaning

sequence

xdt:anyAtomicType*

The sequence to be searched

value

xdt:anyAtomicType

The value to be found

collation (optional)

xs:string

The collation to be used when comparing strings

Result

xs:integer*

A list containing the positions within the supplied sequence where items that are equal to the specified value have been found

Категории