
- C++ Library - Home
- C++ Library - <fstream>
- C++ Library - <iomanip>
- C++ Library - <ios>
- C++ Library - <iosfwd>
- C++ Library - <iostream>
- C++ Library - <istream>
- C++ Library - <ostream>
- C++ Library - <sstream>
- C++ Library - <streambuf>
- C++ Library - <atomic>
- C++ Library - <complex>
- C++ Library - <exception>
- C++ Library - <functional>
- C++ Library - <limits>
- C++ Library - <locale>
- C++ Library - <memory>
- C++ Library - <new>
- C++ Library - <numeric>
- C++ Library - <regex>
- C++ Library - <stdexcept>
- C++ Library - <string>
- C++ Library - <thread>
- C++ Library - <tuple>
- C++ Library - <typeinfo>
- C++ Library - <utility>
- C++ Library - <valarray>
- The C++ STL Library
- C++ Library - <array>
- C++ Library - <bitset>
- C++ Library - <deque>
- C++ Library - <forward_list>
- C++ Library - <list>
- C++ Library - <map>
- C++ Library - <multimap>
- C++ Library - <queue>
- C++ Library - <priority_queue>
- C++ Library - <set>
- C++ Library - <stack>
- C++ Library - <unordered_map>
- C++ Library - <unordered_set>
- C++ Library - <vector>
- C++ Library - <algorithm>
- C++ Library - <iterator>
- The C++ Advanced Library
- C++ Library - <any>
- C++ Library - <barrier>
- C++ Library - <bit>
- C++ Library - <chrono>
- C++ Library - <cinttypes>
- C++ Library - <clocale>
- C++ Library - <condition_variable>
- C++ Library - <coroutine>
- C++ Library - <cstdlib>
- C++ Library - <cstring>
- C++ Library - <cuchar>
- C++ Library - <charconv>
- C++ Library - <cfenv>
- C++ Library - <cmath>
- C++ Library - <ccomplex>
- C++ Library - <expected>
- C++ Library - <format>
- C++ Library - <future>
- C++ Library - <flat_set>
- C++ Library - <flat_map>
- C++ Library - <filesystem>
- C++ Library - <generator>
- C++ Library - <initializer_list>
- C++ Library - <latch>
- C++ Library - <memory_resource>
- C++ Library - <mutex>
- C++ Library - <mdspan>
- C++ Library - <optional>
- C++ Library - <print>
- C++ Library - <ratio>
- C++ Library - <scoped_allocator>
- C++ Library - <semaphore>
- C++ Library - <source_location>
- C++ Library - <span>
- C++ Library - <spanstream>
- C++ Library - <stacktrace>
- C++ Library - <stop_token>
- C++ Library - <syncstream>
- C++ Library - <system_error>
- C++ Library - <string_view>
- C++ Library - <stdatomic>
- C++ Library - <variant>
- C++ STL Library Cheat Sheet
- C++ STL - Cheat Sheet
- C++ Programming Resources
- C++ Programming Tutorial
- C++ Useful Resources
- C++ Discussion
C++ Library - <locale>
Introduction
It is a localization library and a set of features that are culture-specific, which can be used by programs to be more portable internationally.
Declaration
Following is the declaration for std::locale.
class locale;
C++11
class locale;
Functions
Sr.No. | Function & description |
---|---|
1 |
use_facet
It is used to access facet of locale. |
2 |
has_facet
It is used to check if locale has facet. |
Convenience interfaces
Sr.No. | Interface & description |
---|---|
1 |
isspace
It checks if character is a white-space. |
2 |
isprint
It checks if character is printable. |
3 |
iscntrl
It checks if character is a control character. |
4 |
isupper
It checks if character is uppercase letter. |
5 |
islower
It checks if character is lowercase letter. |
6 |
isalpha
It checks if character is alphabetic. |
7 |
isdigit
It checks if character is decimal digit. |
8 |
ispunct
It checks if character is a punctuation character. |
9 |
isxdigit
It checks if character is hexadecimal digit. |
10 |
isalnum
It checks if character is alphanumeric. |
11 |
isgraph
It checks if character has graphical representation. |
12 |
isblank
It checks if character is blank. |
Standard facets
Sr.No. | Standard facet & description |
---|---|
1 |
ctype
It is a character type facet. |
2 |
ctype_byname
It is a character type facet. |
3 |
codecvt
It is used to convert codeset facet. |
4 |
codecvt_byname
It is used to convert codeset facet. |
5 |
num_get
It is a facet to parse numeric values. |
6 |
num_put
It is a facet to format numeric values. |
7 |
numpunct
It is a numeric punctuation facet. |
8 |
numpunct_byname
It is a numeric punctuation facet. |
9 |
collate
It is a facet to compare and hash strings. |
10 |
collate_byname
It is a facet to compare and hash strings. |
11 |
time_get
It is a facet to parse dates and times. |
12 |
time_get_byname
It is a facet to parse dates and times. |
13 |
time_put
It is a facet to format dates and times. |
14 |
time_put_byname
It is a facet to format dates and times. |
15 |
money_get
It is a facet to parse monetary expressions. |
16 |
money_put
It is a facet to format monetary expressions. |
17 |
moneypunct
It is a monetary punctuation facet. |
18 |
moneypunct_byname
It is a monetary punctuation facet. |
19 |
messages
It is a facet to access message catalogs. |
20 |
messages_byname
It is a facet to access message catalogs. |
Class
Sr.No. | Class & description |
---|---|
1 |
locale
It is a locale class. |