|
|
Home | Loader API | Interfaces | File List | Index | |
This interface provides a narrow version of a simplified version of Perl's Split function. More...
#include <p6split.h>
Inherits P6R::p6ICom.
Public Member Functions | |
virtual P6R::P6INT32 | addref ()=0 |
This method increases the reference count of the component instance by one. | |
virtual P6R::P6ERR | explode (const P6CHAR *pDelimiter, const P6CHAR *pString, P6UINT32 limit, p6IEnumSplitChunks **ppEnum)=0 |
Similar to the PHP explode() function. | |
virtual P6R::P6ERR | initialize (P6SPLITFLAGS flags)=0 |
This function ensures that this object is in its proper initial state. | |
virtual P6R::P6ERR | queryInterface (const P6R::IID &iid, P6R::P6VOID **ppIface)=0 |
This method queries the component for a specific interface. | |
virtual P6R::P6INT32 | release ()=0 |
This method decrements a components reference count. | |
virtual P6R::P6ERR | split (const P6CHAR *pRegex, P6REGEXMODIFIER modifiers, const P6CHAR *pTargetStr, P6UINT32 chunkLimit, p6IEnumSplitChunks **ppEnum)=0 |
A narrow character split parsing funtion. |
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 96 of file p6split.h.