📜  C++库-

📅  最后修改于: 2020-12-15 04:25:08             🧑  作者: Mango


介绍

它是一个本地化库和一组特定于文化的功能,可以供程序使用,以使其更具国际可移植性。

宣言

以下是std :: locale的声明。

class locale;

C++ 11

class locale;

功能

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.

便捷界面

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.

标准面

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.

Sr.No. Class & description
1 locale

It is a locale class.