MarkLogic 10 Product Documentation
fn:translatefn:translate(
$src as xs:string?,
$mapString as xs:string?,
$transString as xs:string?
) as xs:string?
Summary
Returns a string where every character in $src that occurs in some
position in the $mapString is translated into the $transString character
in the corresponding location of the $mapString character.
Parameters |
src |
The string to translate characters.
|
mapString |
The string representing characters to be translated.
|
transString |
The string representing the characters to which the
$mapString characters are translated.
|
Example
fn:translate("abcd", "abcd", "wxyz")
=> wxyz
Copyright © 2024 MarkLogic Corporation. MARKLOGIC is a
registered trademark of MarkLogic Corporation.