MCPcopy Create free account
hub / github.com/boostorg/json / make_key

Method make_key

test/object.cpp:1538–1558  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1536 }
1537
1538 static
1539 string_view
1540 make_key(
1541 std::size_t i,
1542 char* buf)
1543 {
1544 int constexpr base = 62;
1545 char const* const alphabet =
1546 "0123456789"
1547 "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
1548 "abcdefghijklmnopqrstuvwxyz";
1549 char* dest = buf;
1550 do
1551 {
1552 *dest++ = alphabet[i%base];
1553 i /= base;
1554 }
1555 while(i);
1556 return { buf, static_cast<
1557 std::size_t>(dest-buf) };
1558 }
1559
1560 void
1561 testCollisions()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected