P6R::p6IWSplit Interface Reference

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

#include <p6wsplit.h>

Inherits P6R::p6ICom.

List of all members.

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 P6WCHAR *pDelimiter, const P6WCHAR *pString, P6UINT32 limit, p6IEnumWSplitChunks **ppEnum)=0
 Similar to the PHP explode() function.
virtual P6R::P6ERR initialize (P6WSPLITFLAGS 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 setLocale (const P6CHAR *pLocale)=0
 This method allows the caller to set the locale that will be used during split and explode calls.
virtual P6R::P6ERR split (const P6WCHAR *pRegex, P6WREGEXMODIFIER modifiers, const P6WCHAR *pTargetStr, P6UINT32 chunkLimit, p6IEnumWSplitChunks **ppEnum)=0
 A wide character split parsing funtion.

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 95 of file p6wsplit.h.


The documentation for this interface was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
Copyright © 2004 - 2010 P6R Inc. - All Rights Reserved.