Lowercase, LowercaseLatin

Converts alphabetic characters of a string to all lowercase symbols.

Syntax

IppStatus ippsLowercase_16u(const Ipp16u* pSrc, Ipp16u* pDst, int len);

IppStatus ippsLowercase_16u_I(Ipp16u* pSrcDst, int len);

IppStatus ippsLowercaseLatin_8u(const Ipp8u* pSrc, Ipp8u* pDst, int len);

IppStatus ippsLowercaseLatin_16u(const Ipp16u* pSrc, Ipp16u* pDst, int len);

IppStatus ippsLowercaseLatin_8u_I(Ipp8u* pSrcDst, int len);

IppStatus ippsLowercaseLatin_16u_I(Ipp16u* pSrcDst, int len);

Parameters

pSrc

Pointer to the source string.

pDst

Pointer to the destination string.

pSrcDst

Pointer to the source and destination string for the in-place operation.

len

Number of elements in the string.

Description

The functions ippsLowercase and ippsLowercaseLatin are declared in the ippch.h file. These functions convert each alphabetic character of the source string pSrc to lower case and store the result in pDst.

The in-place flavors of these functions convert each alphabetic character of the source string pSrcDst to lower case and store the result in pSrcDst.

The function ippsLowercase operates with Unicode characters. The function ippsLowercaseLatin operates with ASCII characters.

Example below shows how to use the function ippsLowercaseLatin_8u_I.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

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

ippStsLengthErr

Indicates an error condition if len is negative.

Using the functions ippsUppercaseLatin and ippsLowercaseLatin

 Ipp8u string[] = "These Functions Vary the Case!";
 ippsLowercaseLatin_8u_I( string, sizeof (string) - 1 );
 printf ( "Lower: %s\n", (char*)string );
 ippsUppercaseLatin_8u_I( string, sizeof (string) - 1 );
 printf ( "Upper: %s\n", (char*)string );
Output:
 Lower: these functions vary the case!
 Upper: THESE FUNCTIONS VARY THE CASE!

Submit feedback on this help topic

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