]> git.saurik.com Git - apple/icu.git/blob - icuSources/tools/genrb/prscmnts.h
ICU-551.24.tar.gz
[apple/icu.git] / icuSources / tools / genrb / prscmnts.h
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 */
18
19 #ifndef PRSCMNTS_H
20 #define PRSCMNTS_H 1
21
22 #if UCONFIG_NO_REGULAR_EXPRESSIONS==0 /* donot compile when no RegularExpressions are available */
23
24 enum UParseCommentsOption {
25 UPC_TRANSLATE,
26 UPC_NOTE,
27 UPC_LIMIT
28 };
29
30 typedef enum UParseCommentsOption UParseCommentsOption;
31
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);
38
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);
47
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);
54
55 U_CFUNC int32_t
56 getCount(const UChar* source, int32_t srcLen,
57 UParseCommentsOption option, UErrorCode *status);
58
59 #endif /* UCONFIG_NO_REGULAR_EXPRESSIONS */
60
61 #endif
62