prscmnts.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. #ifndef PRSCMNTS_H
  21. #define PRSCMNTS_H 1
  22. #include "unicode/utypes.h"
  23. #if UCONFIG_NO_REGULAR_EXPRESSIONS==0 /* donot compile when no RegularExpressions are available */
  24. enum UParseCommentsOption {
  25. UPC_TRANSLATE,
  26. UPC_NOTE,
  27. UPC_LIMIT
  28. };
  29. typedef enum UParseCommentsOption UParseCommentsOption;
  30. U_CFUNC int32_t
  31. getNote(const UChar* source, int32_t srcLen,
  32. UChar** dest, int32_t destCapacity,
  33. UErrorCode* status);
  34. U_CFUNC int32_t
  35. removeCmtText(UChar* source, int32_t srcLen, UErrorCode* status);
  36. U_CFUNC int32_t
  37. getDescription( const UChar* source, int32_t srcLen,
  38. UChar** dest, int32_t destCapacity,
  39. UErrorCode* status);
  40. U_CFUNC int32_t
  41. getTranslate( const UChar* source, int32_t srcLen,
  42. UChar** dest, int32_t destCapacity,
  43. UErrorCode* status);
  44. U_CFUNC int32_t
  45. getAt(const UChar* source, int32_t srcLen,
  46. UChar** dest, int32_t destCapacity,
  47. int32_t index,
  48. UParseCommentsOption option,
  49. UErrorCode* status);
  50. U_CFUNC int32_t
  51. getCount(const UChar* source, int32_t srcLen,
  52. UParseCommentsOption option, UErrorCode *status);
  53. #endif /* UCONFIG_NO_REGULAR_EXPRESSIONS */
  54. #endif