/*
**********************************************************************
- * Copyright (C) 2005-2007, International Business Machines
+ * Copyright (C) 2005-2010, International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
* file name: ucsdet.h
#include "unicode/utypes.h"
#if !UCONFIG_NO_CONVERSION
+
+#include "unicode/localpointer.h"
#include "unicode/uenum.h"
/**
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.
*