2016-06-15 18:58:17 +00:00
|
|
|
// Copyright (C) 2016 and later: Unicode, Inc. and others.
|
|
|
|
// License & terms of use: http://www.unicode.org/copyright.html
|
1999-12-28 23:39:02 +00:00
|
|
|
/*
|
|
|
|
**********************************************************************
|
2016-05-31 21:45:07 +00:00
|
|
|
* Copyright (C) 1999-2006, International Business Machines
|
|
|
|
* Corporation and others. All Rights Reserved.
|
1999-12-28 23:39:02 +00:00
|
|
|
**********************************************************************
|
|
|
|
* file name: umisc.h
|
|
|
|
* encoding: US-ASCII
|
|
|
|
* tab size: 8 (not used)
|
|
|
|
* indentation:4
|
|
|
|
*
|
|
|
|
* created on: 1999oct15
|
|
|
|
* created by: Markus W. Scherer
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef UMISC_H
|
|
|
|
#define UMISC_H
|
|
|
|
|
|
|
|
#include "unicode/utypes.h"
|
|
|
|
|
2000-12-08 18:43:57 +00:00
|
|
|
/**
|
|
|
|
* \file
|
2000-12-15 03:58:31 +00:00
|
|
|
* \brief C API:misc definitions
|
2000-12-08 18:43:57 +00:00
|
|
|
*
|
|
|
|
* This file contains miscellaneous definitions for the C APIs.
|
|
|
|
*/
|
2006-02-02 03:48:14 +00:00
|
|
|
|
|
|
|
U_CDECL_BEGIN
|
|
|
|
|
2000-03-22 18:31:40 +00:00
|
|
|
/** A struct representing a range of text containing a specific field
|
2002-12-04 23:39:56 +00:00
|
|
|
* @stable ICU 2.0
|
2000-03-22 18:31:40 +00:00
|
|
|
*/
|
2002-07-26 17:19:16 +00:00
|
|
|
typedef struct UFieldPosition {
|
2003-06-11 18:13:44 +00:00
|
|
|
/**
|
|
|
|
* The field
|
|
|
|
* @stable ICU 2.0
|
|
|
|
*/
|
1999-12-28 23:39:02 +00:00
|
|
|
int32_t field;
|
2003-06-11 18:13:44 +00:00
|
|
|
/**
|
|
|
|
* The start of the text range containing field
|
|
|
|
* @stable ICU 2.0
|
|
|
|
*/
|
1999-12-28 23:39:02 +00:00
|
|
|
int32_t beginIndex;
|
2003-06-11 18:13:44 +00:00
|
|
|
/**
|
|
|
|
* The limit of the text range containing field
|
|
|
|
* @stable ICU 2.0
|
|
|
|
*/
|
1999-12-28 23:39:02 +00:00
|
|
|
int32_t endIndex;
|
2002-07-26 17:19:16 +00:00
|
|
|
} UFieldPosition;
|
1999-12-28 23:39:02 +00:00
|
|
|
|
2006-02-02 03:48:14 +00:00
|
|
|
#if !UCONFIG_NO_SERVICE
|
|
|
|
/**
|
|
|
|
* Opaque type returned by registerInstance, registerFactory and unregister for service registration.
|
|
|
|
* @stable ICU 2.6
|
|
|
|
*/
|
|
|
|
typedef const void* URegistryKey;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
U_CDECL_END
|
|
|
|
|
1999-12-28 23:39:02 +00:00
|
|
|
#endif
|