| OLD | NEW |
| 1 /* | 1 /* |
| 2 * libjingle | 2 * libjingle |
| 3 * Copyright 2004--2005, Google Inc. | 3 * Copyright 2004--2005, Google Inc. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
| 9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | 24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
| 25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 26 */ | 26 */ |
| 27 | 27 |
| 28 #ifndef TALK_BASE_STRINGUTILS_H__ | 28 #ifndef TALK_BASE_STRINGUTILS_H__ |
| 29 #define TALK_BASE_STRINGUTILS_H__ | 29 #define TALK_BASE_STRINGUTILS_H__ |
| 30 | 30 |
| 31 #include <ctype.h> | 31 #include <ctype.h> |
| 32 #include <stdarg.h> | 32 #include <stdarg.h> |
| 33 #include <stdio.h> | 33 #include <stdio.h> |
| 34 #include <string.h> |
| 34 #ifdef WIN32 | 35 #ifdef WIN32 |
| 35 #include <wchar.h> | 36 #include <wchar.h> |
| 36 #endif // WIN32 | 37 #endif // WIN32 |
| 37 | 38 |
| 38 #include <string> | 39 #include <string> |
| 39 | 40 |
| 40 /////////////////////////////////////////////////////////////////////////////// | 41 /////////////////////////////////////////////////////////////////////////////// |
| 41 // Generic string/memory utilities | 42 // Generic string/memory utilities |
| 42 /////////////////////////////////////////////////////////////////////////////// | 43 /////////////////////////////////////////////////////////////////////////////// |
| 43 | 44 |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 struct Traits<wchar_t> { | 285 struct Traits<wchar_t> { |
| 285 typedef std::wstring string; | 286 typedef std::wstring string; |
| 286 inline static const wchar_t* Traits<wchar_t>::empty_str() { return L""; } | 287 inline static const wchar_t* Traits<wchar_t>::empty_str() { return L""; } |
| 287 }; | 288 }; |
| 288 | 289 |
| 289 #endif // WIN32 | 290 #endif // WIN32 |
| 290 | 291 |
| 291 } // namespace talk_base | 292 } // namespace talk_base |
| 292 | 293 |
| 293 #endif // TALK_BASE_STRINGUTILS_H__ | 294 #endif // TALK_BASE_STRINGUTILS_H__ |
| OLD | NEW |