Index: source/tools/toolutil/ucbuf.h |
diff --git a/source/tools/toolutil/ucbuf.h b/source/tools/toolutil/ucbuf.h |
index 100e29b7f9bd4383c588e3a3f66aed5f4c244f60..37fc783dec834802c3fbd6cba30016b583caf152 100644 |
--- a/source/tools/toolutil/ucbuf.h |
+++ b/source/tools/toolutil/ucbuf.h |
@@ -1,7 +1,7 @@ |
/* |
******************************************************************************* |
* |
-* Copyright (C) 1998-2008, International Business Machines |
+* Copyright (C) 1998-2015, International Business Machines |
* Corporation and others. All Rights Reserved. |
* |
******************************************************************************* |
@@ -137,6 +137,16 @@ ucbuf_getBuffer(UCHARBUF* buf,int32_t* len,UErrorCode* err); |
U_CAPI void U_EXPORT2 |
ucbuf_close(UCHARBUF* buf); |
+#if U_SHOW_CPLUSPLUS_API |
+ |
+U_NAMESPACE_BEGIN |
+ |
+U_DEFINE_LOCAL_OPEN_POINTER(LocalUCHARBUFPointer, UCHARBUF, ucbuf_close); |
+ |
+U_NAMESPACE_END |
+ |
+#endif |
+ |
/** |
* Rewinds the buffer by one codepoint. Does not rewind over escaped characters. |
*/ |