]> git.saurik.com Git - apple/icu.git/blame - icuSources/tools/genrb/prscmnts.h
ICU-57166.0.1.tar.gz
[apple/icu.git] / icuSources / tools / genrb / prscmnts.h
CommitLineData
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
26enum UParseCommentsOption {
27 UPC_TRANSLATE,
28 UPC_NOTE,
29 UPC_LIMIT
30};
31
32typedef enum UParseCommentsOption UParseCommentsOption;
33
34U_CFUNC int32_t
35getNote(const UChar* source, int32_t srcLen,
36 UChar** dest, int32_t destCapacity,
37 UErrorCode* status);
38U_CFUNC int32_t
39removeCmtText(UChar* source, int32_t srcLen, UErrorCode* status);
40
41U_CFUNC int32_t
42getDescription( const UChar* source, int32_t srcLen,
43 UChar** dest, int32_t destCapacity,
44 UErrorCode* status);
45U_CFUNC int32_t
46getTranslate( const UChar* source, int32_t srcLen,
47 UChar** dest, int32_t destCapacity,
48 UErrorCode* status);
49
50U_CFUNC int32_t
51getAt(const UChar* source, int32_t srcLen,
52 UChar** dest, int32_t destCapacity,
53 int32_t index,
54 UParseCommentsOption option,
55 UErrorCode* status);
56
57U_CFUNC int32_t
58getCount(const UChar* source, int32_t srcLen,
59 UParseCommentsOption option, UErrorCode *status);
60
61#endif /* UCONFIG_NO_REGULAR_EXPRESSIONS */
62
63#endif
64