]>
Commit | Line | Data |
---|---|---|
374ca955 A |
1 | /* |
2 | ******************************************************************************* | |
3 | * | |
2ca993e8 | 4 | * Copyright (C) 1998-2016, International Business Machines |
374ca955 A |
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 | */ | |
18 | ||
19 | #ifndef PRSCMNTS_H | |
20 | #define PRSCMNTS_H 1 | |
21 | ||
2ca993e8 A |
22 | #include "unicode/utypes.h" |
23 | ||
374ca955 A |
24 | #if UCONFIG_NO_REGULAR_EXPRESSIONS==0 /* donot compile when no RegularExpressions are available */ |
25 | ||
26 | enum UParseCommentsOption { | |
27 | UPC_TRANSLATE, | |
28 | UPC_NOTE, | |
29 | UPC_LIMIT | |
30 | }; | |
31 | ||
32 | typedef enum UParseCommentsOption UParseCommentsOption; | |
33 | ||
34 | U_CFUNC int32_t | |
35 | getNote(const UChar* source, int32_t srcLen, | |
36 | UChar** dest, int32_t destCapacity, | |
37 | UErrorCode* status); | |
38 | U_CFUNC int32_t | |
39 | removeCmtText(UChar* source, int32_t srcLen, UErrorCode* status); | |
40 | ||
41 | U_CFUNC int32_t | |
42 | getDescription( const UChar* source, int32_t srcLen, | |
43 | UChar** dest, int32_t destCapacity, | |
44 | UErrorCode* status); | |
45 | U_CFUNC int32_t | |
46 | getTranslate( const UChar* source, int32_t srcLen, | |
47 | UChar** dest, int32_t destCapacity, | |
48 | UErrorCode* status); | |
49 | ||
50 | U_CFUNC int32_t | |
51 | getAt(const UChar* source, int32_t srcLen, | |
52 | UChar** dest, int32_t destCapacity, | |
53 | int32_t index, | |
54 | UParseCommentsOption option, | |
55 | UErrorCode* status); | |
56 | ||
57 | U_CFUNC int32_t | |
58 | getCount(const UChar* source, int32_t srcLen, | |
59 | UParseCommentsOption option, UErrorCode *status); | |
60 | ||
61 | #endif /* UCONFIG_NO_REGULAR_EXPRESSIONS */ | |
62 | ||
63 | #endif | |
64 |