Lines Matching defs:text
58 /// Creates a tokenizer that reads from the given text reader.
108 /// <exception cref="InvalidJsonException">The input text does not comply with RFC 7159</exception>
137 /// <exception cref="InvalidJsonException">The input text does not comply with RFC 7159</exception>
330 char c = reader.ReadOrFail("Unexpected end of text while reading string");
348 // or both not escaped. It would be a very odd text stream that contained a "lone" high surrogate
364 char c = reader.ReadOrFail("Unexpected end of text while reading character escape sequence");
398 char c = reader.ReadOrFail("Unexpected end of text while reading Unicode escape sequence");
422 /// Consumes a text-only literal, throwing an exception if the read text doesn't match it.
425 private void ConsumeLiteral(string text)
427 for (int i = 1; i < text.Length; i++)
432 throw reader.CreateException("Unexpected end of text while reading literal token " + text);
434 if (next.Value != text[i])
436 throw reader.CreateException("Unexpected character while reading literal token " + text);
454 // null is returned for "end of text".
614 /// where ^ represents the current position within the text stream. The examples all use string values,
701 /// Wrapper around a text reader allowing small amounts of buffering and location handling.