| OLD | NEW |
| 1 /* | 1 /* |
| 2 ********************************************************************** | 2 ********************************************************************** |
| 3 * Copyright (c) 2002-2010, International Business Machines | 3 * Copyright (c) 2002-2010, International Business Machines |
| 4 * Corporation and others. All Rights Reserved. | 4 * Corporation and others. All Rights Reserved. |
| 5 ********************************************************************** | 5 ********************************************************************** |
| 6 * Author: Alan Liu | 6 * Author: Alan Liu |
| 7 * Created: November 11 2002 | 7 * Created: November 11 2002 |
| 8 * Since: ICU 2.4 | 8 * Since: ICU 2.4 |
| 9 ********************************************************************** | 9 ********************************************************************** |
| 10 */ | 10 */ |
| 11 #if defined(_MSC_VER) && defined(_HAS_EXCEPTIONS) && !_HAS_EXCEPTIONS |
| 12 #include <exception> |
| 13 using std::exception; |
| 14 #endif |
| 11 #include <typeinfo> // for 'typeid' to work | 15 #include <typeinfo> // for 'typeid' to work |
| 12 | 16 |
| 13 #include "unicode/ustring.h" | 17 #include "unicode/ustring.h" |
| 14 #include "unicode/strenum.h" | 18 #include "unicode/strenum.h" |
| 15 #include "unicode/putil.h" | 19 #include "unicode/putil.h" |
| 16 #include "uenumimp.h" | 20 #include "uenumimp.h" |
| 17 #include "ustrenum.h" | 21 #include "ustrenum.h" |
| 18 #include "cstring.h" | 22 #include "cstring.h" |
| 19 #include "cmemory.h" | 23 #include "cmemory.h" |
| 20 #include "uassert.h" | 24 #include "uassert.h" |
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 uprv_memcpy(result, &UCHARSTRENUM_VT, sizeof(UCHARSTRENUM_VT)); | 320 uprv_memcpy(result, &UCHARSTRENUM_VT, sizeof(UCHARSTRENUM_VT)); |
| 317 result->uenum.context = (void*)strings; | 321 result->uenum.context = (void*)strings; |
| 318 result->index = 0; | 322 result->index = 0; |
| 319 result->count = count; | 323 result->count = count; |
| 320 } | 324 } |
| 321 } | 325 } |
| 322 return (UEnumeration*) result; | 326 return (UEnumeration*) result; |
| 323 } | 327 } |
| 324 | 328 |
| 325 | 329 |
| OLD | NEW |