C# Class Newtonsoft.Json.Utilities.JavaScriptUtils

Afficher le fichier Open project: JamesNK/Newtonsoft.Json Class Usage Examples

Méthodes publiques

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 bufferPool, char &writeBuffer ) : void

Private Methods

Méthode Description
JavaScriptUtils ( ) : System

Method Details

GetCharEscapeFlags() public static méthode

public static GetCharEscapeFlags ( StringEscapeHandling stringEscapeHandling, char quoteChar ) : bool[]
stringEscapeHandling StringEscapeHandling
quoteChar char
Résultat bool[]

ShouldEscapeJavaScriptString() public static méthode

public static ShouldEscapeJavaScriptString ( string s, bool charEscapeFlags ) : bool
s string
charEscapeFlags bool
Résultat bool

ToEscapedJavaScriptString() public static méthode

public static ToEscapedJavaScriptString ( string value, char delimiter, bool appendDelimiters, StringEscapeHandling stringEscapeHandling ) : string
value string
delimiter char
appendDelimiters bool
stringEscapeHandling StringEscapeHandling
Résultat string

WriteEscapedJavaScriptString() public static méthode

public static WriteEscapedJavaScriptString ( TextWriter writer, string s, char delimiter, bool appendDelimiters, bool charEscapeFlags, StringEscapeHandling stringEscapeHandling, IArrayPool bufferPool, char &writeBuffer ) : void
writer TextWriter
s string
delimiter char
appendDelimiters bool
charEscapeFlags bool
stringEscapeHandling StringEscapeHandling
bufferPool IArrayPool
writeBuffer char
Résultat void