C# Class GitSharp.Core.Util.StringExtension

Show file Open project: stschake/GitSharp

Public Methods

Method Description
Slice ( this longstring, int beginIndex, int endIndex ) : string

Helper function to easily replace all occurences of the incompatible string.Substring method in ported java code

getBytes ( this plainString ) : byte[]
getBytes ( this plainString, string encodingAlias ) : byte[]

Method Details

Slice() public static method

Helper function to easily replace all occurences of the incompatible string.Substring method in ported java code
public static Slice ( this longstring, int beginIndex, int endIndex ) : string
longstring this The string from which a part has to extracted.
beginIndex int The beginning index, inclusive.
endIndex int The ending index, exclusive.
return string

getBytes() public static method

public static getBytes ( this plainString ) : byte[]
plainString this
return byte[]

getBytes() public static method

public static getBytes ( this plainString, string encodingAlias ) : byte[]
plainString this
encodingAlias string
return byte[]