tmp/tmpocc4rpo2/{from.md → to.md}
RENAMED
|
@@ -57,16 +57,11 @@ string to_string(unsigned long long val);
|
|
| 57 |
string to_string(float val);
|
| 58 |
string to_string(double val);
|
| 59 |
string to_string(long double val);
|
| 60 |
```
|
| 61 |
|
| 62 |
-
*Returns:*
|
| 63 |
-
representation of the value of its argument that would be generated by
|
| 64 |
-
calling `sprintf(buf, fmt, val)` with a format specifier of `"%d"`,
|
| 65 |
-
`"%u"`, `"%ld"`, `"%lu"`, `"%lld"`, `"%llu"`, `"%f"`, `"%f"`, or
|
| 66 |
-
`"%Lf"`, respectively, where `buf` designates an internal character
|
| 67 |
-
buffer of sufficient size.
|
| 68 |
|
| 69 |
``` cpp
|
| 70 |
int stoi(const wstring& str, size_t* idx = nullptr, int base = 10);
|
| 71 |
long stol(const wstring& str, size_t* idx = nullptr, int base = 10);
|
| 72 |
unsigned long stoul(const wstring& str, size_t* idx = nullptr, int base = 10);
|
|
@@ -121,12 +116,7 @@ wstring to_wstring(unsigned long long val);
|
|
| 121 |
wstring to_wstring(float val);
|
| 122 |
wstring to_wstring(double val);
|
| 123 |
wstring to_wstring(long double val);
|
| 124 |
```
|
| 125 |
|
| 126 |
-
*Returns:*
|
| 127 |
-
character representation of the value of its argument that would be
|
| 128 |
-
generated by calling `swprintf(buf, buffsz, fmt, val)` with a format
|
| 129 |
-
specifier of `L"%d"`, `L"%u"`, `L"%ld"`, `L"%lu"`, `L"%lld"`, `L"%llu"`,
|
| 130 |
-
`L"%f"`, `L"%f"`, or `L"%Lf"`, respectively, where `buf` designates an
|
| 131 |
-
internal character buffer of sufficient size `buffsz`.
|
| 132 |
|
|
|
|
| 57 |
string to_string(float val);
|
| 58 |
string to_string(double val);
|
| 59 |
string to_string(long double val);
|
| 60 |
```
|
| 61 |
|
| 62 |
+
*Returns:* `format("{}", val)`.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
|
| 64 |
``` cpp
|
| 65 |
int stoi(const wstring& str, size_t* idx = nullptr, int base = 10);
|
| 66 |
long stol(const wstring& str, size_t* idx = nullptr, int base = 10);
|
| 67 |
unsigned long stoul(const wstring& str, size_t* idx = nullptr, int base = 10);
|
|
|
|
| 116 |
wstring to_wstring(float val);
|
| 117 |
wstring to_wstring(double val);
|
| 118 |
wstring to_wstring(long double val);
|
| 119 |
```
|
| 120 |
|
| 121 |
+
*Returns:* `format(L"{}", val)`.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 122 |
|