XsltFunctions.Translate(String, String, String) 方法

定义

按照 W3C 规范实现 translate XPath 函数。Implements translate XPath function according to the W3C specification.

此 API 支持产品基础结构,不能在代码中直接使用。

public:
 static System::String ^ Translate(System::String ^ arg, System::String ^ mapString, System::String ^ transString);
public static string Translate (string arg, string mapString, string transString);
static member Translate : string * string * string -> string
Public Shared Function Translate (arg As String, mapString As String, transString As String) As String

参数

arg
String

原始字符串。The original string.

mapString
String

arg 中应替换为 transString 的子字符串。The substring in arg that should be replaced with transString.

transString
String

替换 mapString 的字符串。The string to replace mapString with.

返回

String

String 形式的已转换的值。The translated value as String.

注解

arg通过将) (子字符串中的字符替换为 mapString 另一个字符串 () 中的字符来转换字符串 () tranStringConverts a string (arg) by replacing the characters in a substring (mapString) with the characters in another string (tranString).

适用于