Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
P6R::p6IWSplit Interface Referenceabstract

#include <p6wsplit.h>

Inherits P6R::p6ICom.

Public Member Functions

virtual P6INT32 addref (void)=0
 
virtual P6R::P6ERR explode (const P6WCHAR *pDelimiter, const P6WCHAR *pString, P6UINT32 limit, p6IEnumWSplitChunks **ppEnum)=0
 
virtual P6R::P6ERR initialize (P6WSPLITFLAGS flags)=0
 
virtual P6R::P6ERR queryInterface (const P6R::P6IID &iid, P6VOID **ppIface)=0
 
virtual P6INT32 release (void)=0
 
virtual P6R::P6ERR setLocale (const P6CHAR *pLocale)=0
 
virtual P6R::P6ERR split (const P6WCHAR *pRegex, P6WREGEXMODIFIER modifiers, const P6WCHAR *pTargetStr, P6UINT32 chunkLimit, p6IEnumWSplitChunks **ppEnum)=0
 

Detailed Description

This interface provides a wide version of a simplified version of Perl's Split function.

This is used to parse an input string into chunks of text. For example, if we wanted to pull out the parts of text in between comma's in a CSV we could call split with the target string of "123,abc,*dfdf*,76" , and a regular expression of ",". The results would be a sequence off offsets and lengths: <0,3> <4,3> <8,6> <15,2> that would be accessed via the returned enumerator.

Definition at line 100 of file p6wsplit.h.


The documentation for this interface was generated from the following file: