|
xtd
0.2.0
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
5#if !defined(__XTD_CORE_INTERNAL__)
6#error "Do not include this file: Internal use only"
11#include "../helpers/throw_helper.hpp"
16inline std::basic_string<char_t> __boolean_formatter(
const std::basic_string<char_t>& fmt,
bool value,
const std::locale& loc) {
17 if (fmt.empty())
return value ? std::basic_string<char_t> {
't',
'r',
'u',
'e'} : std::basic_string<char_t> {
'f',
'a',
'l',
's',
'e'};
27 case 'X':
return __numeric_formatter(fmt, value ? 1 : 0, loc);
29 case 'G':
return value ? std::basic_string<char_t> {
't',
'r',
'u',
'e'} : std::basic_string<char_t> {
'f',
'a',
'l',
's',
'e'};
static void throws(xtd::helpers::exception_case exception_case, const source_location &location=source_location::current())
Throws an exption with specified exception case.
@ format
The format is not valid.