C# Class IronRuby.JsonExt.JsonStringUnescaper

This class has been implemented following the StringDecoder class that can be found in recent versions of Daniel Luz's json-jruby.
ファイルを表示 Open project: nrk/ironruby-json Class Usage Examples

Public Methods

Method Description
JsonStringUnescaper ( char source ) : System
Unescape ( ) : MutableString

Private Methods

Method Description
DetectEndOfQuoteSquence ( int position, MutableStringBuilder output ) : void
Ensure ( int count ) : void
HandleCharacter ( char chr, MutableStringBuilder output ) : void
HandleEscapeSequence ( MutableStringBuilder output ) : void
HandleLowSurrogate ( char highSurrogate, MutableStringBuilder output ) : void
ReadNextUTF8CharacterPart ( ) : int
ReadUTF8Character ( ) : char
ReadUnicodeCodepoint ( ) : char
StartQuoteSequence ( ) : void
ThrowExceptionForIncompleteUTF8 ( ) : void
ThrowExceptionForInvalidUTF8 ( ) : void
WriteUTF8Character ( int chr, MutableStringBuilder output ) : void

Method Details

JsonStringUnescaper() public method

public JsonStringUnescaper ( char source ) : System
source char
return System

Unescape() public method

public Unescape ( ) : MutableString
return MutableString