Méthode | Description | |
---|---|---|
GetCharEscapeFlags ( StringEscapeHandling stringEscapeHandling, char quoteChar ) : bool[] | ||
ShouldEscapeJavaScriptString ( string s, bool charEscapeFlags ) : bool | ||
ToEscapedJavaScriptString ( string value, char delimiter, bool appendDelimiters, StringEscapeHandling stringEscapeHandling ) : string | ||
WriteEscapedJavaScriptString ( TextWriter writer, string s, char delimiter, bool appendDelimiters, bool charEscapeFlags, StringEscapeHandling stringEscapeHandling, IArrayPool |
Méthode | Description | |
---|---|---|
JavaScriptUtils ( ) : System |
public static GetCharEscapeFlags ( StringEscapeHandling stringEscapeHandling, char quoteChar ) : bool[] | ||
stringEscapeHandling | StringEscapeHandling | |
quoteChar | char | |
Résultat | bool[] |
public static ShouldEscapeJavaScriptString ( string s, bool charEscapeFlags ) : bool | ||
s | string | |
charEscapeFlags | bool | |
Résultat | bool |
public static ToEscapedJavaScriptString ( string value, char delimiter, bool appendDelimiters, StringEscapeHandling stringEscapeHandling ) : string | ||
value | string | |
delimiter | char | |
appendDelimiters | bool | |
stringEscapeHandling | StringEscapeHandling | |
Résultat | string |
public static WriteEscapedJavaScriptString ( TextWriter writer, string s, char delimiter, bool appendDelimiters, bool charEscapeFlags, StringEscapeHandling stringEscapeHandling, IArrayPool |
||
writer | TextWriter | |
s | string | |
delimiter | char | |
appendDelimiters | bool | |
charEscapeFlags | bool | |
stringEscapeHandling | StringEscapeHandling | |
bufferPool | IArrayPool |
|
writeBuffer | char | |
Résultat | void |