C# 클래스 QUT.Gplex.Parser.StringUtilities

파일 보기 프로젝트 열기: spark-shading-language/spark 1 사용 예제들

공개 메소드들

메소드 설명
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 source ) : int

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

메소드 상세

MakeComment() 공개 정적인 메소드

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
리턴 string

MaxWidth() 공개 정적인 메소드

Returns the character width of a (possibly multiline) string.
public static MaxWidth ( string source ) : int
source string
리턴 int