|
4276 | 4276 | \end{footnote} |
4277 | 4277 | \begin{codeblock} |
4278 | 4278 | for (int i = 0; i < n; ++i) |
4279 | | - buf2[i] = src[find(atoms, atoms+sizeof(src), buf1[i]) - atoms]; |
| 4279 | + buf2[i] = src[find(atoms, atoms + sizeof(src), buf1[i]) - atoms]; |
4280 | 4280 | buf2[n] = 0; |
4281 | 4281 | sscanf(buf2, "%Lf", &units); |
4282 | 4282 | \end{codeblock} |
|
4434 | 4434 |
|
4435 | 4435 | explicit moneypunct(size_t refs = 0); |
4436 | 4436 |
|
4437 | | - charT decimal_point() const; |
4438 | | - charT thousands_sep() const; |
4439 | | - string grouping() const; |
4440 | | - string_type curr_symbol() const; |
4441 | | - string_type positive_sign() const; |
4442 | | - string_type negative_sign() const; |
4443 | | - int frac_digits() const; |
4444 | | - pattern pos_format() const; |
4445 | | - pattern neg_format() const; |
| 4437 | + charT decimal_point() const; |
| 4438 | + charT thousands_sep() const; |
| 4439 | + string grouping() const; |
| 4440 | + string_type curr_symbol() const; |
| 4441 | + string_type positive_sign() const; |
| 4442 | + string_type negative_sign() const; |
| 4443 | + int frac_digits() const; |
| 4444 | + pattern pos_format() const; |
| 4445 | + pattern neg_format() const; |
4446 | 4446 |
|
4447 | 4447 | static locale::id id; |
4448 | 4448 | static const bool intl = International; |
4449 | 4449 |
|
4450 | 4450 | protected: |
4451 | 4451 | ~moneypunct(); |
4452 | | - virtual charT do_decimal_point() const; |
4453 | | - virtual charT do_thousands_sep() const; |
4454 | | - virtual string do_grouping() const; |
4455 | | - virtual string_type do_curr_symbol() const; |
4456 | | - virtual string_type do_positive_sign() const; |
4457 | | - virtual string_type do_negative_sign() const; |
4458 | | - virtual int do_frac_digits() const; |
4459 | | - virtual pattern do_pos_format() const; |
4460 | | - virtual pattern do_neg_format() const; |
| 4452 | + virtual charT do_decimal_point() const; |
| 4453 | + virtual charT do_thousands_sep() const; |
| 4454 | + virtual string do_grouping() const; |
| 4455 | + virtual string_type do_curr_symbol() const; |
| 4456 | + virtual string_type do_positive_sign() const; |
| 4457 | + virtual string_type do_negative_sign() const; |
| 4458 | + virtual int do_frac_digits() const; |
| 4459 | + virtual pattern do_pos_format() const; |
| 4460 | + virtual pattern do_neg_format() const; |
4461 | 4461 | }; |
4462 | 4462 | } |
4463 | 4463 | \end{codeblock} |
|
4562 | 4562 | \indexlibrarymember{moneypunct}{positive_sign}% |
4563 | 4563 | \indexlibrarymember{moneypunct}{negative_sign}% |
4564 | 4564 | \begin{codeblock} |
4565 | | -charT decimal_point() const; |
4566 | | -charT thousands_sep() const; |
4567 | | -string grouping() const; |
4568 | | -string_type curr_symbol() const; |
4569 | | -string_type positive_sign() const; |
4570 | | -string_type negative_sign() const; |
4571 | | -int frac_digits() const; |
4572 | | -pattern pos_format() const; |
4573 | | -pattern neg_format() const; |
| 4565 | +charT decimal_point() const; |
| 4566 | +charT thousands_sep() const; |
| 4567 | +string grouping() const; |
| 4568 | +string_type curr_symbol() const; |
| 4569 | +string_type positive_sign() const; |
| 4570 | +string_type negative_sign() const; |
| 4571 | +int frac_digits() const; |
| 4572 | +pattern pos_format() const; |
| 4573 | +pattern neg_format() const; |
4574 | 4574 | \end{codeblock} |
4575 | 4575 |
|
4576 | 4576 | \pnum |
|
0 commit comments