Click or drag to resize

imbStringPathToolsgetPathVersion Method (String, Int32, String, Boolean)

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Returns a version of XPath or any other path format

Namespace:  imbSCI.Core.extensions.text
Assembly:  imbSCI.Core (in imbSCI.Core.dll) Version: 0.3.58.
Syntax
C#
public static string getPathVersion(
	this string xPath,
	int decrease,
	string splitter = "",
	bool trimOutput = false
)
Request Example View Source

Parameters

xPath
Type: SystemString
Putanja koja se obrađuje. Primarno za xPath ali moze i neka druga
decrease
Type: SystemInt32
Ako je >0: Koliko elemenata u putanji da skloni (od kraja), ako je manje od 0 onda koliko krajnjih elemenata da pusti
splitter (Optional)
Type: SystemString
Spliter, ako ostane Empty onda ce koristiti sve splitere -- ali ce biti bug kod sklapanja multi level putanje
trimOutput (Optional)
Type: SystemBoolean
Da li da trimuje pocetak i kraj rezultata -- skida spliter

Return Value

Type: String
Verzija putanje - odnosno dati segment

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also