• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (C) 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:   US-ASCII
10 *   tab size:   8 (not used)
11 *   indentation:4
12 *
13 *   created on: 1999oct15
14 *   created by: Markus W. Scherer
15 */
16 
17 #ifndef UMISC_H
18 #define UMISC_H
19 
20 #include "unicode/utypes.h"
21 
22 /**
23  * \file
24  * \brief  C API:misc definitions
25  *
26  *  This file contains miscellaneous definitions for the C APIs.
27  */
28 
29 U_CDECL_BEGIN
30 
31 /** A struct representing a range of text containing a specific field
32  *  @stable ICU 2.0
33  */
34 typedef struct UFieldPosition {
35   /**
36    * The field
37    * @stable ICU 2.0
38    */
39   int32_t field;
40   /**
41    * The start of the text range containing field
42    * @stable ICU 2.0
43    */
44   int32_t beginIndex;
45   /**
46    * The limit of the text range containing field
47    * @stable ICU 2.0
48    */
49   int32_t endIndex;
50 } UFieldPosition;
51 
52 #if !UCONFIG_NO_SERVICE
53 /**
54  * Opaque type returned by registerInstance, registerFactory and unregister for service registration.
55  * @stable ICU 2.6
56  */
57 typedef const void* URegistryKey;
58 #endif
59 
60 U_CDECL_END
61 
62 #endif
63