intl/icu/source/tools/toolutil/swapimpl.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/intl/icu/source/tools/toolutil/swapimpl.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,43 @@
     1.4 +/*
     1.5 +*******************************************************************************
     1.6 +*
     1.7 +*   Copyright (C) 2005, International Business Machines
     1.8 +*   Corporation and others.  All Rights Reserved.
     1.9 +*
    1.10 +*******************************************************************************
    1.11 +*   file name:  swapimpl.h
    1.12 +*   encoding:   US-ASCII
    1.13 +*   tab size:   8 (not used)
    1.14 +*   indentation:4
    1.15 +*
    1.16 +*   created on: 2005jul29
    1.17 +*   created by: Markus W. Scherer
    1.18 +*
    1.19 +*   Declarations for data file swapping functions not declared in internal
    1.20 +*   library headers.
    1.21 +*/
    1.22 +
    1.23 +#ifndef __SWAPIMPL_H__
    1.24 +#define __SWAPIMPL_H__
    1.25 +
    1.26 +#include "unicode/utypes.h"
    1.27 +#include "udataswp.h"
    1.28 +
    1.29 +/**
    1.30 + * Identifies and then transforms the ICU data piece in-place, or determines
    1.31 + * its length. See UDataSwapFn.
    1.32 + * This function handles single data pieces (but not .dat data packages)
    1.33 + * and internally dispatches to per-type swap functions.
    1.34 + * Sets a U_UNSUPPORTED_ERROR if the data format is not recognized.
    1.35 + *
    1.36 + * @see UDataSwapFn
    1.37 + * @see udata_openSwapper
    1.38 + * @see udata_openSwapperForInputData
    1.39 + * @internal ICU 2.8
    1.40 + */
    1.41 +U_CAPI int32_t U_EXPORT2
    1.42 +udata_swap(const UDataSwapper *ds,
    1.43 +           const void *inData, int32_t length, void *outData,
    1.44 +           UErrorCode *pErrorCode);
    1.45 +
    1.46 +#endif

mercurial