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