ASN1C C# Runtime Library  7.4
Static Public Member Functions | List of all members
StringBufferExt Class Reference

Static Public Member Functions

static StringBuilder Replace (StringBuilder sbuf, int start, int end, String str)
 

Detailed Description

This class provides the additional functionality to StringBuilder class

Member Function Documentation

◆ Replace()

static StringBuilder Replace ( StringBuilder  sbuf,
int  start,
int  end,
String  str 
)
static

Replaces the characters in a substring of given StringBuilder with characters in the specified String. The substring begins at the specified start and extends to the character at index end - 1 or to the end of the StringBuilder if no such character exists. First the characters in the substring are removed and then the specified String is inserted at start. (The specifed StringBuilder will be lengthened to accommodate the specified String if necessary.)

Parameters
sbufStringBuilder that will have contents.
startThe beginning index, inclusive.
endThe ending index, exclusive.
strString that will replace previous contents.
Returns
The replaced string builder.

Referenced by Asn1PerBitFieldPrinter.Print().