C# Class DynamicJson.Utilities

Afficher le fichier Open project: pieterbreed/Dynamic-Json-for-.NET

Méthodes publiques

Méthode Description
GetStringValueFromToken ( string tokenValue ) : string
JsonUnescape ( this str ) : string
PerformOneEscapeStep ( string from, string to, IEnumerable inputs ) : IEnumerable

this ugly method performs one escape sequence step. if it is called with (@"\t", "\t", ["aaa\\tbbb\\tccc", "\\tddd"]) it will return [ "aaa", "\t", "bbb", "\t", "ccc", "\t", "ddd" ]

Method Details

GetStringValueFromToken() public static méthode

public static GetStringValueFromToken ( string tokenValue ) : string
tokenValue string
Résultat string

JsonUnescape() public static méthode

public static JsonUnescape ( this str ) : string
str this
Résultat string

PerformOneEscapeStep() public static méthode

this ugly method performs one escape sequence step. if it is called with (@"\t", "\t", ["aaa\\tbbb\\tccc", "\\tddd"]) it will return [ "aaa", "\t", "bbb", "\t", "ccc", "\t", "ddd" ]
public static PerformOneEscapeStep ( string from, string to, IEnumerable inputs ) : IEnumerable
from string the sequence that must be replaced
to string what it must be replaced with
inputs IEnumerable an enumerable of strings that must all have the escape performed on them
Résultat IEnumerable