From Jason Turner

[c.locales]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpjov3f7ec/{from.md → to.md} +3 -205
tmp/tmpjov3f7ec/{from.md → to.md} RENAMED
@@ -1,8 +1,8 @@
1
- ## C library locales <a id="c.locales">[[c.locales]]</a>
2
 
3
- ### Header `<clocale>` synopsis <a id="clocale.syn">[[clocale.syn]]</a>
4
 
5
  ``` cpp
6
  namespace std {
7
  struct lconv;
8
 
@@ -20,11 +20,11 @@ namespace std {
20
  ```
21
 
22
  The contents and meaning of the header `<clocale>` are the same as the C
23
  standard library header `<locale.h>`.
24
 
25
- ### Data races <a id="clocale.data.races">[[clocale.data.races]]</a>
26
 
27
  Calls to the function `setlocale` may introduce a data race
28
  [[res.on.data.races]] with other calls to `setlocale` or with calls to
29
  the functions listed in [[setlocale.data.races]].
30
 
@@ -43,207 +43,5 @@ See also: ISO C 7.11
43
  | `isdigit` | `iswblank` | `iswupper` | `strerror` | `wcstombs` |
44
  | `isgraph` | `iswcntrl` | `iswxdigit` | `strtod` | `wcsxfrm` |
45
  | `islower` | `iswctype` | `isxdigit` | `strxfrm` | `wctomb` |
46
 
47
 
48
-
49
- <!-- Link reference definitions -->
50
- [alg.lex.comparison]: algorithms.md#alg.lex.comparison
51
- [alg.sort]: algorithms.md#alg.sort
52
- [algorithms]: algorithms.md#algorithms
53
- [basic.start.static]: basic.md#basic.start.static
54
- [bitmask.types]: library.md#bitmask.types
55
- [c.files]: input.md#c.files
56
- [c.locales]: #c.locales
57
- [category.collate]: #category.collate
58
- [category.ctype]: #category.ctype
59
- [category.ctype.general]: #category.ctype.general
60
- [category.messages]: #category.messages
61
- [category.messages.general]: #category.messages.general
62
- [category.monetary]: #category.monetary
63
- [category.monetary.general]: #category.monetary.general
64
- [category.numeric]: #category.numeric
65
- [category.numeric.general]: #category.numeric.general
66
- [category.time]: #category.time
67
- [category.time.general]: #category.time.general
68
- [classification]: #classification
69
- [clocale.data.races]: #clocale.data.races
70
- [clocale.syn]: #clocale.syn
71
- [conversions.character]: #conversions.character
72
- [facet.ctype.char.dtor]: #facet.ctype.char.dtor
73
- [facet.ctype.char.members]: #facet.ctype.char.members
74
- [facet.ctype.char.statics]: #facet.ctype.char.statics
75
- [facet.ctype.char.virtuals]: #facet.ctype.char.virtuals
76
- [facet.ctype.special]: #facet.ctype.special
77
- [facet.ctype.special.general]: #facet.ctype.special.general
78
- [facet.num.get.members]: #facet.num.get.members
79
- [facet.num.get.virtuals]: #facet.num.get.virtuals
80
- [facet.num.put.members]: #facet.num.put.members
81
- [facet.num.put.virtuals]: #facet.num.put.virtuals
82
- [facet.numpunct]: #facet.numpunct
83
- [facet.numpunct.members]: #facet.numpunct.members
84
- [facet.numpunct.virtuals]: #facet.numpunct.virtuals
85
- [file.streams]: input.md#file.streams
86
- [ios.base]: input.md#ios.base
87
- [istream.formatted]: input.md#istream.formatted
88
- [istream.formatted.reqmts]: input.md#istream.formatted.reqmts
89
- [iterator.requirements]: iterators.md#iterator.requirements
90
- [lex.charset]: lex.md#lex.charset
91
- [locale]: #locale
92
- [locale.categories]: #locale.categories
93
- [locale.categories.general]: #locale.categories.general
94
- [locale.category]: #locale.category
95
- [locale.category.facets]: #locale.category.facets
96
- [locale.codecvt]: #locale.codecvt
97
- [locale.codecvt.byname]: #locale.codecvt.byname
98
- [locale.codecvt.general]: #locale.codecvt.general
99
- [locale.codecvt.inout]: #locale.codecvt.inout
100
- [locale.codecvt.members]: #locale.codecvt.members
101
- [locale.codecvt.unshift]: #locale.codecvt.unshift
102
- [locale.codecvt.virtuals]: #locale.codecvt.virtuals
103
- [locale.collate]: #locale.collate
104
- [locale.collate.byname]: #locale.collate.byname
105
- [locale.collate.general]: #locale.collate.general
106
- [locale.collate.members]: #locale.collate.members
107
- [locale.collate.virtuals]: #locale.collate.virtuals
108
- [locale.cons]: #locale.cons
109
- [locale.convenience]: #locale.convenience
110
- [locale.ctype]: #locale.ctype
111
- [locale.ctype.byname]: #locale.ctype.byname
112
- [locale.ctype.general]: #locale.ctype.general
113
- [locale.ctype.members]: #locale.ctype.members
114
- [locale.ctype.virtuals]: #locale.ctype.virtuals
115
- [locale.facet]: #locale.facet
116
- [locale.general]: #locale.general
117
- [locale.global.templates]: #locale.global.templates
118
- [locale.id]: #locale.id
119
- [locale.members]: #locale.members
120
- [locale.messages]: #locale.messages
121
- [locale.messages.byname]: #locale.messages.byname
122
- [locale.messages.general]: #locale.messages.general
123
- [locale.messages.members]: #locale.messages.members
124
- [locale.messages.virtuals]: #locale.messages.virtuals
125
- [locale.money.get]: #locale.money.get
126
- [locale.money.get.members]: #locale.money.get.members
127
- [locale.money.get.virtuals]: #locale.money.get.virtuals
128
- [locale.money.put]: #locale.money.put
129
- [locale.money.put.members]: #locale.money.put.members
130
- [locale.money.put.virtuals]: #locale.money.put.virtuals
131
- [locale.moneypunct]: #locale.moneypunct
132
- [locale.moneypunct.byname]: #locale.moneypunct.byname
133
- [locale.moneypunct.general]: #locale.moneypunct.general
134
- [locale.moneypunct.members]: #locale.moneypunct.members
135
- [locale.moneypunct.virtuals]: #locale.moneypunct.virtuals
136
- [locale.nm.put]: #locale.nm.put
137
- [locale.nm.put.general]: #locale.nm.put.general
138
- [locale.num.get]: #locale.num.get
139
- [locale.num.get.general]: #locale.num.get.general
140
- [locale.numpunct]: #locale.numpunct
141
- [locale.numpunct.byname]: #locale.numpunct.byname
142
- [locale.numpunct.general]: #locale.numpunct.general
143
- [locale.operators]: #locale.operators
144
- [locale.spec]: #locale.spec
145
- [locale.statics]: #locale.statics
146
- [locale.syn]: #locale.syn
147
- [locale.time.get]: #locale.time.get
148
- [locale.time.get.byname]: #locale.time.get.byname
149
- [locale.time.get.dogetdate]: #locale.time.get.dogetdate
150
- [locale.time.get.general]: #locale.time.get.general
151
- [locale.time.get.members]: #locale.time.get.members
152
- [locale.time.get.virtuals]: #locale.time.get.virtuals
153
- [locale.time.put]: #locale.time.put
154
- [locale.time.put.byname]: #locale.time.put.byname
155
- [locale.time.put.members]: #locale.time.put.members
156
- [locale.time.put.virtuals]: #locale.time.put.virtuals
157
- [locale.types]: #locale.types
158
- [locales]: #locales
159
- [localization]: #localization
160
- [localization.general]: #localization.general
161
- [localization.summary]: #localization.summary
162
- [ostream.formatted.reqmts]: input.md#ostream.formatted.reqmts
163
- [res.on.data.races]: library.md#res.on.data.races
164
- [sequence.reqmts]: containers.md#sequence.reqmts
165
- [setlocale.data.races]: #setlocale.data.races
166
- [tab:locale.category.facets]: #tab:locale.category.facets
167
- [tab:locale.spec]: #tab:locale.spec
168
- [vector]: containers.md#vector
169
-
170
- [^1]: In this subclause, the type name `tm` is an incomplete type that
171
- is defined in `<ctime>`.
172
-
173
- [^2]: Note that in the call to `put`, the stream is implicitly converted
174
- to an `ostreambuf_iterator<charT, traits>`.
175
-
176
- [^3]: This is a complete list of requirements; there are no other
177
- requirements. Thus, a facet class need not have a public copy
178
- constructor, assignment, default constructor, destructor, etc.
179
-
180
- [^4]: When used in a loop, it is faster to cache the `ctype<>` facet and
181
- use it directly, or use the vector form of `ctype<>::is`.
182
-
183
- [^5]: The parameter `c` of `do_widen` is intended to accept values
184
- derived from *character-literal*s for conversion to the locale’s
185
- encoding.
186
-
187
- [^6]: In other words, the transformed character is not a member of any
188
- character classification that `c` is not also a member of.
189
-
190
- [^7]: Only the `char` (not `unsigned char` and `signed char`) form is
191
- provided. The specialization is specified in the standard, and not
192
- left as an implementation detail, because it affects the derivation
193
- interface for `ctype<char>`.
194
-
195
- [^8]: Informally, this means that `basic_filebuf` assumes that the
196
- mappings from internal to external characters is 1 to N: that a
197
- `codecvt` facet that is used by `basic_filebuf` can translate
198
- characters one internal character at a time.
199
-
200
- [^9]: Typically these will be characters to return the state to
201
- `stateT()`.
202
-
203
- [^10]: If `encoding()` yields `-1`, then more than `max_length()`
204
- `externT` elements can be consumed when producing a single `internT`
205
- character, and additional `externT` elements can appear at the end
206
- of a sequence after those that yield the final `internT` character.
207
-
208
- [^11]: Parsing `"-1"` correctly into, e.g., an `unsigned short` requires
209
- that the corresponding member `get()` at least extract the sign
210
- before delegating.
211
-
212
- [^12]: The conversion specification `#o` generates a leading `0` which
213
- is *not* a padding character.
214
-
215
- [^13]: Thus, the string `"\003"` specifies groups of 3 digits each, and
216
- `"3"` probably indicates groups of 51 (!) digits each, because 51 is
217
- the ASCII value of `"3"`.
218
-
219
- [^14]: This function is useful when one string is being compared to many
220
- other strings.
221
-
222
- [^15]: In other words, user confirmation is required for reliable
223
- parsing of user-entered dates and times, but machine-generated
224
- formats can be parsed reliably. This allows parsers to be aggressive
225
- about interpreting user variations on standard formats.
226
-
227
- [^16]: This function is intended as a convenience only, for common
228
- formats, and can return `no_order` in valid locales.
229
-
230
- [^17]: Although the C programming language defines no modifiers, most
231
- vendors do.
232
-
233
- [^18]: The semantics here are different from `ct.narrow`.
234
-
235
- [^19]: An array of `char`, rather than an array of `part`, is specified
236
- for `pattern::field` purely for efficiency.
237
-
238
- [^20]: In common U.S. locales this is `’.’`.
239
-
240
- [^21]: In common U.S. locales this is `’,’`.
241
-
242
- [^22]: To specify grouping by 3s, the value is `"\003"` *not* `"3"`.
243
-
244
- [^23]: This is usually the empty string.
245
-
246
- [^24]: In common U.S. locales, this is 2.
247
-
248
- [^25]: Note that the international symbol returned by `do_curr_symbol()`
249
- usually contains a space, itself; for example, `"USD "`.
 
1
+ ### C library locales <a id="c.locales">[[c.locales]]</a>
2
 
3
+ #### Header `<clocale>` synopsis <a id="clocale.syn">[[clocale.syn]]</a>
4
 
5
  ``` cpp
6
  namespace std {
7
  struct lconv;
8
 
 
20
  ```
21
 
22
  The contents and meaning of the header `<clocale>` are the same as the C
23
  standard library header `<locale.h>`.
24
 
25
+ #### Data races <a id="clocale.data.races">[[clocale.data.races]]</a>
26
 
27
  Calls to the function `setlocale` may introduce a data race
28
  [[res.on.data.races]] with other calls to `setlocale` or with calls to
29
  the functions listed in [[setlocale.data.races]].
30
 
 
43
  | `isdigit` | `iswblank` | `iswupper` | `strerror` | `wcstombs` |
44
  | `isgraph` | `iswcntrl` | `iswxdigit` | `strtod` | `wcsxfrm` |
45
  | `islower` | `iswctype` | `isxdigit` | `strxfrm` | `wctomb` |
46
 
47