X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2Fstrfwd.h;h=069357ff9cbdd5258e3b4b1927c5dbe77926e765;hb=de6ff1fec2b918a0bd09f48b17a2770bfc15aef7;hp=32a8248118959c1813748457706f246a20e61ad5;hpb=dec166d5e3b9510dfe6ab8869d9fe46b3b95d3a1;p=lyx.git diff --git a/src/support/strfwd.h b/src/support/strfwd.h index 32a8248118..069357ff9c 100644 --- a/src/support/strfwd.h +++ b/src/support/strfwd.h @@ -31,16 +31,15 @@ namespace lyx { typedef boost::uint32_t char_type; } namespace std { +template class allocator; + template struct char_traits; template<> struct char_traits; #ifdef USE_WCHAR_T template<> struct char_traits; #endif -template class allocator; - template class basic_string; - typedef basic_string, allocator > string; template class basic_istream; @@ -49,22 +48,30 @@ template class basic_ostream; typedef basic_istream > istream; typedef basic_ostream > ostream; -} +} // namepace std namespace lyx { +/// String type for storing the main text in UCS4 encoding typedef std::basic_string, std::allocator > docstring; /// Base class for UCS4 input streams -typedef std::basic_istream > - idocstream; +typedef std::basic_istream > idocstream; /// Base class for UCS4 output streams -typedef std::basic_ostream > - odocstream; +typedef std::basic_ostream > odocstream; + +#if ! defined(USE_WCHAR_T) +extern odocstream & operator<<(odocstream &, char); +#endif +// defined in lstrings.cpp +docstring const & empty_docstring(); +std::string const & empty_string(); +// defined in docstring.cpp +bool operator==(docstring const &, char const *); } // namespace lyx