X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/48b980fed3435926e0b3a8d72ecb58be703a1c7a..729e4ab9bc6618bc3d8a898e575df7f4019e29ca:/icuSources/i18n/unicode/ucsdet.h diff --git a/icuSources/i18n/unicode/ucsdet.h b/icuSources/i18n/unicode/ucsdet.h index 31f622c0..dc492ee2 100644 --- a/icuSources/i18n/unicode/ucsdet.h +++ b/icuSources/i18n/unicode/ucsdet.h @@ -1,6 +1,6 @@ /* ********************************************************************** - * Copyright (C) 2005-2007, International Business Machines + * Copyright (C) 2005-2010, International Business Machines * Corporation and others. All Rights Reserved. ********************************************************************** * file name: ucsdet.h @@ -22,6 +22,8 @@ #include "unicode/utypes.h" #if !UCONFIG_NO_CONVERSION + +#include "unicode/localpointer.h" #include "unicode/uenum.h" /** @@ -82,6 +84,25 @@ ucsdet_open(UErrorCode *status); U_STABLE void U_EXPORT2 ucsdet_close(UCharsetDetector *ucsd); +#if U_SHOW_CPLUSPLUS_API + +U_NAMESPACE_BEGIN + +/** + * \class LocalUCharsetDetectorPointer + * "Smart pointer" class, closes a UCharsetDetector via ucsdet_close(). + * For most methods see the LocalPointerBase base class. + * + * @see LocalPointerBase + * @see LocalPointer + * @stable ICU 4.4 + */ +U_DEFINE_LOCAL_OPEN_POINTER(LocalUCharsetDetectorPointer, UCharsetDetector, ucsdet_close); + +U_NAMESPACE_END + +#endif + /** * Set the input byte data whose charset is to detected. *