]> git.saurik.com Git - apple/icu.git/blame_incremental - icuSources/tools/genrb/prscmnts.h
ICU-66108.tar.gz
[apple/icu.git] / icuSources / tools / genrb / prscmnts.h
... / ...
CommitLineData
1// © 2016 and later: Unicode, Inc. and others.
2// License & terms of use: http://www.unicode.org/copyright.html
3/*
4*******************************************************************************
5*
6* Copyright (C) 1998-2016, International Business Machines
7* Corporation and others. All Rights Reserved.
8*
9*******************************************************************************
10*
11* File read.h
12*
13* Modification History:
14*
15* Date Name Description
16* 05/26/99 stephen Creation.
17* 5/10/01 Ram removed ustdio dependency
18*******************************************************************************
19*/
20
21#ifndef PRSCMNTS_H
22#define PRSCMNTS_H 1
23
24#include "unicode/utypes.h"
25
26#if UCONFIG_NO_REGULAR_EXPRESSIONS==0 /* donot compile when no RegularExpressions are available */
27
28enum UParseCommentsOption {
29 UPC_TRANSLATE,
30 UPC_NOTE,
31 UPC_LIMIT
32};
33
34typedef enum UParseCommentsOption UParseCommentsOption;
35
36U_CFUNC int32_t
37getNote(const UChar* source, int32_t srcLen,
38 UChar** dest, int32_t destCapacity,
39 UErrorCode* status);
40U_CFUNC int32_t
41removeCmtText(UChar* source, int32_t srcLen, UErrorCode* status);
42
43U_CFUNC int32_t
44getDescription( const UChar* source, int32_t srcLen,
45 UChar** dest, int32_t destCapacity,
46 UErrorCode* status);
47U_CFUNC int32_t
48getTranslate( const UChar* source, int32_t srcLen,
49 UChar** dest, int32_t destCapacity,
50 UErrorCode* status);
51
52U_CFUNC int32_t
53getAt(const UChar* source, int32_t srcLen,
54 UChar** dest, int32_t destCapacity,
55 int32_t index,
56 UParseCommentsOption option,
57 UErrorCode* status);
58
59U_CFUNC int32_t
60getCount(const UChar* source, int32_t srcLen,
61 UParseCommentsOption option, UErrorCode *status);
62
63#endif /* UCONFIG_NO_REGULAR_EXPRESSIONS */
64
65#endif
66