Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(587)

Side by Side Diff: source/tools/toolutil/ucbuf.h

Issue 1621843002: ICU 56 update step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@561
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « source/tools/toolutil/toolutil.vcxproj ('k') | source/tools/toolutil/udbgutil.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 ******************************************************************************* 2 *******************************************************************************
3 * 3 *
4 * Copyright (C) 1998-2008, International Business Machines 4 * Copyright (C) 1998-2015, International Business Machines
5 * Corporation and others. All Rights Reserved. 5 * Corporation and others. All Rights Reserved.
6 * 6 *
7 ******************************************************************************* 7 *******************************************************************************
8 * 8 *
9 * File ucbuf.c 9 * File ucbuf.c
10 * 10 *
11 * Modification History: 11 * Modification History:
12 * 12 *
13 * Date Name Description 13 * Date Name Description
14 * 05/10/01 Ram Creation. 14 * 05/10/01 Ram Creation.
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 U_CAPI const UChar* U_EXPORT2 130 U_CAPI const UChar* U_EXPORT2
131 ucbuf_getBuffer(UCHARBUF* buf,int32_t* len,UErrorCode* err); 131 ucbuf_getBuffer(UCHARBUF* buf,int32_t* len,UErrorCode* err);
132 132
133 /** 133 /**
134 * Closes the UCHARBUF structure members and cleans up the malloc'ed memory 134 * Closes the UCHARBUF structure members and cleans up the malloc'ed memory
135 * @param buf Pointer to UCHARBUF structure 135 * @param buf Pointer to UCHARBUF structure
136 */ 136 */
137 U_CAPI void U_EXPORT2 137 U_CAPI void U_EXPORT2
138 ucbuf_close(UCHARBUF* buf); 138 ucbuf_close(UCHARBUF* buf);
139 139
140 #if U_SHOW_CPLUSPLUS_API
141
142 U_NAMESPACE_BEGIN
143
144 U_DEFINE_LOCAL_OPEN_POINTER(LocalUCHARBUFPointer, UCHARBUF, ucbuf_close);
145
146 U_NAMESPACE_END
147
148 #endif
149
140 /** 150 /**
141 * Rewinds the buffer by one codepoint. Does not rewind over escaped characters. 151 * Rewinds the buffer by one codepoint. Does not rewind over escaped characters.
142 */ 152 */
143 U_CAPI void U_EXPORT2 153 U_CAPI void U_EXPORT2
144 ucbuf_ungetc(int32_t ungetChar,UCHARBUF* buf); 154 ucbuf_ungetc(int32_t ungetChar,UCHARBUF* buf);
145 155
146 156
147 /** 157 /**
148 * Autodetects the encoding of the file stream. Only Unicode charsets are autode ctected. 158 * Autodetects the encoding of the file stream. Only Unicode charsets are autode ctected.
149 * Some Unicode charsets are stateful and need byte identifiers to be converted also to bring 159 * Some Unicode charsets are stateful and need byte identifiers to be converted also to bring
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 */ 198 */
189 U_CAPI int32_t U_EXPORT2 199 U_CAPI int32_t U_EXPORT2
190 ucbuf_size(UCHARBUF* buf); 200 ucbuf_size(UCHARBUF* buf);
191 201
192 U_CAPI const char* U_EXPORT2 202 U_CAPI const char* U_EXPORT2
193 ucbuf_resolveFileName(const char* inputDir, const char* fileName, char* target, int32_t* len, UErrorCode* status); 203 ucbuf_resolveFileName(const char* inputDir, const char* fileName, char* target, int32_t* len, UErrorCode* status);
194 204
195 #endif 205 #endif
196 #endif 206 #endif
197 207
OLDNEW
« no previous file with comments | « source/tools/toolutil/toolutil.vcxproj ('k') | source/tools/toolutil/udbgutil.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698