Sdílet prostřednictvím


XsltFunctions.SubstringBefore(String, String) Metoda

Definice

Implementuje substring-before funkci XPath podle specifikace W3C.

Toto rozhraní API podporuje produktovou infrastrukturu a není určené k použití přímo z uživatelského kódu.

public:
 static System::String ^ SubstringBefore(System::String ^ s1, System::String ^ s2);
public static string SubstringBefore (string s1, string s2);
static member SubstringBefore : string * string -> string
Public Shared Function SubstringBefore (s1 As String, s2 As String) As String

Parametry

s1
String

Řetězec, ve kterém se má najít S2

s2
String

Řetězec, ve kterém se má hledat s1 .

Návraty

String

Znaky v S1, ke kterým dojde před S2, nebo prázdný řetězec, pokud S1 neobsahuje S2.

Poznámky

Vyhledá v řetězci (S1) podřetězec (S2) a vrátí znaky v S1, ke kterým dojde před S2.

Platí pro