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 24enum UParseCommentsOption { 25 UPC_TRANSLATE, 26 UPC_NOTE, 27 UPC_LIMIT 28}; 29 30typedef enum UParseCommentsOption UParseCommentsOption; 31 32U_CFUNC int32_t 33getNote(const UChar* source, int32_t srcLen, 34 UChar** dest, int32_t destCapacity, 35 UErrorCode* status); 36U_CFUNC int32_t 37removeCmtText(UChar* source, int32_t srcLen, UErrorCode* status); 38 39U_CFUNC int32_t 40getDescription( const UChar* source, int32_t srcLen, 41 UChar** dest, int32_t destCapacity, 42 UErrorCode* status); 43U_CFUNC int32_t 44getTranslate( const UChar* source, int32_t srcLen, 45 UChar** dest, int32_t destCapacity, 46 UErrorCode* status); 47 48U_CFUNC int32_t 49getAt(const UChar* source, int32_t srcLen, 50 UChar** dest, int32_t destCapacity, 51 int32_t index, 52 UParseCommentsOption option, 53 UErrorCode* status); 54 55U_CFUNC int32_t 56getCount(const UChar* source, int32_t srcLen, 57 UParseCommentsOption option, UErrorCode *status); 58 59#endif /* UCONFIG_NO_REGULAR_EXPRESSIONS */ 60 61#endif 62 63