C# Class Microsoft.DocAsCode.MarkdownLite.StringBuffer

A type like System.Text.StringBuilder but only do concat.
Datei anzeigen Open project: dotnet/docfx Class Usage Examples

Public Properties

Property Type Description
Empty StringBuffer

Public Methods

Method Description
Append ( string str ) : StringBuffer

Append string to string buffer. (Create new instance if self is Empty, otherwise, modify self).

Clone ( ) : StringBuffer
Concat ( StringBuffer another ) : StringBuffer

Concat another string buffer. (Create new instance if self is Empty, otherwise, modify self).

EndsWith ( char character ) : bool
EndsWith ( string text ) : bool
GetLength ( ) : int
StartsWith ( char character ) : bool
StartsWith ( string text ) : bool
Substring ( int startIndex, int maxCount ) : StringBuffer
ToString ( ) : string
operator ( ) : StringBuffer

Private Methods

Method Description
EnsureCapacity ( int count ) : StringBuffer
StringBuffer ( int length ) : System
StringBuffer ( string value ) : System

Method Details

Append() public method

Append string to string buffer. (Create new instance if self is Empty, otherwise, modify self).
public Append ( string str ) : StringBuffer
str string The string.
return StringBuffer

Clone() public method

public Clone ( ) : StringBuffer
return StringBuffer

Concat() public method

Concat another string buffer. (Create new instance if self is Empty, otherwise, modify self).
public Concat ( StringBuffer another ) : StringBuffer
another StringBuffer The string buffer.
return StringBuffer

EndsWith() public method

public EndsWith ( char character ) : bool
character char
return bool

EndsWith() public method

public EndsWith ( string text ) : bool
text string
return bool

GetLength() public method

public GetLength ( ) : int
return int

StartsWith() public method

public StartsWith ( char character ) : bool
character char
return bool

StartsWith() public method

public StartsWith ( string text ) : bool
text string
return bool

Substring() public method

public Substring ( int startIndex, int maxCount ) : StringBuffer
startIndex int
maxCount int
return StringBuffer

ToString() public method

public ToString ( ) : string
return string

operator() public static method

public static operator ( ) : StringBuffer
return StringBuffer

Property Details

Empty public_oe static_oe property

An empty StringBuffer.
public static StringBuffer,Microsoft.DocAsCode.MarkdownLite Empty
return StringBuffer