|
|
This section describes the locale-specific behavior of the hosted environment. It corresponds to section ``F.4 Locale-Specific Behaviour'' in the ANSI document.
In the default ``C'' locale, the execution character set contains the entire 8-bit character set.
The direction of printing is left to right.
The decimal-point character is ``.''.
The implementation-defined aspects of character testing functions are presented in the following table:
Character testing functions
Function | Character(s) | ASCII value |
---|---|---|
isalnum() | 0 - 9 | 48 through 57 |
A - Z | 65 through 90 | |
a - z | 97 through 122 | |
isalpha() | A - Z | 65 through 90 |
a - z | 97 through 122 | |
iscntrl() | 0 through 31 and 127 | |
isdigit() | 0 - 9 | 48 through 57 |
isgraph() | 0 - 9 | 48 through 57 |
A - Z | 65 through 90 | |
a - z | 97 through 122 | |
!"#$%&'()*+,-./ | 33 through 47 | |
:;<=>?@ | 58 through 64 | |
[\]^_` | 91 through 96 | |
{|}~ | 123 through 126 | |
islower() | a - z | 97 through 122 |
isprint() | 0 - 9 | 48 through 57 |
A - Z | 65 through 90 | |
a - z | 97 through 122 | |
!"#$%&'()*+,-./ | 33 through 47 | |
:;<=>?@ | 58 through 64 | |
[\]^_` | 91 through 96 | |
{|}~ | 123 through 126 | |
ispunct() | !"#$%&'()*+,-./ | 33 through 47 |
:;<=>?@ | 58 through 64 | |
[\]^_` | 91 through 96 | |
{|}~ | 123 through 126 | |
isspace() | " ", \f, \n, \r, \t, \v | 32, 12, 10, 13, 9, 11 |
isupper() | A - Z | 65 through 90 |
isxdigit() | 0 - 9 | 48 through 57 |
A - F | 65 through 70 | |
a - f | 97 through 103 |
Case mapping functions
Function | Input Character(s) | Output Character(s) |
---|---|---|
toupper() | a - z | A - Z |
tolower() | A - Z | a - z |
In the default ``C'' locale, characters are collated as they would be if they were interpreted as numeric values. For normal letters, this corresponds to the normal alphabetic collation sequence.
The formats for time and date are AM and PM for morning and evening 12-hour periods of the day respectively.
The short formats for names of the days of the week are: Sun, Mon, Tue, Wed, Thu, Fri, Sat. The long formats for names of the days of the week are: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday.
The short formats for the names of the months are:
Jan, Feb, Mar, Apr, Jun, Jul, Aug, Sep, Oct, Nov, Dec.
The long formats for the names of the months are:
January, February, March, April, June, July,
August, September, October, November, December.