示例#1
0
 public JsonReader(Utf8String str)
 {
     _str               = str.Trim();
     _index             = 0;
     _insideObject      = 0;
     _insideArray       = 0;
     TokenType          = 0;
     _jsonStartIsObject = (byte)_str[0] == '{';
 }
示例#2
0
 public JsonReader(Utf8String str)
 {
     _str = str.Trim();
     _index = 0;
     _insideObject = 0;
     _insideArray = 0;
     TokenType = 0;
     _jsonStartIsObject = (byte)_str[0] == '{';
 }
示例#3
0
        public void TrimTest(string s)
        {
            Utf8String u8s = new Utf8String(s);

            string expected = s.Trim();
            Utf8String u8expected = new Utf8String(expected);

            Utf8String u8trimmed = u8s.Trim();
            Assert.Equal(u8expected, u8trimmed);

            string trimmed = u8trimmed.ToString();
            Assert.Equal(expected, trimmed);
        }