@@ -288,111 +288,97 @@ stoi(const string& str, size_t* idx, int base)
288
288
return as_integer<int >( " stoi" , str, idx, base );
289
289
}
290
290
291
- #ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
292
- int
293
- stoi (const wstring& str, size_t * idx, int base)
294
- {
295
- return as_integer<int >( " stoi" , str, idx, base );
296
- }
297
- #endif
298
-
299
291
long
300
292
stol (const string& str, size_t * idx, int base)
301
293
{
302
294
return as_integer<long >( " stol" , str, idx, base );
303
295
}
304
296
305
- #ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
306
- long
307
- stol (const wstring& str, size_t * idx, int base)
308
- {
309
- return as_integer<long >( " stol" , str, idx, base );
310
- }
311
- #endif
312
-
313
297
unsigned long
314
298
stoul (const string& str, size_t * idx, int base)
315
299
{
316
300
return as_integer<unsigned long >( " stoul" , str, idx, base );
317
301
}
318
302
319
- #ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
320
- unsigned long
321
- stoul (const wstring& str, size_t * idx, int base)
322
- {
323
- return as_integer<unsigned long >( " stoul" , str, idx, base );
324
- }
325
- #endif
326
-
327
303
long long
328
304
stoll (const string& str, size_t * idx, int base)
329
305
{
330
306
return as_integer<long long >( " stoll" , str, idx, base );
331
307
}
332
308
333
- #ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
334
- long long
335
- stoll (const wstring& str, size_t * idx, int base)
336
- {
337
- return as_integer<long long >( " stoll" , str, idx, base );
338
- }
339
- #endif
340
-
341
309
unsigned long long
342
310
stoull (const string& str, size_t * idx, int base)
343
311
{
344
312
return as_integer<unsigned long long >( " stoull" , str, idx, base );
345
313
}
346
314
347
- #ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
348
- unsigned long long
349
- stoull (const wstring& str, size_t * idx, int base)
350
- {
351
- return as_integer<unsigned long long >( " stoull" , str, idx, base );
352
- }
353
- #endif
354
-
355
315
float
356
316
stof (const string& str, size_t * idx)
357
317
{
358
318
return as_float<float >( " stof" , str, idx );
359
319
}
360
320
361
- #ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
362
- float
363
- stof (const wstring& str, size_t * idx)
364
- {
365
- return as_float<float >( " stof" , str, idx );
366
- }
367
- #endif
368
-
369
321
double
370
322
stod (const string& str, size_t * idx)
371
323
{
372
324
return as_float<double >( " stod" , str, idx );
373
325
}
374
326
375
- #ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
376
- double
377
- stod (const wstring& str, size_t * idx)
378
- {
379
- return as_float<double >( " stod" , str, idx );
380
- }
381
- #endif
382
-
383
327
long double
384
328
stold (const string& str, size_t * idx)
385
329
{
386
330
return as_float<long double >( " stold" , str, idx );
387
331
}
388
332
389
333
#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
334
+ int
335
+ stoi (const wstring& str, size_t * idx, int base)
336
+ {
337
+ return as_integer<int >( " stoi" , str, idx, base );
338
+ }
339
+
340
+ long
341
+ stol (const wstring& str, size_t * idx, int base)
342
+ {
343
+ return as_integer<long >( " stol" , str, idx, base );
344
+ }
345
+
346
+ unsigned long
347
+ stoul (const wstring& str, size_t * idx, int base)
348
+ {
349
+ return as_integer<unsigned long >( " stoul" , str, idx, base );
350
+ }
351
+
352
+ long long
353
+ stoll (const wstring& str, size_t * idx, int base)
354
+ {
355
+ return as_integer<long long >( " stoll" , str, idx, base );
356
+ }
357
+
358
+ unsigned long long
359
+ stoull (const wstring& str, size_t * idx, int base)
360
+ {
361
+ return as_integer<unsigned long long >( " stoull" , str, idx, base );
362
+ }
363
+
364
+ float
365
+ stof (const wstring& str, size_t * idx)
366
+ {
367
+ return as_float<float >( " stof" , str, idx );
368
+ }
369
+
370
+ double
371
+ stod (const wstring& str, size_t * idx)
372
+ {
373
+ return as_float<double >( " stod" , str, idx );
374
+ }
375
+
390
376
long double
391
377
stold (const wstring& str, size_t * idx)
392
378
{
393
379
return as_float<long double >( " stold" , str, idx );
394
380
}
395
- #endif
381
+ #endif // !_LIBCPP_HAS_NO_WIDE_CHARACTERS
396
382
397
383
// to_string
398
384
0 commit comments