Static Public Member Functions | List of all members
internal::TokenHelper< Stack, Ch > Struct Template Reference

#include <schema.h>

Static Public Member Functions

static RAPIDJSON_FORCEINLINE void AppendIndexToken (Stack &documentStack, SizeType index)
 

Detailed Description

template<typename Stack, typename Ch>
struct internal::TokenHelper< Stack, Ch >

Definition at line 1443 of file schema.h.

Member Function Documentation

template<typename Stack , typename Ch >
static RAPIDJSON_FORCEINLINE void internal::TokenHelper< Stack, Ch >::AppendIndexToken ( Stack documentStack,
SizeType  index 
)
inlinestatic

Definition at line 1444 of file schema.h.

1444  {
1445  *documentStack.template Push<Ch>() = '/';
1446  char buffer[21];
1447  size_t length = static_cast<size_t>((sizeof(SizeType) == 4 ? u32toa(index, buffer) : u64toa(index, buffer)) - buffer);
1448  for (size_t i = 0; i < length; i++)
1449  *documentStack.template Push<Ch>() = static_cast<Ch>(buffer[i]);
1450  }
char * u64toa(uint64_t value, char *buffer)
Definition: itoa.h:126
RAPIDJSON_NAMESPACE_BEGIN typedef unsigned SizeType
Size type (for string lengths, array sizes, etc.)
Definition: rapidjson.h:384
char * u32toa(uint32_t value, char *buffer)
Definition: itoa.h:39

The documentation for this struct was generated from the following file: