]> git.saurik.com Git - apple/icu.git/blame - icuSources/tools/toolutil/pkg_imp.h
ICU-62107.0.1.tar.gz
[apple/icu.git] / icuSources / tools / toolutil / pkg_imp.h
CommitLineData
f3c0d7a5
A
1// © 2016 and later: Unicode, Inc. and others.
2// License & terms of use: http://www.unicode.org/copyright.html
73c04bcf
A
3/*
4*******************************************************************************
5*
2ca993e8 6* Copyright (C) 2005-2016, International Business Machines
73c04bcf
A
7* Corporation and others. All Rights Reserved.
8*
9*******************************************************************************
10* file name: pkg_imp.h
f3c0d7a5 11* encoding: UTF-8
73c04bcf
A
12* tab size: 8 (not used)
13* indentation:4
14*
15* created on: 2005sep18
16* created by: Markus W. Scherer
17*
18* Implementation definitions for data package functions in toolutil.
19*/
20
21#ifndef __PKG_IMP_H__
22#define __PKG_IMP_H__
23
24#include "unicode/utypes.h"
2ca993e8 25#include "unicode/udata.h"
73c04bcf
A
26
27/*
28 * Read an ICU data item with any platform type,
29 * return the pointer to the UDataInfo in its header,
30 * and set the lengths of the UDataInfo and of the whole header.
31 * All data remains in its platform type.
32 */
33U_CFUNC const UDataInfo *
34getDataInfo(const uint8_t *data, int32_t length,
35 int32_t &infoLength, int32_t &headerLength,
36 UErrorCode *pErrorCode);
37
38#endif