ConvertUTF

Converts the UTF16BE or UTF16LE format to UTF8 and vice versa.

Syntax

IppStatus ippsConvertUTF_8u16u(const Ipp8u* pSrc, Ipp32u* pSrcLen, Ipp16u* pDst, Ipp32u* pDstLen, int BEFlag);

IppStatus ippsConvertUTF_16u8u(const Ipp16u* pSrc, Ipp32u* pSrcLen, Ipp8u* pDst, Ipp32u* pDstLen, int BEFlag);

Parameters

pSrc

Pointer to the source vector.

pSrcLen

Length of the pSrc vector on input; its used length on output.

pDst

Pointer to the destination vector.

pDstLen

Length of the pDst vector on input; its used length on output.

BEFlag

Flag to indicate the UTF16BE format. 0 means the UTF16LE format.

Description

The function ippsConvertUTF is declared in the ippch.h file. The function flavor ippsConvertUTF_8u16u converts the UTF8 format to the UTF16LE or UTF16BE format. The function flavor ippsConvertUTF_16u8u converts UTF16LE or UTF16BE format to the UTF8 format.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error condition if one of the specified pointers is NULL.

Submit feedback on this help topic

Copyright © 2000 - 2010, Intel Corporation. All rights reserved.