michael@0: /* michael@0: ********************************************************************** michael@0: * Copyright (C) 1999-2006, International Business Machines michael@0: * Corporation and others. All Rights Reserved. michael@0: ********************************************************************** michael@0: * file name: umisc.h michael@0: * encoding: US-ASCII michael@0: * tab size: 8 (not used) michael@0: * indentation:4 michael@0: * michael@0: * created on: 1999oct15 michael@0: * created by: Markus W. Scherer michael@0: */ michael@0: michael@0: #ifndef UMISC_H michael@0: #define UMISC_H michael@0: michael@0: #include "unicode/utypes.h" michael@0: michael@0: /** michael@0: * \file michael@0: * \brief C API:misc definitions michael@0: * michael@0: * This file contains miscellaneous definitions for the C APIs. michael@0: */ michael@0: michael@0: U_CDECL_BEGIN michael@0: michael@0: /** A struct representing a range of text containing a specific field michael@0: * @stable ICU 2.0 michael@0: */ michael@0: typedef struct UFieldPosition { michael@0: /** michael@0: * The field michael@0: * @stable ICU 2.0 michael@0: */ michael@0: int32_t field; michael@0: /** michael@0: * The start of the text range containing field michael@0: * @stable ICU 2.0 michael@0: */ michael@0: int32_t beginIndex; michael@0: /** michael@0: * The limit of the text range containing field michael@0: * @stable ICU 2.0 michael@0: */ michael@0: int32_t endIndex; michael@0: } UFieldPosition; michael@0: michael@0: #if !UCONFIG_NO_SERVICE michael@0: /** michael@0: * Opaque type returned by registerInstance, registerFactory and unregister for service registration. michael@0: * @stable ICU 2.6 michael@0: */ michael@0: typedef const void* URegistryKey; michael@0: #endif michael@0: michael@0: U_CDECL_END michael@0: michael@0: #endif