• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
3 /*
4 *******************************************************************************
5 *
6 *   Copyright (C) 2005-2016, International Business Machines
7 *   Corporation and others.  All Rights Reserved.
8 *
9 *******************************************************************************
10 *   file name:  pkg_imp.h
11 *   encoding:   UTF-8
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"
25 #include "unicode/udata.h"
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  */
33 U_CFUNC const UDataInfo *
34 getDataInfo(const uint8_t *data, int32_t length,
35             int32_t &infoLength, int32_t &headerLength,
36             UErrorCode *pErrorCode);
37 
38 #endif
39