diff options
| author | Patrick Scott <phanna@android.com> | 2009-10-16 15:11:59 -0400 |
|---|---|---|
| committer | Patrick Scott <phanna@android.com> | 2009-12-02 14:33:28 -0500 |
| commit | a47ab5294213cca2741f453b450b02666e08cac8 (patch) | |
| tree | 428576772386a65df40bbc18d1f7b41b06a01946 /WebKit/android/stlport/stl/_string_io.h | |
| parent | edac9050e2c3239d294f9039c54a31058ab0a783 (diff) | |
| download | external_webkit-a47ab5294213cca2741f453b450b02666e08cac8.zip external_webkit-a47ab5294213cca2741f453b450b02666e08cac8.tar.gz external_webkit-a47ab5294213cca2741f453b450b02666e08cac8.tar.bz2 | |
Use STLPort instead of our stripped version.
This fixes the simulator build and allows us to get closer to sharing code with
chromium.
STLPort was copied with minor edits from the Android port of gears.
Diffstat (limited to 'WebKit/android/stlport/stl/_string_io.h')
| -rw-r--r-- | WebKit/android/stlport/stl/_string_io.h | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/WebKit/android/stlport/stl/_string_io.h b/WebKit/android/stlport/stl/_string_io.h new file mode 100644 index 0000000..fe549fe --- /dev/null +++ b/WebKit/android/stlport/stl/_string_io.h @@ -0,0 +1,77 @@ +/* + * Copyright (c) 1997-1999 + * Silicon Graphics Computer Systems, Inc. + * + * Copyright (c) 1999 + * Boris Fomitchev + * + * This material is provided "as is", with absolutely no warranty expressed + * or implied. Any use is at your own risk. + * + * Permission to use or copy this software for any purpose is hereby granted + * without fee, provided the above notices are retained on all copies. + * Permission to modify the code and to distribute modified code is granted, + * provided the above notices are retained, and a notice that the code was + * modified is included with the above copyright notice. + * + */ + +#ifndef _STLP_STRING_IO_H +#define _STLP_STRING_IO_H + +#ifndef _STLP_INTERNAL_OSTREAM_H +# include <stl/_ostream.h> +#endif + +#ifndef _STLP_INTERNAL_ISTREAM +# include <stl/_istream.h> +#endif + +// I/O. +_STLP_BEGIN_NAMESPACE + +template <class _CharT, class _Traits, class _Alloc> +basic_ostream<_CharT, _Traits>& _STLP_CALL +operator<<(basic_ostream<_CharT, _Traits>& __os, + const basic_string<_CharT,_Traits,_Alloc>& __s); + +#if defined (_STLP_USE_TEMPLATE_EXPRESSION) + +template <class _CharT, class _Traits, class _Alloc, class _Left, class _Right, class _StorageDir> +basic_ostream<_CharT, _Traits>& _STLP_CALL +operator<<(basic_ostream<_CharT, _Traits>& __os, + const _STLP_PRIV __bstr_sum<_CharT, _Traits, _Alloc, _Left, _Right, _StorageDir>& __sum) { + basic_string<_CharT, _Traits, _Alloc> __tmp(__sum); + return __os << __tmp; +} + +#endif /* _STLP_USE_TEMPLATE_EXPRESSION */ + +template <class _CharT, class _Traits, class _Alloc> +basic_istream<_CharT, _Traits>& _STLP_CALL +operator>>(basic_istream<_CharT, _Traits>& __is, + basic_string<_CharT,_Traits,_Alloc>& __s); + +template <class _CharT, class _Traits, class _Alloc> +basic_istream<_CharT, _Traits>& _STLP_CALL +getline(basic_istream<_CharT, _Traits>& __is, + basic_string<_CharT,_Traits,_Alloc>& __s, + _CharT __delim); + +#if !(defined (__BORLANDC__) && !defined (_STLP_USE_OWN_NAMESPACE)) + +template <class _CharT, class _Traits, class _Alloc> +inline basic_istream<_CharT, _Traits>& _STLP_CALL +getline(basic_istream<_CharT, _Traits>& __is, + basic_string<_CharT,_Traits,_Alloc>& __s) { + return getline(__is, __s, __is.widen('\n')); +} +#endif + +_STLP_END_NAMESPACE + +#if !defined (_STLP_LINK_TIME_INSTANTIATION) +# include <stl/_string_io.c> +#endif + +#endif /* _STLP_STRING_IO_H */ |
