C# Class FlatRedBall.Utilities.StringBuilderExtensions

显示文件 Open project: vchelaru/FlatRedBall

Public Methods

Method Description
Contains ( this sb, string whatToSearchFor ) : bool
IndexOf ( this sb, char value ) : int

Get index of a char

IndexOf ( this sb, char value, int startIndex ) : int

Get index of a char starting from a given index

IndexOf ( this sb, string value ) : int

Get index of a string

IndexOf ( this sb, string value, bool ignoreCase ) : int

Get index of a string with case option

IndexOf ( this sb, string value, int startIndex ) : int

Get index of a string from a given index

IndexOf ( this sb, string value, int startIndex, bool ignoreCase ) : int

Get index of a string from a given index with case option

IndexOfAny ( this sb, char values, int startIndex ) : int
InsertLine ( this sb, int &index, string value ) : void
LastIndexOf ( this sb, string value ) : int
Substring ( this sb, int startIndex, int length ) : string

Method Details

Contains() public static method

public static Contains ( this sb, string whatToSearchFor ) : bool
sb this
whatToSearchFor string
return bool

IndexOf() public static method

Get index of a char
public static IndexOf ( this sb, char value ) : int
sb this
value char
return int

IndexOf() public static method

Get index of a char starting from a given index
public static IndexOf ( this sb, char value, int startIndex ) : int
sb this
value char
startIndex int
return int

IndexOf() public static method

Get index of a string
public static IndexOf ( this sb, string value ) : int
sb this
value string
return int

IndexOf() public static method

Get index of a string with case option
public static IndexOf ( this sb, string value, bool ignoreCase ) : int
sb this
value string
ignoreCase bool
return int

IndexOf() public static method

Get index of a string from a given index
public static IndexOf ( this sb, string value, int startIndex ) : int
sb this
value string
startIndex int
return int

IndexOf() public static method

Get index of a string from a given index with case option
public static IndexOf ( this sb, string value, int startIndex, bool ignoreCase ) : int
sb this
value string
startIndex int
ignoreCase bool
return int

IndexOfAny() public static method

public static IndexOfAny ( this sb, char values, int startIndex ) : int
sb this
values char
startIndex int
return int

InsertLine() public static method

public static InsertLine ( this sb, int &index, string value ) : void
sb this
index int
value string
return void

LastIndexOf() public static method

public static LastIndexOf ( this sb, string value ) : int
sb this
value string
return int

Substring() public static method

public static Substring ( this sb, int startIndex, int length ) : string
sb this
startIndex int
length int
return string