xieite::num_str_config {}

Defined in header <xieite/ctnr/num_str_config.hpp>

Stores options for stringifying and parsing numbers.


Definition

struct num_str_config {
	std::string_view digit = xieite::ch::alphanum;
	std::string_view minus = "-";
	std::string_view plus = "+";
	std::string_view pt = ".";
	std::string_view e = "Ee";
	std::size_t prec = 50;
};


Example

int main() {
	xieite::dump(xieite::str_num(1024, xieite::num_str_config(")!@#$%^&*(")));
}
Output:
!)@$
[View in Compiler Explorer]