GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
std::localeconv(3) C++ Standard Libary std::localeconv(3)

std::localeconv - std::localeconv


Defined in header <clocale>
std::lconv* localeconv();


The localeconv function obtains a pointer to a static object of type std::lconv,
which represents numeric and monetary formatting rules of the current C locale.


(none)


Pointer to the current std::lconv object.


Modifying the object references through the returned pointer is undefined behavior.


std::localeconv modifies a static object, calling it from different threads without
synchronization is undefined behavior.

// Run this code


#include <clocale>
#include <iostream>


int main()
{
std::setlocale(LC_ALL, "ja_JP.UTF-8");
std::lconv* lc = std::localeconv();
std::cout << "Japanese currency symbol: " << lc->currency_symbol
<< '(' << lc->int_curr_symbol << ")\n";
}


Japanese currency symbol: ¥(JPY )


setlocale gets and sets the current C locale
(function)
lconv formatting details, returned by std::localeconv
(class)

2022.07.31 http://cppreference.com

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.