#include "reader.h"
#include "internal/meta.h"
#include "internal/strfunc.h"
#include <new>
#include <iterator>
Go to the source code of this file.
|
| class | GenericValue< Encoding, Allocator > |
| | Represents a JSON value. Use Value for UTF8 encoding and default allocator. More...
|
| |
| struct | GenericMember< Encoding, Allocator > |
| | Name-value pair in a JSON object value. More...
|
| |
| class | GenericMemberIterator< Const, Encoding, Allocator > |
| | (Constant) member iterator for a JSON object value More...
|
| |
| struct | GenericStringRef< CharType > |
| | Reference to a constant string (not taking a copy) More...
|
| |
| struct | internal::IsGenericValueImpl< T, Encoding, Allocator > |
| |
| struct | internal::IsGenericValueImpl< T, typename Void< typename T::EncodingType >::Type, typename Void< typename T::AllocatorType >::Type > |
| |
| struct | internal::IsGenericValue< T > |
| |
| class | GenericValue< Encoding, Allocator > |
| | Represents a JSON value. Use Value for UTF8 encoding and default allocator. More...
|
| |
| struct | GenericValue< Encoding, Allocator >::String |
| |
| struct | GenericValue< Encoding, Allocator >::ShortString |
| |
| union | GenericValue< Encoding, Allocator >::Number |
| |
| struct | GenericValue< Encoding, Allocator >::Number::I |
| |
| struct | GenericValue< Encoding, Allocator >::Number::U |
| |
| struct | GenericValue< Encoding, Allocator >::Object |
| |
| struct | GenericValue< Encoding, Allocator >::Array |
| |
| union | GenericValue< Encoding, Allocator >::Data |
| |
| class | GenericDocument< Encoding, Allocator, StackAllocator > |
| | A document for parsing JSON text as DOM. More...
|
| |
| struct | GenericDocument< Encoding, Allocator, StackAllocator >::ClearStackOnExit |
| |
template<typename CharType >
Mark a character pointer as constant string.
Mark a plain character pointer as a "string literal". This function can be used to avoid copying a character string to be referenced as a value in a JSON GenericValue object, if the string's lifetime is known to be valid long enough.
- Template Parameters
-
| CharType | Character type of the string |
- Parameters
-
| str | Constant string, lifetime assumed to be longer than the use of the string in e.g. a GenericValue |
- Returns
- GenericStringRef string reference object
- See also
- GenericValue::GenericValue(StringRefType), GenericValue::operator=(StringRefType), GenericValue::SetString(StringRefType), GenericValue::PushBack(StringRefType, Allocator&), GenericValue::AddMember
SizeType StrLen(const Ch *s)
Custom strlen() which works on different character types.
Definition: strfunc.h:30
Reference to a constant string (not taking a copy)
Definition: document.h:256
template<typename CharType >
Mark a character pointer as constant string.
Mark a plain character pointer as a "string literal". This function can be used to avoid copying a character string to be referenced as a value in a JSON GenericValue object, if the string's lifetime is known to be valid long enough.
This version has better performance with supplied length, and also supports string containing null characters.
- Template Parameters
-
| CharType | character type of the string |
- Parameters
-
| str | Constant string, lifetime assumed to be longer than the use of the string in e.g. a GenericValue |
| length | The length of source string. |
- Returns
- GenericStringRef string reference object
RAPIDJSON_NAMESPACE_BEGIN typedef unsigned SizeType
Size type (for string lengths, array sizes, etc.)
Definition: rapidjson.h:322
float length(float v)
Definition: vectorMath.h:208
Reference to a constant string (not taking a copy)
Definition: document.h:256