gensprep.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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) 1999-2006, International Business Machines
  7. * Corporation and others. All Rights Reserved.
  8. *
  9. *******************************************************************************
  10. * file name: gensprep.h
  11. * encoding: UTF-8
  12. * tab size: 8 (not used)
  13. * indentation:4
  14. *
  15. * created on: 2003-02-06
  16. * created by: Ram Viswanadha
  17. */
  18. #ifndef __GENIDN_H__
  19. #define __GENIDN_H__
  20. #include "unicode/utypes.h"
  21. #include "sprpimpl.h"
  22. /* file definitions */
  23. #define DATA_NAME "sprep"
  24. #define DATA_TYPE "spp"
  25. /*
  26. * data structure that holds the IDN properties for one or more
  27. * code point(s) at build time
  28. */
  29. /* global flags */
  30. extern UBool beVerbose, haveCopyright;
  31. /* prototypes */
  32. extern void
  33. setUnicodeVersion(const char *v);
  34. extern void
  35. setUnicodeVersionNC(UVersionInfo version);
  36. extern void
  37. init(void);
  38. #if !UCONFIG_NO_IDNA
  39. extern void
  40. storeMapping(uint32_t codepoint, uint32_t* mapping,int32_t length, UStringPrepType type, UErrorCode* status);
  41. extern void
  42. storeRange(uint32_t start, uint32_t end, UStringPrepType type,UErrorCode* status);
  43. #endif
  44. extern void
  45. generateData(const char *dataDir, const char* bundleName);
  46. extern void
  47. setOptions(int32_t options);
  48. extern void
  49. cleanUpData(void);
  50. /*
  51. extern void
  52. storeIDN(uint32_t code, IDN *idn);
  53. extern void
  54. processData(void);
  55. */
  56. #endif
  57. /*
  58. * Hey, Emacs, please set the following:
  59. *
  60. * Local Variables:
  61. * indent-tabs-mode: nil
  62. * End:
  63. *
  64. */