Class JavaScriptUtils
Inheritance
System.Object
JavaScriptUtils
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Bayat.Json.Runtime.dll
Syntax
public static class JavaScriptUtils
Fields
|
Improve this Doc
View Source
DoubleQuoteCharEscapeFlags
Declaration
public static readonly bool[] DoubleQuoteCharEscapeFlags
Field Value
Type |
Description |
System.Boolean[] |
|
|
Improve this Doc
View Source
HtmlCharEscapeFlags
Declaration
public static readonly bool[] HtmlCharEscapeFlags
Field Value
Type |
Description |
System.Boolean[] |
|
|
Improve this Doc
View Source
SingleQuoteCharEscapeFlags
Declaration
public static readonly bool[] SingleQuoteCharEscapeFlags
Field Value
Type |
Description |
System.Boolean[] |
|
Methods
|
Improve this Doc
View Source
GetCharEscapeFlags(StringEscapeHandling, Char)
Declaration
public static bool[] GetCharEscapeFlags(StringEscapeHandling stringEscapeHandling, char quoteChar)
Parameters
Returns
Type |
Description |
System.Boolean[] |
|
|
Improve this Doc
View Source
ShouldEscapeJavaScriptString(String, Boolean[])
Declaration
public static bool ShouldEscapeJavaScriptString(string s, bool[] charEscapeFlags)
Parameters
Type |
Name |
Description |
System.String |
s |
|
System.Boolean[] |
charEscapeFlags |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ToEscapedJavaScriptString(String, Char, Boolean, StringEscapeHandling)
Declaration
public static string ToEscapedJavaScriptString(string value, char delimiter, bool appendDelimiters, StringEscapeHandling stringEscapeHandling)
Parameters
Type |
Name |
Description |
System.String |
value |
|
System.Char |
delimiter |
|
System.Boolean |
appendDelimiters |
|
StringEscapeHandling |
stringEscapeHandling |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
WriteEscapedJavaScriptString(TextWriter, String, Char, Boolean, Boolean[], StringEscapeHandling, IArrayPool<Char>, ref Char[])
Declaration
public static void WriteEscapedJavaScriptString(TextWriter writer, string s, char delimiter, bool appendDelimiters, bool[] charEscapeFlags, StringEscapeHandling stringEscapeHandling, IArrayPool<char> bufferPool, ref char[] writeBuffer)
Parameters
Type |
Name |
Description |
System.IO.TextWriter |
writer |
|
System.String |
s |
|
System.Char |
delimiter |
|
System.Boolean |
appendDelimiters |
|
System.Boolean[] |
charEscapeFlags |
|
StringEscapeHandling |
stringEscapeHandling |
|
IArrayPool<System.Char> |
bufferPool |
|
System.Char[] |
writeBuffer |
|