Is there a indexOf/lastIndexOf as it is available in java's String class?

Wednesday, 19 October 2011 · 2 messages
EK
Erdal Karaca19 Oct 2011 11:12 #

Could not find that function in basex. Other xquery implementations seem to script this in xquery itself via declare function...

CG
Christian Grün19 Oct 2011 11:16 #
Quoted text · Erdal Karaca · 2 lines
> Could not find that function in basex. Other xquery implementations > seem to script this in xquery itself via declare function...

This might help: http://www.xqueryfunctions.com/xq/functx_index-of-string-last.html

You may include all FunctX functions by installing the repo module:

http://docs.basex.org/wiki/Packaging

Hth, C.


⚡Generated with XQuery