Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* |
michael@0 | 2 | ******************************************************************************* |
michael@0 | 3 | * |
michael@0 | 4 | * Copyright (C) 1998-2003, International Business Machines |
michael@0 | 5 | * Corporation and others. All Rights Reserved. |
michael@0 | 6 | * |
michael@0 | 7 | ******************************************************************************* |
michael@0 | 8 | * |
michael@0 | 9 | * File read.h |
michael@0 | 10 | * |
michael@0 | 11 | * Modification History: |
michael@0 | 12 | * |
michael@0 | 13 | * Date Name Description |
michael@0 | 14 | * 05/26/99 stephen Creation. |
michael@0 | 15 | * 5/10/01 Ram removed ustdio dependency |
michael@0 | 16 | ******************************************************************************* |
michael@0 | 17 | */ |
michael@0 | 18 | |
michael@0 | 19 | #ifndef PRSCMNTS_H |
michael@0 | 20 | #define PRSCMNTS_H 1 |
michael@0 | 21 | |
michael@0 | 22 | #if UCONFIG_NO_REGULAR_EXPRESSIONS==0 /* donot compile when no RegularExpressions are available */ |
michael@0 | 23 | |
michael@0 | 24 | enum UParseCommentsOption { |
michael@0 | 25 | UPC_TRANSLATE, |
michael@0 | 26 | UPC_NOTE, |
michael@0 | 27 | UPC_LIMIT |
michael@0 | 28 | }; |
michael@0 | 29 | |
michael@0 | 30 | typedef enum UParseCommentsOption UParseCommentsOption; |
michael@0 | 31 | |
michael@0 | 32 | U_CFUNC int32_t |
michael@0 | 33 | getNote(const UChar* source, int32_t srcLen, |
michael@0 | 34 | UChar** dest, int32_t destCapacity, |
michael@0 | 35 | UErrorCode* status); |
michael@0 | 36 | U_CFUNC int32_t |
michael@0 | 37 | removeCmtText(UChar* source, int32_t srcLen, UErrorCode* status); |
michael@0 | 38 | |
michael@0 | 39 | U_CFUNC int32_t |
michael@0 | 40 | getDescription( const UChar* source, int32_t srcLen, |
michael@0 | 41 | UChar** dest, int32_t destCapacity, |
michael@0 | 42 | UErrorCode* status); |
michael@0 | 43 | U_CFUNC int32_t |
michael@0 | 44 | getTranslate( const UChar* source, int32_t srcLen, |
michael@0 | 45 | UChar** dest, int32_t destCapacity, |
michael@0 | 46 | UErrorCode* status); |
michael@0 | 47 | |
michael@0 | 48 | U_CFUNC int32_t |
michael@0 | 49 | getAt(const UChar* source, int32_t srcLen, |
michael@0 | 50 | UChar** dest, int32_t destCapacity, |
michael@0 | 51 | int32_t index, |
michael@0 | 52 | UParseCommentsOption option, |
michael@0 | 53 | UErrorCode* status); |
michael@0 | 54 | |
michael@0 | 55 | U_CFUNC int32_t |
michael@0 | 56 | getCount(const UChar* source, int32_t srcLen, |
michael@0 | 57 | UParseCommentsOption option, UErrorCode *status); |
michael@0 | 58 | |
michael@0 | 59 | #endif /* UCONFIG_NO_REGULAR_EXPRESSIONS */ |
michael@0 | 60 | |
michael@0 | 61 | #endif |
michael@0 | 62 |