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

#include <p6split.h>

Inherits P6R::p6ICom.

Public Member Functions

virtual P6INT32 addref (void)=0
 
virtual P6R::P6ERR explode (const P6CHAR *pDelimiter, const P6CHAR *pString, P6UINT32 limit, p6IEnumSplitChunks **ppEnum)=0
 
virtual P6R::P6ERR initialize (P6SPLITFLAGS flags)=0
 
virtual P6R::P6ERR queryInterface (const P6R::P6IID &iid, P6VOID **ppIface)=0
 
virtual P6INT32 release (void)=0
 
virtual P6R::P6ERR split (const P6CHAR *pRegex, P6REGEXMODIFIER modifiers, const P6CHAR *pTargetStr, P6UINT32 chunkLimit, p6IEnumSplitChunks **ppEnum)=0
 

Detailed Description

This interface provides a narrow 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 wsplit 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 101 of file p6split.h.


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