umisc.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. // © 2016 and later: Unicode, Inc. and others.
  2. // License & terms of use: http://www.unicode.org/copyright.html
  3. /*
  4. **********************************************************************
  5. * Copyright (C) 1999-2006, International Business Machines
  6. * Corporation and others. All Rights Reserved.
  7. **********************************************************************
  8. * file name: umisc.h
  9. * encoding: UTF-8
  10. * tab size: 8 (not used)
  11. * indentation:4
  12. *
  13. * created on: 1999oct15
  14. * created by: Markus W. Scherer
  15. */
  16. #ifndef UMISC_H
  17. #define UMISC_H
  18. #include "unicode/utypes.h"
  19. /**
  20. * \file
  21. * \brief C API: Miscellaneous definitions
  22. *
  23. * This file contains miscellaneous definitions for the C APIs.
  24. */
  25. U_CDECL_BEGIN
  26. /** A struct representing a range of text containing a specific field
  27. * @stable ICU 2.0
  28. */
  29. typedef struct UFieldPosition {
  30. /**
  31. * The field
  32. * @stable ICU 2.0
  33. */
  34. int32_t field;
  35. /**
  36. * The start of the text range containing field
  37. * @stable ICU 2.0
  38. */
  39. int32_t beginIndex;
  40. /**
  41. * The limit of the text range containing field
  42. * @stable ICU 2.0
  43. */
  44. int32_t endIndex;
  45. } UFieldPosition;
  46. #if !UCONFIG_NO_SERVICE
  47. /**
  48. * Opaque type returned by registerInstance, registerFactory and unregister for service registration.
  49. * @stable ICU 2.6
  50. */
  51. typedef const void* URegistryKey;
  52. #endif
  53. U_CDECL_END
  54. #endif