Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.
6791 Discussions

Ask Stewart: What are the benefits to use Intel IPP string functions

ippfan2000
Beginner
445 Views
Stewart,
I noticed that Intel IPP started offering newfunctions on characters strings in version 4.0, what are the differences or benefits to use Intel IPP string functions comparing to other string implementations: the C functions in "string.h", the C++ standard template library class "string" and the MFC class "CString"?

By the way, do you provide any samples to demonstrate the Intel IPP string functions in your book?

Thanks,
ippfan
0 Kudos
1 Reply
Stewart_T_Intel
Employee
445 Views

The idea underlying the string functions is similar to the idea underlying the rest of the library, whichto provide low-level optimized functions that ahigher-level library or API be able to make use of. While it is possible to use the IPP string functions directly it is probably more convenient to wrap them in a string or text processing class to hide the complexity, and even the use, of the IPP function calls.

In the book, I tried to demonstrate this intended use ofthe functions bywriting and includinga thin layer that mimicks the C, STL, and MFC. So the book lists implementations of several C stdlib functions (such as strcpy, strcmp, strchr), STL functions (such as string::find, string::find_first_of, string::compare), and MFC functions (actually, just CString::Replace, but that's a long one). Each uses the IPP string functions (ippsFind, ippsCompare, ippsRemove) to do the bulk of the work.

Stewart

0 Kudos
Reply