11cb0ef41Sopenharmony_ci// © 2016 and later: Unicode, Inc. and others.
21cb0ef41Sopenharmony_ci// License & terms of use: http://www.unicode.org/copyright.html
31cb0ef41Sopenharmony_ci/*
41cb0ef41Sopenharmony_ci*******************************************************************************
51cb0ef41Sopenharmony_ci*
61cb0ef41Sopenharmony_ci*   Copyright (C) 1998-2016, International Business Machines
71cb0ef41Sopenharmony_ci*   Corporation and others.  All Rights Reserved.
81cb0ef41Sopenharmony_ci*
91cb0ef41Sopenharmony_ci*******************************************************************************
101cb0ef41Sopenharmony_ci*
111cb0ef41Sopenharmony_ci* File read.h
121cb0ef41Sopenharmony_ci*
131cb0ef41Sopenharmony_ci* Modification History:
141cb0ef41Sopenharmony_ci*
151cb0ef41Sopenharmony_ci*   Date        Name        Description
161cb0ef41Sopenharmony_ci*   05/26/99    stephen     Creation.
171cb0ef41Sopenharmony_ci*   5/10/01     Ram         removed ustdio dependency
181cb0ef41Sopenharmony_ci*******************************************************************************
191cb0ef41Sopenharmony_ci*/
201cb0ef41Sopenharmony_ci
211cb0ef41Sopenharmony_ci#ifndef PRSCMNTS_H
221cb0ef41Sopenharmony_ci#define PRSCMNTS_H 1
231cb0ef41Sopenharmony_ci
241cb0ef41Sopenharmony_ci#include "unicode/utypes.h"
251cb0ef41Sopenharmony_ci
261cb0ef41Sopenharmony_ci#if UCONFIG_NO_REGULAR_EXPRESSIONS==0 /* donot compile when no RegularExpressions are available */
271cb0ef41Sopenharmony_ci
281cb0ef41Sopenharmony_cienum UParseCommentsOption {
291cb0ef41Sopenharmony_ci    UPC_TRANSLATE,
301cb0ef41Sopenharmony_ci    UPC_NOTE,
311cb0ef41Sopenharmony_ci    UPC_LIMIT
321cb0ef41Sopenharmony_ci};
331cb0ef41Sopenharmony_ci
341cb0ef41Sopenharmony_citypedef enum UParseCommentsOption UParseCommentsOption;
351cb0ef41Sopenharmony_ci
361cb0ef41Sopenharmony_ciU_CFUNC int32_t
371cb0ef41Sopenharmony_cigetNote(const UChar* source, int32_t srcLen,
381cb0ef41Sopenharmony_ci        UChar** dest, int32_t destCapacity,
391cb0ef41Sopenharmony_ci        UErrorCode* status);
401cb0ef41Sopenharmony_ciU_CFUNC int32_t
411cb0ef41Sopenharmony_ciremoveCmtText(UChar* source, int32_t srcLen, UErrorCode* status);
421cb0ef41Sopenharmony_ci
431cb0ef41Sopenharmony_ciU_CFUNC int32_t
441cb0ef41Sopenharmony_cigetDescription( const UChar* source, int32_t srcLen,
451cb0ef41Sopenharmony_ci                UChar** dest, int32_t destCapacity,
461cb0ef41Sopenharmony_ci                UErrorCode* status);
471cb0ef41Sopenharmony_ciU_CFUNC int32_t
481cb0ef41Sopenharmony_cigetTranslate( const UChar* source, int32_t srcLen,
491cb0ef41Sopenharmony_ci              UChar** dest, int32_t destCapacity,
501cb0ef41Sopenharmony_ci              UErrorCode* status);
511cb0ef41Sopenharmony_ci
521cb0ef41Sopenharmony_ciU_CFUNC int32_t
531cb0ef41Sopenharmony_cigetAt(const UChar* source, int32_t srcLen,
541cb0ef41Sopenharmony_ci        UChar** dest, int32_t destCapacity,
551cb0ef41Sopenharmony_ci        int32_t index,
561cb0ef41Sopenharmony_ci        UParseCommentsOption option,
571cb0ef41Sopenharmony_ci        UErrorCode* status);
581cb0ef41Sopenharmony_ci
591cb0ef41Sopenharmony_ciU_CFUNC int32_t
601cb0ef41Sopenharmony_cigetCount(const UChar* source, int32_t srcLen,
611cb0ef41Sopenharmony_ci         UParseCommentsOption option, UErrorCode *status);
621cb0ef41Sopenharmony_ci
631cb0ef41Sopenharmony_ci#endif /* UCONFIG_NO_REGULAR_EXPRESSIONS */
641cb0ef41Sopenharmony_ci
651cb0ef41Sopenharmony_ci#endif
661cb0ef41Sopenharmony_ci
67