Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 /*
2 *******************************************************************************
3 *
4 * Copyright (C) 1998-2003, International Business Machines
5 * Corporation and others. All Rights Reserved.
6 *
7 *******************************************************************************
8 *
9 * File read.h
10 *
11 * Modification History:
12 *
13 * Date Name Description
14 * 05/26/99 stephen Creation.
15 * 5/10/01 Ram removed ustdio dependency
16 *******************************************************************************
17 */
19 #ifndef PRSCMNTS_H
20 #define PRSCMNTS_H 1
22 #if UCONFIG_NO_REGULAR_EXPRESSIONS==0 /* donot compile when no RegularExpressions are available */
24 enum UParseCommentsOption {
25 UPC_TRANSLATE,
26 UPC_NOTE,
27 UPC_LIMIT
28 };
30 typedef enum UParseCommentsOption UParseCommentsOption;
32 U_CFUNC int32_t
33 getNote(const UChar* source, int32_t srcLen,
34 UChar** dest, int32_t destCapacity,
35 UErrorCode* status);
36 U_CFUNC int32_t
37 removeCmtText(UChar* source, int32_t srcLen, UErrorCode* status);
39 U_CFUNC int32_t
40 getDescription( const UChar* source, int32_t srcLen,
41 UChar** dest, int32_t destCapacity,
42 UErrorCode* status);
43 U_CFUNC int32_t
44 getTranslate( const UChar* source, int32_t srcLen,
45 UChar** dest, int32_t destCapacity,
46 UErrorCode* status);
48 U_CFUNC int32_t
49 getAt(const UChar* source, int32_t srcLen,
50 UChar** dest, int32_t destCapacity,
51 int32_t index,
52 UParseCommentsOption option,
53 UErrorCode* status);
55 U_CFUNC int32_t
56 getCount(const UChar* source, int32_t srcLen,
57 UParseCommentsOption option, UErrorCode *status);
59 #endif /* UCONFIG_NO_REGULAR_EXPRESSIONS */
61 #endif