C# Class QUT.GPGen.StringUtilities

Datei anzeigen Open project: spark-shading-language/spark

Public Methods

Method Description
MakeComment ( int indent, string text ) : string

Modifies a string so that if it contains multiple lines every line after the first is prepended by "//" followed by "indent" spaces.

MaxWidth ( string text ) : int

Returns the character width of a (possibly multiline) string.

Method Details

MakeComment() public static method

Modifies a string so that if it contains multiple lines every line after the first is prepended by "//" followed by "indent" spaces.
public static MakeComment ( int indent, string text ) : string
indent int The line indent
text string The input string
return string

MaxWidth() public static method

Returns the character width of a (possibly multiline) string.
public static MaxWidth ( string text ) : int
text string The text to measure
return int