From bf6a611300aeb0f06626e926d8dbc503a4726d0e Mon Sep 17 00:00:00 2001 From: Benjamin Kosnik Date: Wed, 30 Aug 2000 23:13:57 +0000 Subject: [PATCH] codecvt.html: Formatting cleanups. 2000-08-30 Benjamin Kosnik * docs/22_locale/codecvt.html: Formatting cleanups. * src/locale.cc (ctype::do_is): Fix thinko. From-SVN: r36079 --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/docs/22_locale/codecvt.html | 20 ++++++++++++++------ libstdc++-v3/src/locale.cc | 2 +- 3 files changed, 20 insertions(+), 7 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 6eec7b5..a703dc7 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,10 @@ 2000-08-30 Benjamin Kosnik + * docs/22_locale/codecvt.html: Formatting cleanups. + * src/locale.cc (ctype::do_is): Fix thinko. + +2000-08-30 Benjamin Kosnik + * bits/locale_facets.h (ctype): Remove __table_type. Add include for bits/std_cwctype.h, for wctype_t. * src/locale.cc (ctype): Implement. diff --git a/libstdc++-v3/docs/22_locale/codecvt.html b/libstdc++-v3/docs/22_locale/codecvt.html index 9289d7d..ee05cd3 100644 --- a/libstdc++-v3/docs/22_locale/codecvt.html +++ b/libstdc++-v3/docs/22_locale/codecvt.html @@ -372,7 +372,10 @@ codecvt usage.

5. Examples

-a. conversions involving string literals + +
    +
  • + a. conversions involving string literals
       typedef codecvt_base::result			result;
    @@ -412,14 +415,19 @@ a. conversions involving string literals
       VERIFY( efrom_next == e_lit + size );
       VERIFY( ito_next == i_arr + size );
     
    +
  • b. conversions involving std::string +
  • c. conversions involving std::filebuf and std::ostream +
More information can be found in the following testcases: -codecvt_char_char.cc -codecvt_unicode_wchar_t.cc -codecvt_unicode_char.cc -codecvt_wchar_t_char.cc +
    +
  • testsuite/22_locale/codecvt_char_char.cc +
  • testsuite/22_locale/codecvt_unicode_wchar_t.cc +
  • testsuite/22_locale/codecvt_unicode_char.cc +
  • testsuite/22_locale/codecvt_wchar_t_char.cc +

@@ -427,7 +435,7 @@ codecvt_wchar_t_char.cc

  • - a. things that are sketchy, or remain unimplemented + a. things that are sketchy, or remain unimplemented: do_encoding, max_length and length member functions are only weakly implemented. I have no idea how to do this correctly, and in a generic manner. Nathan? diff --git a/libstdc++-v3/src/locale.cc b/libstdc++-v3/src/locale.cc index 8235dd0..7f9a9ff 100644 --- a/libstdc++-v3/src/locale.cc +++ b/libstdc++-v3/src/locale.cc @@ -604,7 +604,7 @@ namespace std { bool ctype:: do_is(mask __m, char_type __c) const - { return static_cast(iswctype(_M_convert_to_wmask(__m), __c)); } + { return static_cast(iswctype(__c, _M_convert_to_wmask(__m))); } const wchar_t* ctype:: -- 2.7.4