| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |