mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-17 09:08:08 +08:00
doc: add int_fmt.uppercase to doc
This commit is contained in:
@@ -60,10 +60,11 @@ Specifies the radix of an `integer`.
|
|||||||
```cpp
|
```cpp
|
||||||
struct integer_format_info
|
struct integer_format_info
|
||||||
{
|
{
|
||||||
integer_format fmt = integer_format::dec;
|
integer_format fmt = integer_format::dec;
|
||||||
std::size_t width = 0; // minimal width (may exceed)
|
bool uppercase = true; // use uppercase letters
|
||||||
std::size_t spacer = 0; // position of `_` (if 0, no spacer)
|
std::size_t width = 0; // minimal width (may exceed)
|
||||||
std::string suffix = ""; // _suffix (library extension)
|
std::size_t spacer = 0; // position of `_` (if 0, no spacer)
|
||||||
|
std::string suffix = ""; // _suffix (library extension)
|
||||||
};
|
};
|
||||||
|
|
||||||
bool operator==(const integer_format_info&, const integer_format_info&) noexcept;
|
bool operator==(const integer_format_info&, const integer_format_info&) noexcept;
|
||||||
@@ -76,6 +77,10 @@ bool operator!=(const integer_format_info&, const integer_format_info&) noexcept
|
|||||||
|
|
||||||
Specifies the radix.
|
Specifies the radix.
|
||||||
|
|
||||||
|
### `bool uppercase`
|
||||||
|
|
||||||
|
Uses uppercase letters when formatted as a hexadecimal integer.
|
||||||
|
|
||||||
### `std::size_t width`
|
### `std::size_t width`
|
||||||
|
|
||||||
Specifies the minimum width. The formatted value may exceed this width.
|
Specifies the minimum width. The formatted value may exceed this width.
|
||||||
|
@@ -60,10 +60,11 @@ std::string to_string(const integer_format);
|
|||||||
```cpp
|
```cpp
|
||||||
struct integer_format_info
|
struct integer_format_info
|
||||||
{
|
{
|
||||||
integer_format fmt = integer_format::dec;
|
integer_format fmt = integer_format::dec;
|
||||||
std::size_t width = 0; // minimal width (may exceed)
|
bool uppercase = true; // use uppercase letters
|
||||||
std::size_t spacer = 0; // position of `_` (if 0, no spacer)
|
std::size_t width = 0; // minimal width (may exceed)
|
||||||
std::string suffix = ""; // _suffix (library extension)
|
std::size_t spacer = 0; // position of `_` (if 0, no spacer)
|
||||||
|
std::string suffix = ""; // _suffix (library extension)
|
||||||
};
|
};
|
||||||
|
|
||||||
bool operator==(const integer_format_info&, const integer_format_info&) noexcept;
|
bool operator==(const integer_format_info&, const integer_format_info&) noexcept;
|
||||||
@@ -76,6 +77,10 @@ bool operator!=(const integer_format_info&, const integer_format_info&) noexcept
|
|||||||
|
|
||||||
基数を指定します。
|
基数を指定します。
|
||||||
|
|
||||||
|
### `bool uppercase`
|
||||||
|
|
||||||
|
16進数表記で大文字を使用します。
|
||||||
|
|
||||||
### `std::size_t width`
|
### `std::size_t width`
|
||||||
|
|
||||||
最小の幅を指定します。値によってはこの幅を超えることがあります。
|
最小の幅を指定します。値によってはこの幅を超えることがあります。
|
||||||
|
Reference in New Issue
Block a user