v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::base::impl::FormattedStringPart< I > Struct Template Reference

#include <string-format.h>

Collaboration diagram for v8::base::impl::FormattedStringPart< I >:

Public Types

using StorageType
 

Public Attributes

StorageType value
 

Static Public Attributes

static constexpr bool kIs64Bit = sizeof(I) == 8
 
static constexpr bool kIsSigned = std::is_signed_v<I>
 
static constexpr int kMaxLen = (kIs64Bit ? 20 : 10) + (kIsSigned ? 1 : 0)
 
static constexpr std::string_view kFormats [2][2]
 
static constexpr std::string_view kFormatPart = kFormats[kIs64Bit][kIsSigned]
 

Detailed Description

template<typename I>
requires std::is_integral_v<I>
struct v8::base::impl::FormattedStringPart< I >

Definition at line 61 of file string-format.h.

Member Typedef Documentation

◆ StorageType

template<typename I >
using v8::base::impl::FormattedStringPart< I >::StorageType
Initial value:
std::conditional_t<kIs64Bit,
std::conditional_t<kIsSigned, int64_t, uint64_t>,
std::conditional_t<kIsSigned, int32_t, uint32_t>>

Definition at line 70 of file string-format.h.

Member Data Documentation

◆ kFormatPart

template<typename I >
std::string_view v8::base::impl::FormattedStringPart< I >::kFormatPart = kFormats[kIs64Bit][kIsSigned]
staticconstexpr

Definition at line 68 of file string-format.h.

◆ kFormats

template<typename I >
std::string_view v8::base::impl::FormattedStringPart< I >::kFormats[2][2]
staticconstexpr
Initial value:
{{"%" PRIu32, "%" PRId32},
{"%" PRIu64, "%" PRId64}}

Definition at line 66 of file string-format.h.

◆ kIs64Bit

template<typename I >
bool v8::base::impl::FormattedStringPart< I >::kIs64Bit = sizeof(I) == 8
staticconstexpr

Definition at line 63 of file string-format.h.

◆ kIsSigned

template<typename I >
bool v8::base::impl::FormattedStringPart< I >::kIsSigned = std::is_signed_v<I>
staticconstexpr

Definition at line 64 of file string-format.h.

◆ kMaxLen

template<typename I >
int v8::base::impl::FormattedStringPart< I >::kMaxLen = (kIs64Bit ? 20 : 10) + (kIsSigned ? 1 : 0)
staticconstexpr

Definition at line 65 of file string-format.h.

◆ value

template<typename I >
StorageType v8::base::impl::FormattedStringPart< I >::value

Definition at line 74 of file string-format.h.


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