IN2OSM  1.0.1
TokenHelper< Stack, Ch >

#include <schema.h>

Collaboration diagram for TokenHelper< Stack, Ch >:
Collaboration graph

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 1445 of file schema.h.

Member Function Documentation

◆ AppendIndexToken()

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

Definition at line 1446 of file schema.h.

1446  {
1447  *documentStack.template Push<Ch>() = '/';
1448  char buffer[21];
1449  size_t length = static_cast<size_t>((sizeof(SizeType) == 4 ? u32toa(index, buffer) : u64toa(index, buffer)) - buffer);
1450  for (size_t i = 0; i < length; i++)
1451  *documentStack.template Push<Ch>() = static_cast<Ch>(buffer[i]);
1452  }
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
Here is the call graph for this function:

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