
- The C Standard Library
- The C Standard Library
- The C++ Standard Library
- 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 - <queue>
- C++ Library - <set>
- C++ Library - <stack>
- C++ Library - <unordered_map>
- C++ Library - <unordered_set>
- C++ Library - <vector>
- C++ Library - <algorithm>
- C++ Library - <iterator>
- C++ Programming Resources
- C++ Programming Tutorial
- C++ Useful Resources
- C++ Discussion
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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. |