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

#include <p6runtimeif.h>

Inherits P6R::p6ICom.

Public Member Functions

virtual P6INT32 addref (void)=0
 
virtual P6R::P6ERR atol (const P6CHAR *pString, P6SIZE cchMax, P6INT32 *pRetLong)=0
 
virtual P6R::P6ERR atolEx (const P6CHAR *pString, P6SIZE cchMax, P6INT32 *pRetLong, P6CHAR **ppEndPtr)=0
 
virtual P6R::P6ERR atoll (const P6CHAR *pString, P6SIZE cchMax, P6INT64 *pRetLongLong)=0
 
virtual P6R::P6ERR atollEx (const P6CHAR *pString, P6SIZE cchMax, P6INT64 *pRetLongLong, P6CHAR **ppEndPtr)=0
 
virtual P6R::P6ERR atolW (const P6WCHAR *pString, P6SIZE cchMax, P6INT32 *pRetLong)=0
 
virtual P6R::P6ERR bstrbstr (const P6BCSTR *pbcsSearchIn, P6BCSTR const *pbcsSearchFor, P6BCSTR *pbcsFound)=0
 
virtual P6R::P6ERR bstrchr (const P6BCSTR *pbcsStr, P6INT16 c, P6BCSTR *pRetPtr)=0
 
virtual P6R::P6ERR bstrcmp (const P6BCSTR *s1, const P6BCSTR *s2, P6INT32 *pRetval)=0
 
virtual P6R::P6ERR bstribstr (const P6BCSTR *pbcsSearchIn, P6BCSTR const *pbcsSearchFor, P6BCSTR *pbcsFound)=0
 
virtual P6R::P6ERR bstricmp (const P6BCSTR *s1, const P6BCSTR *s2, P6INT32 *pRetval)=0
 
virtual P6R::P6ERR bstrlwr (P6BSTR *pbsStr)=0
 
virtual P6R::P6ERR bstrncmp (const P6BCSTR *s1, const P6BCSTR *s2, P6SIZE nCount, P6INT32 *pRetval)=0
 
virtual P6R::P6ERR bstrnicmp (const P6BCSTR *s1, const P6BCSTR *s2, P6SIZE nCount, P6INT32 *pRetval)=0
 
virtual P6R::P6ERR bstrrchr (const P6BCSTR *pbcsStr, P6INT16 c, P6BCSTR *pRetPtr)=0
 
virtual P6R::P6ERR bstrsep (P6BCSTR *pbcsSearchIn, const P6BCSTR *pbsDelimiters, P6BCSTR *pbcsToken)=0
 
virtual P6R::P6ERR bstrSetMem (P6BSTR *pMemory, P6INT nValue)=0
 
virtual P6R::P6ERR bstrSetMemSecure (P6BSTR *pMemory, P6INT nValue)=0
 
virtual P6R::P6ERR bstrspn (P6BCSTR *pbcsSearchIn, const P6BCSTR *pbcsSearchSet, P6BCSTR *pbcsFound)=0
 
virtual P6R::P6ERR bstrsubcmp (const P6BCSTR *s1, const P6BCSTR *s2, P6INT32 *pRetval)=0
 
virtual P6R::P6ERR bstrsubicmp (const P6BCSTR *s1, const P6BCSTR *s2, P6INT32 *pRetval)=0
 
virtual P6R::P6ERR bstrupr (P6BSTR *pbsStr)=0
 
virtual P6R::P6ERR bwstrchr (const P6BWCSTR *pbcsStr, P6INT16 c, P6BWCSTR *pRetPtr)=0
 
virtual P6R::P6ERR bwstrcmp (const P6BWCSTR *s1, const P6BWCSTR *s2, P6INT32 *pRetval)=0
 
virtual P6R::P6ERR bwstricmp (const P6BWCSTR *s1, const P6BWCSTR *s2, P6INT32 *pRetval)=0
 
virtual P6R::P6ERR bwstrlcpy (P6WCHAR *pszDest, P6SIZE cDest, const P6BWCSTR *pSource)=0
 
virtual P6R::P6ERR bwstrlwr (P6BWSTR *pbsStr)=0
 
virtual P6R::P6ERR bwstrncmp (const P6BWCSTR *s1, const P6BWCSTR *s2, P6SIZE nCount, P6INT32 *pRetval)=0
 
virtual P6R::P6ERR bwstrnicmp (const P6BWCSTR *s1, const P6BWCSTR *s2, P6SIZE nCount, P6INT32 *pRetval)=0
 
virtual P6R::P6ERR bwstrrchr (const P6BWCSTR *pbcsStr, P6INT16 c, P6BWCSTR *pRetPtr)=0
 
virtual P6R::P6ERR bwstrsep (P6BWCSTR *pbcsSearchIn, const P6BWCSTR *pbsDelimiters, P6BWCSTR *pbcsToken)=0
 
virtual P6R::P6ERR bwstrsubcmp (const P6BWCSTR *s1, const P6BWCSTR *s2, P6INT32 *pRetval)=0
 
virtual P6R::P6ERR bwstrsubicmp (const P6BWCSTR *s1, const P6BWCSTR *s2, P6INT32 *pRetval)=0
 
virtual P6R::P6ERR compareMem (const P6VOID *pMem1, const P6VOID *pMem2, P6SIZE nBytes, P6INT32 *pResult)=0
 
virtual P6R::P6ERR copyMem (P6VOID *pDest, P6SIZE cDest, const P6VOID *pSource, P6SIZE nBytes)=0
 
virtual P6R::P6ERR copyMemSecure (P6VOID *pDest, P6SIZE cDest, const P6VOID *pSource, P6SIZE nBytes)=0
 
virtual P6R::P6ERR floatToString (P6FLOAT value, P6CHAR *pBuffer, P6SIZE cBuffer, P6SIZE *pcWritten)=0
 
virtual P6R::P6ERR floatToStringW (P6FLOAT value, P6WCHAR *pBuffer, P6SIZE cBuffer, P6SIZE *pcWritten)=0
 
virtual P6R::P6ERR formatString (P6CHAR *pBuffer, P6SIZE cBuffer, P6SIZE *pcWritten, const P6CHAR *pszFormat, const P6ARG *pArgs, P6SIZE cArgs)=0
 
virtual P6R::P6ERR formatStringW (P6WCHAR *pBuffer, P6SIZE cBuffer, P6SIZE *pcWritten, const P6WCHAR *pszFormat, const P6ARG *pArgs, P6SIZE cArgs)=0
 
virtual P6R::P6ERR hexDump (const P6VOID *pData, P6SIZE cData, P6CHAR *pBuffer, P6SIZE cBuffer, P6SIZE cBytesPerLine, P6SIZE *pcWritten)=0
 
virtual P6R::P6ERR hexDumpW (const P6VOID *pData, P6SIZE cData, P6WCHAR *pBuffer, P6SIZE cBuffer, P6SIZE cBytesPerLine, P6SIZE *pcWritten)=0
 
virtual P6R::P6ERR int16ToString (P6INT16 value, P6CHAR *pBuffer, P6SIZE cBuffer, P6UINT32 radix, P6SIZE *pcWritten)=0
 
virtual P6R::P6ERR int16ToStringW (P6INT16 value, P6WCHAR *pBuffer, P6SIZE cBuffer, P6UINT32 radix, P6SIZE *pcWritten)=0
 
virtual P6R::P6ERR int32ToString (P6INT32 value, P6CHAR *pBuffer, P6SIZE cBuffer, P6UINT32 radix, P6SIZE *pcWritten)=0
 
virtual P6R::P6ERR int32ToStringW (P6INT32 value, P6WCHAR *pBuffer, P6SIZE cBuffer, P6UINT32 radix, P6SIZE *pcWritten)=0
 
virtual P6R::P6ERR int64ToString (P6INT64 value, P6CHAR *pBuffer, P6SIZE cBuffer, P6UINT32 radix, P6SIZE *pcWritten)=0
 
virtual P6R::P6ERR int64ToStringW (P6INT64 value, P6WCHAR *pBuffer, P6SIZE cBuffer, P6UINT32 radix, P6SIZE *pcWritten)=0
 
virtual P6R::P6ERR moveMem (P6VOID *pDest, P6SIZE cDest, const P6VOID *pSource, P6SIZE nBytes)=0
 
virtual P6R::P6ERR moveMemSecure (P6VOID *pDest, P6SIZE cDest, const P6VOID *pSource, P6SIZE nBytes)=0
 
virtual P6R::P6ERR queryInterface (const P6R::P6IID &iid, P6VOID **ppIface)=0
 
virtual P6INT32 release (void)=0
 
virtual P6R::P6ERR replace (P6CHAR *pString, P6CHAR chOrig, const P6CHAR chReplacement, P6SIZE cchMax)=0
 
virtual P6R::P6ERR reverseString (P6CHAR *pBuffer, P6SIZE cStart, P6SIZE cEnd)=0
 
virtual P6R::P6ERR reverseStringW (P6WCHAR *pBuffer, P6SIZE cStart, P6SIZE cEnd)=0
 
virtual P6R::P6ERR setMem (P6VOID *pMemory, P6INT nValue, P6SIZE nBytes)=0
 
virtual P6R::P6ERR setMemSecure (P6VOID *pMemory, P6INT nValue, P6SIZE nBytes)=0
 
virtual P6R::P6ERR sizetToString (P6SIZE value, P6CHAR *pBuffer, P6SIZE cBuffer, P6UINT32 radix, P6SIZE *pcWritten)=0
 
virtual P6R::P6ERR sizetToStringW (P6SIZE value, P6WCHAR *pBuffer, P6SIZE cBuffer, P6UINT32 radix, P6SIZE *pcWritten)=0
 
virtual P6R::P6ERR strchr (const P6CHAR *pStr, P6INT16 c, P6SIZE cchMax, P6CHAR **ppRetPtr)=0
 
virtual P6R::P6ERR strcmp (const P6CHAR *pStr1, const P6CHAR *pStr2, P6SIZE cchMax, P6INT32 *pRetval)=0
 
virtual P6R::P6ERR strdup (const P6CHAR *pString, P6CHAR **ppCopy)=0
 
virtual P6R::P6ERR strdupbstr (const P6BCSTR *pString, P6CHAR **ppCopy)=0
 
virtual P6R::P6ERR strfree (const P6CHAR *pString)=0
 
virtual P6R::P6ERR stricmp (const P6CHAR *pStr1, const P6CHAR *pStr2, P6SIZE cchMax, P6INT32 *pRetval)=0
 
virtual P6R::P6ERR stristr (const P6CHAR *searchIn, const P6CHAR *searchFor, P6SIZE cchMax, P6CHAR **ppRetptr)=0
 
virtual P6R::P6ERR strlcat (P6CHAR *pszDest, P6SIZE cDest, const P6CHAR *pszSource, P6SIZE *pcCopied)=0
 
virtual P6R::P6ERR strlcatbstr (P6CHAR *pszDest, P6SIZE cDest, const P6BCSTR *pbsSource, P6SIZE *pcCopied)=0
 
virtual P6R::P6ERR strlcpy (P6CHAR *pszDest, P6SIZE cDest, const P6CHAR *pszSource, P6SIZE *pcCopied)=0
 
virtual P6R::P6ERR strlcpybstr (P6CHAR *pszDest, P6SIZE cDest, const P6BCSTR *pbsSource, P6SIZE *pcCopied)=0
 
virtual P6R::P6ERR strlen (const P6CHAR *pStr, P6SIZE cchMax, P6SIZE *pcSize)=0
 
virtual P6R::P6ERR strlncpy (P6CHAR *pszDest, P6SIZE cDest, const P6CHAR *pszSource, P6SIZE cSourceLen, P6SIZE *pcCopied)=0
 
virtual P6R::P6ERR strlwr (P6CHAR *pszStr, P6SIZE cchMax)=0
 
virtual P6R::P6ERR strncat (P6CHAR *pszDest, P6SIZE cDest, const P6CHAR *pszSource, P6SIZE cCount)=0
 
virtual P6R::P6ERR strncmp (const P6CHAR *pStr1, const P6CHAR *pStr2, P6SIZE length, P6INT32 *pRetval)=0
 
virtual P6R::P6ERR strnicmp (const P6CHAR *pStr1, const P6CHAR *pStr2, P6SIZE length, P6INT32 *pRetval)=0
 
virtual P6R::P6ERR strrchr (const P6CHAR *pStr, P6INT16 c, P6SIZE cchMax, P6CHAR **ppRetPtr)=0
 
virtual P6R::P6ERR strsep (const P6CHAR **ppszSearchIn, const P6CHAR *pszDelimiters, P6BCSTR *pbcsToken)=0
 
virtual P6R::P6ERR strstr (const P6CHAR *searchIn, const P6CHAR *searchFor, P6SIZE cchMax, P6CHAR **ppRetptr)=0
 
virtual P6R::P6ERR strToBool (const P6CHAR *pBoolStr, P6BOOL *pBool)=0
 
virtual P6R::P6ERR strupr (P6CHAR *pszStr, P6SIZE cchMax)=0
 
virtual P6R::P6ERR trimEnd (P6CHAR *pszStr, P6SIZE cchMax)=0
 
virtual P6R::P6ERR trimEndW (P6WCHAR *pszStr, P6SIZE cchMax)=0
 
virtual P6R::P6ERR uint16ToString (P6UINT16 value, P6CHAR *pBuffer, P6SIZE cBuffer, P6UINT32 radix, P6SIZE *pcWritten)=0
 
virtual P6R::P6ERR uint16ToStringW (P6UINT16 value, P6WCHAR *pBuffer, P6SIZE cBuffer, P6UINT32 radix, P6SIZE *pcWritten)=0
 
virtual P6R::P6ERR uint32ToString (P6UINT32 value, P6CHAR *pBuffer, P6SIZE cBuffer, P6UINT32 radix, P6SIZE *pcWritten)=0
 
virtual P6R::P6ERR uint32ToStringW (P6UINT32 value, P6WCHAR *pBuffer, P6SIZE cBuffer, P6UINT32 radix, P6SIZE *pcWritten)=0
 
virtual P6R::P6ERR uint64ToString (P6UINT64 value, P6CHAR *pBuffer, P6SIZE cBuffer, P6UINT32 radix, P6SIZE *pcWritten)=0
 
virtual P6R::P6ERR uint64ToStringW (P6UINT64 value, P6WCHAR *pBuffer, P6SIZE cBuffer, P6UINT32 radix, P6SIZE *pcWritten)=0
 
virtual P6R::P6ERR utf8nToWcs (P6WCHAR *pDest, P6SIZE *dstSize, const P6CHAR *pSource, P6SIZE cCount)=0
 
virtual P6R::P6ERR utf8ToWcs (P6WCHAR *pDest, P6SIZE *dstSize, const P6CHAR *pSource)=0
 
virtual P6R::P6ERR wcsnToUtf8 (P6CHAR *pDest, P6SIZE *dstSize, const P6WCHAR *pSource, P6SIZE cCount)=0
 
virtual P6R::P6ERR wcsToUtf8 (P6CHAR *pDest, P6SIZE *dstSize, const P6WCHAR *pSource)=0
 
virtual P6R::P6ERR wreplace (P6WCHAR *pString, P6WCHAR chOrig, const P6WCHAR chReplacement, P6SIZE cchMax)=0
 
virtual P6R::P6ERR wsetMem (P6WCHAR *pMemory, P6WCHAR nValue, P6SIZE nChars)=0
 
virtual P6R::P6ERR wstrchr (const P6WCHAR *pStr, P6WCHAR c, P6SIZE cchMax, P6WCHAR **ppRetPtr)=0
 
virtual P6R::P6ERR wstrcmp (const P6WCHAR *s1, const P6WCHAR *s2, P6SIZE cchMax, P6INT32 *pRetval)=0
 
virtual P6R::P6ERR wstrdup (const P6WCHAR *pString, P6WCHAR **ppCopy)=0
 
virtual P6R::P6ERR wstrdupbstr (const P6BWCSTR *pString, P6WCHAR **ppCopy)=0
 
virtual P6R::P6ERR wstrfree (const P6WCHAR *pString)=0
 
virtual P6R::P6ERR wstricmp (const P6WCHAR *s1, const P6WCHAR *s2, P6SIZE cchMax, P6INT32 *pRetval)=0
 
virtual P6R::P6ERR wstrlcat (P6WCHAR *pszDest, P6SIZE cDest, const P6WCHAR *pszSource, P6SIZE *pcCopied)=0
 
virtual P6R::P6ERR wstrlcpy (P6WCHAR *pszDest, P6SIZE cDest, const P6WCHAR *pszSource, P6SIZE *pcCopied)=0
 
virtual P6R::P6ERR wstrlen (const P6WCHAR *pwszString, P6SIZE cchMax, P6SIZE *pcLen)=0
 
virtual P6R::P6ERR wstrlncpy (P6WCHAR *pszDest, P6SIZE cDest, const P6WCHAR *pszSource, P6SIZE cSourceLen, P6SIZE *pcCopied)=0
 
virtual P6R::P6ERR wstrncat (P6WCHAR *pszDest, P6SIZE cDest, const P6WCHAR *pszSource, P6SIZE cCount)=0
 
virtual P6R::P6ERR wstrncmp (const P6WCHAR *s1, const P6WCHAR *s2, P6SIZE length, P6INT32 *pRetval)=0
 
virtual P6R::P6ERR wstrnicmp (const P6WCHAR *s1, const P6WCHAR *s2, P6SIZE length, P6INT32 *pRetval)=0
 
virtual P6R::P6ERR wstrrchr (const P6WCHAR *pszSearchIn, P6INT16 c, P6SIZE cchMax, P6WCHAR **ppRetPtr)=0
 
virtual P6R::P6ERR wstrsep (const P6WCHAR **ppszSearchIn, const P6WCHAR *pszDelimiters, P6BWCSTR *pbcsToken)=0
 
virtual P6R::P6ERR wstrstr (const P6WCHAR *searchIn, const P6WCHAR *searchFor, P6SIZE cchMax, P6WCHAR **ppRetptr)=0
 
virtual P6R::P6ERR wstrToBool (const P6WCHAR *pBoolStr, P6BOOL *pBool)=0
 
virtual P6R::P6ERR wstrupr (P6WCHAR *pszStr, P6SIZE cchMax)=0
 

Detailed Description

This runtime interface provides a set of safe string routines that should be used in place of the standard C runtime string routines.

Use p6GetRuntimeIface() to get an instance of this interface.

Notably missing from these methods are strcpy() and strcat() which have been replaced with strlcpy() and strlcat().

Each method in this interface is limited to the number of characters that it will process, either internally using the P6SAFE_MAX_CCH constant, or through an argument passed by the caller.

Definition at line 634 of file p6runtimeif.h.


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