Classes | Namespaces | Macros | Typedefs | Enumerations | Functions
reader.h File Reference
#include <limits>
#include "allocators.h"
#include "encodedstream.h"
#include "internal/clzll.h"
#include "internal/meta.h"
#include "internal/stack.h"
#include "internal/strtod.h"
#include "stream.h"
#include "error/error.h"
Include dependency graph for reader.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  BaseReaderHandler< Encoding, Derived >
 Default implementation of Handler. More...
 
struct  GenericReader< SourceEncoding, TargetEncoding, StackAllocator >::ClearStackOnExit
 
class  GenericReader< SourceEncoding, TargetEncoding, StackAllocator >
 
class  GenericReader< SourceEncoding, TargetEncoding, StackAllocator >::NumberStream< InputStream, backup, pushOnTake >
 
class  GenericReader< SourceEncoding, TargetEncoding, StackAllocator >::NumberStream< InputStream, false, false >
 
class  GenericReader< SourceEncoding, TargetEncoding, StackAllocator >::NumberStream< InputStream, true, false >
 
class  GenericReader< SourceEncoding, TargetEncoding, StackAllocator >::NumberStream< InputStream, true, true >
 
class  GenericReader< SourceEncoding, TargetEncoding, StackAllocator >::StackStream< CharType >
 
class  internal::StreamLocalCopy< Stream, int >
 
class  internal::StreamLocalCopy< Stream, 0 >
 Keep reference. More...
 
class  internal::StreamLocalCopy< Stream, 1 >
 Do copy optimization. More...
 

Namespaces

 internal
 

Macros

#define RAPIDJSON_PARSE_DEFAULT_FLAGS   kParseNoFlags
 
#define RAPIDJSON_PARSE_ERROR(parseErrorCode, offset)
 (Internal) macro to indicate and handle a parse error. More...
 
#define RAPIDJSON_PARSE_ERROR_NORETURN(parseErrorCode, offset)
 Macro to indicate a parse error. More...
 

Typedefs

typedef GenericReader< UTF8<>, UTF8<> > Reader
 Reader with UTF8 encoding and default allocator. More...
 

Enumerations

enum  ParseFlag {
  kParseNoFlags = 0, kParseInsituFlag = 1, kParseValidateEncodingFlag = 2, kParseIterativeFlag = 4,
  kParseStopWhenDoneFlag, kParseFullPrecisionFlag, kParseCommentsFlag, kParseNumbersAsStringsFlag,
  kParseTrailingCommasFlag, kParseNanAndInfFlag = 256, kParseDefaultFlags
}
 Combination of parseFlags. More...
 

Functions

template<typename InputStream >
void SkipWhitespace (InputStream &is)
 Skip the JSON white spaces in a stream. More...
 
const char * SkipWhitespace (const char *p, const char *end)
 

Macro Definition Documentation

#define RAPIDJSON_PARSE_DEFAULT_FLAGS   kParseNoFlags

Definition at line 146 of file reader.h.

Typedef Documentation

typedef GenericReader<UTF8<>, UTF8<> > Reader

Reader with UTF8 encoding and default allocator.

Definition at line 2446 of file reader.h.

Enumeration Type Documentation

enum ParseFlag

Combination of parseFlags.

See also
Reader::Parse, Document::Parse, Document::ParseInsitu, Document::ParseStream
Enumerator
kParseNoFlags 

No flags are set.

kParseInsituFlag 

In-situ(destructive) parsing.

kParseValidateEncodingFlag 

Validate encoding of JSON strings.

kParseIterativeFlag 

Iterative(constant complexity in terms of function call stack size) parsing.

kParseStopWhenDoneFlag 

After parsing a complete JSON root from stream, stop further processing the rest of stream. When this flag is used, parser will not generate kParseErrorDocumentRootNotSingular error.

kParseFullPrecisionFlag 

Parse number in full precision (but slower).

kParseCommentsFlag 

Allow one-line (//) and multi-line (/**/) comments.

kParseNumbersAsStringsFlag 

Parse all numbers (ints/doubles) as strings.

kParseTrailingCommasFlag 

Allow trailing commas at the end of objects and arrays.

kParseNanAndInfFlag 

Allow parsing NaN, Inf, Infinity, -Inf and -Infinity as doubles.

kParseDefaultFlags 

Default parse flags. Can be customized by defining RAPIDJSON_PARSE_DEFAULT_FLAGS

Definition at line 153 of file reader.h.

Function Documentation

template<typename InputStream >
void SkipWhitespace ( InputStream &  is)

Skip the JSON white spaces in a stream.

Parameters
isA input stream for skipping white spaces.
Note
This function has SSE2/SSE4.2 specialization.

Definition at line 290 of file reader.h.

const char* SkipWhitespace ( const char *  p,
const char *  end 
)
inline

Definition at line 298 of file reader.h.



livox_ros_driver
Author(s): Livox Dev Team
autogenerated on Mon Mar 15 2021 02:40:46