C# Class EncoderCommon, Malevich

Common helper functions.
Exibir arquivo Open project: daptiv/Malevich

Public Methods

Method Description
StringBufferToChunks ( StringBuilder encoded, int maxLineWidth, string s ) : string

Breaks the string up in maxLineWidth-sized segments while accounting for tags and HTML escapes. "
" elements are inserted at the boundary of the substring.

Method Details

StringBufferToChunks() public static method

Breaks the string up in maxLineWidth-sized segments while accounting for tags and HTML escapes. "
" elements are inserted at the boundary of the substring.
public static StringBufferToChunks ( StringBuilder encoded, int maxLineWidth, string s ) : string
encoded StringBuilder The string buffer to process.
maxLineWidth int The maximum length of string before it gets broken up.
s string Original string for error reporting.
return string