2003-08-26 02:36:57 +00:00
|
|
|
/*
|
|
|
|
*******************************************************************************
|
|
|
|
*
|
2003-12-23 19:23:42 +00:00
|
|
|
* Copyright (C) 1998-2003, International Business Machines
|
2003-08-26 02:36:57 +00:00
|
|
|
* Corporation and others. All Rights Reserved.
|
|
|
|
*
|
|
|
|
*******************************************************************************
|
|
|
|
*
|
|
|
|
* File read.h
|
|
|
|
*
|
|
|
|
* Modification History:
|
|
|
|
*
|
|
|
|
* Date Name Description
|
|
|
|
* 05/26/99 stephen Creation.
|
|
|
|
* 5/10/01 Ram removed ustdio dependency
|
|
|
|
*******************************************************************************
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PRSCMNTS_H
|
|
|
|
#define PRSCMNTS_H 1
|
|
|
|
|
2003-12-09 20:07:47 +00:00
|
|
|
#if UCONFIG_NO_REGULAR_EXPRESSIONS==0 /* donot compile when no RegularExpressions are available */
|
|
|
|
|
2003-09-10 01:05:44 +00:00
|
|
|
enum UParseCommentsOption {
|
|
|
|
UPC_TRANSLATE,
|
|
|
|
UPC_NOTE,
|
2003-09-10 22:16:19 +00:00
|
|
|
UPC_LIMIT
|
2003-09-10 01:05:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef enum UParseCommentsOption UParseCommentsOption;
|
|
|
|
|
2003-08-26 02:36:57 +00:00
|
|
|
U_CFUNC int32_t
|
|
|
|
getNote(const UChar* source, int32_t srcLen,
|
|
|
|
UChar** dest, int32_t destCapacity,
|
|
|
|
UErrorCode* status);
|
|
|
|
U_CFUNC int32_t
|
|
|
|
removeCmtText(UChar* source, int32_t srcLen, UErrorCode* status);
|
|
|
|
|
|
|
|
U_CFUNC int32_t
|
|
|
|
getDescription( const UChar* source, int32_t srcLen,
|
|
|
|
UChar** dest, int32_t destCapacity,
|
|
|
|
UErrorCode* status);
|
|
|
|
U_CFUNC int32_t
|
|
|
|
getTranslate( const UChar* source, int32_t srcLen,
|
|
|
|
UChar** dest, int32_t destCapacity,
|
|
|
|
UErrorCode* status);
|
|
|
|
|
2003-09-10 01:05:44 +00:00
|
|
|
U_CFUNC int32_t
|
|
|
|
getAt(const UChar* source, int32_t srcLen,
|
|
|
|
UChar** dest, int32_t destCapacity,
|
|
|
|
int32_t index,
|
|
|
|
UParseCommentsOption option,
|
|
|
|
UErrorCode* status);
|
|
|
|
|
|
|
|
U_CFUNC int32_t
|
|
|
|
getCount(const UChar* source, int32_t srcLen,
|
|
|
|
UParseCommentsOption option, UErrorCode *status);
|
2003-12-09 20:07:47 +00:00
|
|
|
|
|
|
|
#endif /* UCONFIG_NO_REGULAR_EXPRESSIONS */
|
|
|
|
|
2003-08-26 02:36:57 +00:00
|
|
|
#endif
|
|
|
|
|