Electroneum
Loading...
Searching...
No Matches
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

◆ AppendIndexToken()

template<typename Stack, typename Ch>
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 * 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:
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/external/rapidjson/include/rapidjson/schema.h