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