C# Class GameMaker.FlowAnalysis.StringExtensions

Show file Open project: WarlockD/GMdsam

Public Methods

Method Description
CharAtOrDefault ( this s, int index ) : char
EscapeString ( this sb, string text, bool withQuotes = true, bool withEndingNewLine = false, string NewLineReplacment = null ) : void
EscapeStringWithEndingNewLine ( this text, string NewLineReplacment = null ) : string
EscapeStringWithOutQuotes ( this text, string NewLineReplacment = null ) : string

Private Methods

Method Description
StringExtensions ( ) : System

Method Details

CharAtOrDefault() public static method

public static CharAtOrDefault ( this s, int index ) : char
s this
index int
return char

EscapeString() public static method

public static EscapeString ( this sb, string text, bool withQuotes = true, bool withEndingNewLine = false, string NewLineReplacment = null ) : void
sb this
text string
withQuotes bool
withEndingNewLine bool
NewLineReplacment string
return void

EscapeStringWithEndingNewLine() public static method

public static EscapeStringWithEndingNewLine ( this text, string NewLineReplacment = null ) : string
text this
NewLineReplacment string
return string

EscapeStringWithOutQuotes() public static method

public static EscapeStringWithOutQuotes ( this text, string NewLineReplacment = null ) : string
text this
NewLineReplacment string
return string