tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

prscmnts.h (1856B)


      1 // © 2016 and later: Unicode, Inc. and others.
      2 // License & terms of use: http://www.unicode.org/copyright.html
      3 /*
      4 *******************************************************************************
      5 *
      6 *   Copyright (C) 1998-2016, International Business Machines
      7 *   Corporation and others.  All Rights Reserved.
      8 *
      9 *******************************************************************************
     10 *
     11 * File read.h
     12 *
     13 * Modification History:
     14 *
     15 *   Date        Name        Description
     16 *   05/26/99    stephen     Creation.
     17 *   5/10/01     Ram         removed ustdio dependency
     18 *******************************************************************************
     19 */
     20 
     21 #ifndef PRSCMNTS_H
     22 #define PRSCMNTS_H 1
     23 
     24 #include "unicode/utypes.h"
     25 
     26 #if UCONFIG_NO_REGULAR_EXPRESSIONS==0 /* donot compile when no RegularExpressions are available */
     27 
     28 enum UParseCommentsOption {
     29    UPC_TRANSLATE,
     30    UPC_NOTE,
     31    UPC_LIMIT
     32 };
     33 
     34 typedef enum UParseCommentsOption UParseCommentsOption;
     35 
     36 U_CFUNC int32_t 
     37 getNote(const UChar* source, int32_t srcLen,
     38        UChar** dest, int32_t destCapacity,
     39        UErrorCode* status);
     40 U_CFUNC int32_t 
     41 removeCmtText(UChar* source, int32_t srcLen, UErrorCode* status);
     42 
     43 U_CFUNC int32_t
     44 getDescription( const UChar* source, int32_t srcLen,
     45                UChar** dest, int32_t destCapacity,
     46                UErrorCode* status);
     47 U_CFUNC int32_t
     48 getTranslate( const UChar* source, int32_t srcLen,
     49              UChar** dest, int32_t destCapacity,
     50              UErrorCode* status);
     51 
     52 U_CFUNC int32_t
     53 getAt(const UChar* source, int32_t srcLen,
     54        UChar** dest, int32_t destCapacity,
     55        int32_t index,
     56        UParseCommentsOption option,
     57        UErrorCode* status);
     58 
     59 U_CFUNC int32_t
     60 getCount(const UChar* source, int32_t srcLen, 
     61         UParseCommentsOption option, UErrorCode *status);
     62 
     63 #endif /* UCONFIG_NO_REGULAR_EXPRESSIONS */
     64 
     65 #endif