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 chcete najít s2.

s2
String

Řetězec, ve s1který chcete najít .

Návraty

Znaky v s1, ke kterým dochází před s2, nebo prázdný řetězec, pokud s1 neobsahuje s2.

Poznámky

Vyhledá podřetězce (s2) v řetězci (s1) a vrátí znaky v s1, ke kterým dochází před s2.

Platí pro