OpenNI 1.5.7
XnOSStrings.h
Go to the documentation of this file.
1/*****************************************************************************
2* *
3* OpenNI 1.x Alpha *
4* Copyright (C) 2012 PrimeSense Ltd. *
5* *
6* This file is part of OpenNI. *
7* *
8* Licensed under the Apache License, Version 2.0 (the "License"); *
9* you may not use this file except in compliance with the License. *
10* You may obtain a copy of the License at *
11* *
12* http://www.apache.org/licenses/LICENSE-2.0 *
13* *
14* Unless required by applicable law or agreed to in writing, software *
15* distributed under the License is distributed on an "AS IS" BASIS, *
16* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
17* See the License for the specific language governing permissions and *
18* limitations under the License. *
19* *
20*****************************************************************************/
21#ifndef __XNOSSTRINGS_H__
22#define __XNOSSTRINGS_H__
23
24#include "XnPlatform.h"
25#include <stdarg.h>
26
27// Strings
28XN_C_API XnStatus XN_C_DECL xnOSStrPrefix(const XnChar* cpPrefixString, XnChar* cpDestString, const XnUInt32 nDestLength);
29XN_C_API XnStatus XN_C_DECL xnOSStrAppend(XnChar* cpDestString, const XnChar* cpSrcString, const XnUInt32 nDestLength);
30XN_C_API XnStatus XN_C_DECL xnOSStrCopy(XnChar* cpDestString, const XnChar* cpSrcString, const XnUInt32 nDestLength);
31XN_C_API XnUInt32 XN_C_DECL xnOSStrLen(const XnChar* cpStr);
32XN_C_API XnStatus XN_C_DECL xnOSStrNCopy(XnChar* cpDestString, const XnChar* cpSrcString, const XnUInt32 nCopyLength, const XnUInt32 nDestLength);
33XN_C_API XnStatus XN_C_DECL xnOSStrCRC32(const XnChar* cpString, XnUInt32* nCRC32);
34XN_C_API XnStatus XN_C_DECL xnOSStrNCRC32(XnUChar* cpBuffer, XnUInt32 nBufferSize, XnUInt32* nCRC32);
35XN_C_API XnStatus XN_C_DECL xnOSStrFormat(XnChar* cpDestString, const XnUInt32 nDestLength, XnUInt32* pnCharsWritten, const XnChar* cpFormat, ...);
36XN_C_API XnStatus XN_C_DECL xnOSStrFormatV(XnChar* cpDestString, const XnUInt32 nDestLength, XnUInt32* pnCharsWritten, const XnChar* cpFormat, va_list args);
37XN_C_API XnInt32 XN_C_DECL xnOSStrCmp(const XnChar* cpFirstString, const XnChar* cpSecondString);
38XN_C_API XnInt32 XN_C_DECL xnOSStrCaseCmp(const XnChar* cpFirstString, const XnChar* cpSecondString);
39XN_C_API void XN_C_DECL xnOSItoA(XnInt32 nValue, XnChar* cpStr, XnInt32 nBase);
41XN_C_API XnChar* XN_C_DECL xnOSStrDup(const XnChar* strSource);
42XN_C_API XnStatus XN_C_DECL xnOSGetEnvironmentVariable(const XnChar* strEnv, XnChar* strDest, XnUInt32 nDestSize);
43XN_C_API XnStatus XN_C_DECL xnOSExpandEnvironmentStrings(const XnChar* strSrc, XnChar* strDest, XnUInt32 nDestSize);
44
45
46#endif // __XNOSSTRINGS_H__
XN_C_API XnStatus XN_C_DECL xnOSStrAppend(XnChar *cpDestString, const XnChar *cpSrcString, const XnUInt32 nDestLength)
XN_C_API XnStatus XN_C_DECL xnOSExpandEnvironmentStrings(const XnChar *strSrc, XnChar *strDest, XnUInt32 nDestSize)
XN_C_API XnChar *XN_C_DECL xnOSStrDup(const XnChar *strSource)
XN_C_API XnInt32 XN_C_DECL xnOSStrCaseCmp(const XnChar *cpFirstString, const XnChar *cpSecondString)
XN_C_API XnStatus XN_C_DECL xnOSStrFormat(XnChar *cpDestString, const XnUInt32 nDestLength, XnUInt32 *pnCharsWritten, const XnChar *cpFormat,...)
XN_C_API XnStatus XN_C_DECL xnOSStrCopy(XnChar *cpDestString, const XnChar *cpSrcString, const XnUInt32 nDestLength)
XN_C_API XnStatus XN_C_DECL xnOSStrNCRC32(XnUChar *cpBuffer, XnUInt32 nBufferSize, XnUInt32 *nCRC32)
XN_C_API XnInt32 XN_C_DECL xnOSStrCmp(const XnChar *cpFirstString, const XnChar *cpSecondString)
XN_C_API XnStatus XN_C_DECL xnOSGetEnvironmentVariable(const XnChar *strEnv, XnChar *strDest, XnUInt32 nDestSize)
XN_C_API XnUInt32 XN_C_DECL xnOSStrLen(const XnChar *cpStr)
XN_C_API void XN_C_DECL xnOSItoA(XnInt32 nValue, XnChar *cpStr, XnInt32 nBase)
XN_C_API XnStatus XN_C_DECL xnOSStrCRC32(const XnChar *cpString, XnUInt32 *nCRC32)
XN_C_API XnStatus XN_C_DECL xnOSStrPrefix(const XnChar *cpPrefixString, XnChar *cpDestString, const XnUInt32 nDestLength)
XN_C_API XnStatus XN_C_DECL xnOSStrFormatV(XnChar *cpDestString, const XnUInt32 nDestLength, XnUInt32 *pnCharsWritten, const XnChar *cpFormat, va_list args)
XN_C_API XnStatus XN_C_DECL xnOSStrNCopy(XnChar *cpDestString, const XnChar *cpSrcString, const XnUInt32 nCopyLength, const XnUInt32 nDestLength)
#define XN_C_API
Definition: XnPlatform.h:121
XnUInt32 XnStatus
Definition: XnStatus.h:33