Class StringBuffer
Namespace:Microsoft.DocAsCode.MarkdownLite
Assembly:Microsoft.DocAsCode.MarkdownLite.dll
Syntax
public sealed class StringBuffer
Fields
Empty
Declaration
public static readonly StringBuffer Empty
Field Value
Methods
Append(String)
Append string to string buffer. (Create new instance if self is Empty, otherwise, modify self).
Declaration
public StringBuffer Append(string str)
Parameters
Type |
Name |
Description |
String |
str |
The string.
|
Returns
Clone()
Declaration
public StringBuffer Clone()
Returns
Concat(StringBuffer)
Concat another string buffer. (Create new instance if self is Empty, otherwise, modify self).
Declaration
public StringBuffer Concat(StringBuffer another)
Parameters
Type |
Name |
Description |
StringBuffer |
another |
The string buffer.
|
Returns
EndsWith(Char)
Declaration
public bool EndsWith(char character)
Parameters
Type |
Name |
Description |
Char |
character |
|
Returns
EndsWith(String)
Declaration
public bool EndsWith(string text)
Parameters
Type |
Name |
Description |
String |
text |
|
Returns
GetLength()
Declaration
Returns
StartsWith(Char)
Declaration
public bool StartsWith(char character)
Parameters
Type |
Name |
Description |
Char |
character |
|
Returns
StartsWith(String)
Declaration
public bool StartsWith(string text)
Parameters
Type |
Name |
Description |
String |
text |
|
Returns
Substring(Int32, Int32)
Declaration
public StringBuffer Substring(int startIndex, int maxCount)
Parameters
Type |
Name |
Description |
Int32 |
startIndex |
|
Int32 |
maxCount |
|
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
Addition(StringBuffer, StringBuffer)
Declaration
public static StringBuffer operator +(StringBuffer buffer, StringBuffer another)
Parameters
Returns
Addition(StringBuffer, String)
Declaration
public static StringBuffer operator +(StringBuffer buffer, string value)
Parameters
Returns
Implicit(StringBuffer to String)
Declaration
public static implicit operator string (StringBuffer buffer)
Parameters
Returns
Implicit(String to StringBuffer)
Declaration
public static implicit operator StringBuffer(string value)
Parameters
Type |
Name |
Description |
String |
value |
|
Returns
Extension Methods