OLD | NEW |
1 /* | 1 /* |
2 ******************************************************************************* | 2 ******************************************************************************* |
3 * | 3 * |
4 * Copyright (C) 2003-2010, International Business Machines | 4 * Copyright (C) 2003-2014, International Business Machines |
5 * Corporation and others. All Rights Reserved. | 5 * Corporation and others. All Rights Reserved. |
6 * | 6 * |
7 ******************************************************************************* | 7 ******************************************************************************* |
8 * file name: usprep.h | 8 * file name: usprep.h |
9 * encoding: US-ASCII | 9 * encoding: US-ASCII |
10 * tab size: 8 (not used) | 10 * tab size: 8 (not used) |
11 * indentation:4 | 11 * indentation:4 |
12 * | 12 * |
13 * created on: 2003jul2 | 13 * created on: 2003jul2 |
14 * created by: Ram Viswanadha | 14 * created by: Ram Viswanadha |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 * checks for prohited and BiDi characters in the order defined by RFC 3454 | 231 * checks for prohited and BiDi characters in the order defined by RFC 3454 |
232 * depending on the options specified in the profile. | 232 * depending on the options specified in the profile. |
233 * | 233 * |
234 * @param prep The profile to use | 234 * @param prep The profile to use |
235 * @param src Pointer to UChar buffer containing the string to prepare | 235 * @param src Pointer to UChar buffer containing the string to prepare |
236 * @param srcLength Number of characters in the source string | 236 * @param srcLength Number of characters in the source string |
237 * @param dest Pointer to the destination buffer to receive the output | 237 * @param dest Pointer to the destination buffer to receive the output |
238 * @param destCapacity The capacity of destination array | 238 * @param destCapacity The capacity of destination array |
239 * @param options A bit set of options: | 239 * @param options A bit set of options: |
240 * | 240 * |
241 * - USPREP_NONE Prohibit processing of unassigned code points in
the input | 241 * - USPREP_DEFAULT Prohibit processing of unassigned code points in
the input |
242 * | 242 * |
243 * - USPREP_ALLOW_UNASSIGNED Treat the unassigned code points are in the inpu
t | 243 * - USPREP_ALLOW_UNASSIGNED Treat the unassigned code points are in the inpu
t |
244 * as normal Unicode code points. | 244 * as normal Unicode code points. |
245 * | 245 * |
246 * @param parseError Pointer to UParseError struct to receive information
on position | 246 * @param parseError Pointer to UParseError struct to receive information
on position |
247 * of error if an error is encountered. Can be NULL. | 247 * of error if an error is encountered. Can be NULL. |
248 * @param status ICU in/out error code parameter. | 248 * @param status ICU in/out error code parameter. |
249 * U_INVALID_CHAR_FOUND if src contains | 249 * U_INVALID_CHAR_FOUND if src contains |
250 * unmatched single surrogates. | 250 * unmatched single surrogates. |
251 * U_INDEX_OUTOFBOUNDS_ERROR if src contains | 251 * U_INDEX_OUTOFBOUNDS_ERROR if src contains |
252 * too many code points. | 252 * too many code points. |
253 * U_BUFFER_OVERFLOW_ERROR if destCapacity is not enoug
h | 253 * U_BUFFER_OVERFLOW_ERROR if destCapacity is not enoug
h |
254 * @return The number of UChars in the destination buffer | 254 * @return The number of UChars in the destination buffer |
255 * @stable ICU 2.8 | 255 * @stable ICU 2.8 |
256 */ | 256 */ |
257 | 257 |
258 U_STABLE int32_t U_EXPORT2 | 258 U_STABLE int32_t U_EXPORT2 |
259 usprep_prepare( const UStringPrepProfile* prep, | 259 usprep_prepare( const UStringPrepProfile* prep, |
260 const UChar* src, int32_t srcLength, | 260 const UChar* src, int32_t srcLength, |
261 UChar* dest, int32_t destCapacity, | 261 UChar* dest, int32_t destCapacity, |
262 int32_t options, | 262 int32_t options, |
263 UParseError* parseError, | 263 UParseError* parseError, |
264 UErrorCode* status ); | 264 UErrorCode* status ); |
265 | 265 |
266 | 266 |
267 #endif /* #if !UCONFIG_NO_IDNA */ | 267 #endif /* #if !UCONFIG_NO_IDNA */ |
268 | 268 |
269 #endif | 269 #endif |
OLD | NEW |