| 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 14 matching lines...) Expand all Loading... |
| 25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 26 */ | 26 */ |
| 27 | 27 |
| 28 #ifdef WIN32 | 28 #ifdef WIN32 |
| 29 #include <malloc.h> | 29 #include <malloc.h> |
| 30 #endif // WIN32 | 30 #endif // WIN32 |
| 31 #ifdef POSIX | 31 #ifdef POSIX |
| 32 #include <alloca.h> | 32 #include <alloca.h> |
| 33 #define _alloca alloca | 33 #define _alloca alloca |
| 34 #endif // POSIX | 34 #endif // POSIX |
| 35 #include <stdlib.h> |
| 35 | 36 |
| 36 #include "talk/base/basictypes.h" | 37 #include "talk/base/basictypes.h" |
| 37 #include "talk/base/common.h" | 38 #include "talk/base/common.h" |
| 38 #include "talk/base/stringencode.h" | 39 #include "talk/base/stringencode.h" |
| 39 #include "talk/base/stringutils.h" | 40 #include "talk/base/stringutils.h" |
| 40 | 41 |
| 41 namespace talk_base { | 42 namespace talk_base { |
| 42 | 43 |
| 43 ///////////////////////////////////////////////////////////////////////////// | 44 ///////////////////////////////////////////////////////////////////////////// |
| 44 // String Encoding Utilities | 45 // String Encoding Utilities |
| (...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 570 return 1; | 571 return 1; |
| 571 } | 572 } |
| 572 | 573 |
| 573 int test = utf8_unittest(); | 574 int test = utf8_unittest(); |
| 574 | 575 |
| 575 #endif // _DEBUG | 576 #endif // _DEBUG |
| 576 | 577 |
| 577 ///////////////////////////////////////////////////////////////////////////// | 578 ///////////////////////////////////////////////////////////////////////////// |
| 578 | 579 |
| 579 } // namespace talk_base | 580 } // namespace talk_base |
| OLD | NEW |