Author: sebor
Date: Tue Jan 10 19:10:58 2006
New Revision: 367889
URL: http://svn.apache.org/viewcvs?rev=367889&view=rev
Log:
2006-01-10 Martin Sebor <[EMAIL PROTECTED]>
* codecvte.h (<cwchar>): Included header for mbstate_t.
(<strstream>, <functional>): Removed #include directives.
Modified:
incubator/stdcxx/trunk/examples/include/codecvte.h
Modified: incubator/stdcxx/trunk/examples/include/codecvte.h
URL:
http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/examples/include/codecvte.h?rev=367889&r1=367888&r2=367889&view=diff
==============================================================================
--- incubator/stdcxx/trunk/examples/include/codecvte.h (original)
+++ incubator/stdcxx/trunk/examples/include/codecvte.h Tue Jan 10 19:10:58 2006
@@ -2,7 +2,7 @@
*
* codecvte.h - Example of user defined codecvt facet.
*
- * $Id: //stdlib/dev/examples/stdlib/include/codecvte.h#13 $
+ * $Id$
*
***************************************************************************
*
@@ -21,10 +21,9 @@
#ifndef CODECVTE_H_INCLUDED
-#include <locale>
-#include <strstream>
-#include <functional>
-#include <algorithm>
+#include <algorithm> // for min()
+#include <locale> // for codecvt
+#include <cwchar> // for mbstate_t, size_t
#include <examples.h>
@@ -41,10 +40,11 @@
static const char table_[RWSTD_TABLE_SIZE][3];
protected:
- virtual result do_in (std::mbstate_t&,
- const char* from, const char* from_end,
- const char*& from_next,
- char* to, char* to_limit, char*& to_next) const {
+ virtual result
+ do_in (std::mbstate_t&,
+ const char* from, const char* from_end,
+ const char*& from_next,
+ char* to, char* to_limit, char*& to_next) const {
bool match;
std::size_t i = (std::min)(to_limit - to, from_end - from);
@@ -68,10 +68,11 @@
return ok;
}
- virtual result do_out (std::mbstate_t&,
- const char* from, const char* from_end,
- const char*& from_next,
- char* to, char* to_limit, char*& to_next) const {
+ virtual result
+ do_out (std::mbstate_t&,
+ const char* from, const char* from_end,
+ const char*& from_next,
+ char* to, char* to_limit, char*& to_next) const {
bool match;
std::size_t i = (std::min)(to_limit - to, from_end - from);