C# Class Microsoft.DocAsCode.MarkdownLite.StringBuffer

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

Méthodes publiques

Свойство Type Description
Empty StringBuffer

Méthodes publiques

Méthode 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

Méthode Description
EnsureCapacity ( int count ) : StringBuffer
StringBuffer ( int length ) : System
StringBuffer ( string value ) : System

Method Details

Append() public méthode

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

Clone() public méthode

public Clone ( ) : StringBuffer
Résultat StringBuffer

Concat() public méthode

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

EndsWith() public méthode

public EndsWith ( char character ) : bool
character char
Résultat bool

EndsWith() public méthode

public EndsWith ( string text ) : bool
text string
Résultat bool

GetLength() public méthode

public GetLength ( ) : int
Résultat int

StartsWith() public méthode

public StartsWith ( char character ) : bool
character char
Résultat bool

StartsWith() public méthode

public StartsWith ( string text ) : bool
text string
Résultat bool

Substring() public méthode

public Substring ( int startIndex, int maxCount ) : StringBuffer
startIndex int
maxCount int
Résultat StringBuffer

ToString() public méthode

public ToString ( ) : string
Résultat string

operator() public static méthode

public static operator ( ) : StringBuffer
Résultat StringBuffer

Property Details

Empty public_oe static_oe property

An empty StringBuffer.
public static StringBuffer,Microsoft.DocAsCode.MarkdownLite Empty
Résultat StringBuffer