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

#include <schema.h>

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

Member Function Documentation

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

Definition at line 1456 of file schema.h.

1456  {
1457  if (sizeof(SizeType) == 4) {
1458  char *buffer = documentStack.template Push<char>(1 + 10); // '/' + uint
1459  *buffer++ = '/';
1460  const char* end = internal::u32toa(index, buffer);
1461  documentStack.template Pop<char>(static_cast<size_t>(10 - (end - buffer)));
1462  }
1463  else {
1464  char *buffer = documentStack.template Push<char>(1 + 20); // '/' + uint64
1465  *buffer++ = '/';
1466  const char* end = internal::u64toa(index, buffer);
1467  documentStack.template Pop<char>(static_cast<size_t>(20 - (end - buffer)));
1468  }
1469  }
end
while True: pbar.update(maxval-len(onlies[E][S])) #print iS, "/", len(onlies[E][S]) found = False for...
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: