IN2OSM  1.0.1
TokenHelper< Stack, char >

#include <schema.h>

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

Static Public Member Functions

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

Detailed Description

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

Definition at line 1457 of file schema.h.

Member Function Documentation

◆ AppendIndexToken()

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

Definition at line 1458 of file schema.h.

1458  {
1459  if (sizeof(SizeType) == 4) {
1460  char *buffer = documentStack.template Push<char>(1 + 10); // '/' + uint
1461  *buffer++ = '/';
1462  const char* end = internal::u32toa(index, buffer);
1463  documentStack.template Pop<char>(static_cast<size_t>(10 - (end - buffer)));
1464  }
1465  else {
1466  char *buffer = documentStack.template Push<char>(1 + 20); // '/' + uint64
1467  *buffer++ = '/';
1468  const char* end = internal::u64toa(index, buffer);
1469  documentStack.template Pop<char>(static_cast<size_t>(20 - (end - buffer)));
1470  }
1471  }
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: