ICU 73.2  73.2
ufieldpositer.h
Go to the documentation of this file.
00001 // © 2016 and later: Unicode, Inc. and others.
00002 // License & terms of use: http://www.unicode.org/copyright.html
00003 /*
00004 *****************************************************************************************
00005 * Copyright (C) 2015-2016, International Business Machines
00006 * Corporation and others. All Rights Reserved.
00007 *****************************************************************************************
00008 */
00009 
00010 #ifndef UFIELDPOSITER_H
00011 #define UFIELDPOSITER_H
00012 
00013 #include "unicode/utypes.h"
00014 
00015 #if !UCONFIG_NO_FORMATTING
00016 
00017 #if U_SHOW_CPLUSPLUS_API
00018 #include "unicode/localpointer.h"
00019 #endif   // U_SHOW_CPLUSPLUS_API
00020 
00045 struct UFieldPositionIterator;
00046 typedef struct UFieldPositionIterator UFieldPositionIterator;  
00057 U_CAPI UFieldPositionIterator* U_EXPORT2
00058 ufieldpositer_open(UErrorCode* status);
00059 
00066 U_CAPI void U_EXPORT2
00067 ufieldpositer_close(UFieldPositionIterator *fpositer);
00068 
00069 
00070 #if U_SHOW_CPLUSPLUS_API
00071 
00072 U_NAMESPACE_BEGIN
00073 
00083 U_DEFINE_LOCAL_OPEN_POINTER(LocalUFieldPositionIteratorPointer, UFieldPositionIterator, ufieldpositer_close);
00084 
00085 U_NAMESPACE_END
00086 
00087 #endif
00088 
00117 U_CAPI int32_t U_EXPORT2
00118 ufieldpositer_next(UFieldPositionIterator *fpositer,
00119                    int32_t *beginIndex, int32_t *endIndex);
00120 
00121 #endif /* #if !UCONFIG_NO_FORMATTING */
00122 
00123 #endif