12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- //
- //////////////////////////////////////////////////////////////////////////////
- //
- // Copyright 2015 Autodesk, Inc. All rights reserved.
- //
- // Use of this software is subject to the terms of the Autodesk license
- // agreement provided at the time of installation or download, or which
- // otherwise accompanies this software in either electronic or hard copy form.
- //
- //////////////////////////////////////////////////////////////////////////////
- #ifndef _acutilads_h
- #define _acutilads_h 1
- #include "adsdef.h"
- #include "AdAChar.h"
- #include "acdbport.h"
- // These functions are exported with both extern "C" and C++ linkage. We may
- // eventually drop support for C applications.
- #pragma pack (push, 8)
- void acad__assert(const ACHAR *, const ACHAR *, int);
- int acutCvUnit (ads_real value, const ACHAR *oldunit,
- const ACHAR *newunit, ads_real *result);
- int acutWcMatch (const ACHAR *string, const ACHAR *pattern);
- int acutPrintf (const ACHAR *format, ...);
- int acutSPrintf (ACHAR *buffer, size_t nBufLen, const ACHAR *format, ...);
- struct resbuf *acutNewRb (int v);
- int acutRelRb (struct resbuf *rb);
- struct resbuf *acutBuildList (int rtype, ...);
- int acutRbDup(const struct resbuf *source, struct resbuf **result);
- ads_real acutAngle (const ads_point pt1, const ads_point pt2);
- ads_real acutDistance (const ads_point pt1, const ads_point pt2);
- void acutPolar (const ads_point pt, ads_real angle,
- ads_real dist, ads_point ptres);
- int acutIsAlpha (int c);
- int acutIsUpper (int c);
- int acutIsLower (int c);
- int acutIsDigit (int c);
- int acutIsXDigit (int c);
- int acutIsSpace (int c);
- int acutIsPunct (int c);
- int acutIsAlNum (int c);
- int acutIsPrint (int c);
- int acutIsGraph (int c);
- int acutIsCntrl (int c);
- int acutToUpper (int c);
- int acutToLower (int c);
- #pragma pack (pop)
- #ifdef __cplusplus
- int acutVSPrintf(wchar_t *buf, size_t nBufLen, const wchar_t *fmt, va_list va);
- template<size_t nBufLen> inline int acutSPrintf(wchar_t (& buf)[nBufLen], const ACHAR *format, ...)
- {
- va_list va;
- va_start(va, format);
- const int nRet = ::acutVSPrintf(buf, nBufLen, format, va);
- va_end(va);
- return nRet;
- }
- template<size_t nBufLen> inline int acutVSPrintf(wchar_t (& buf)[nBufLen], const ACHAR *format,
- va_list va)
- {
- return ::acutVSPrintf(buf, nBufLen, format, va);
- }
- #endif
- #endif // !acutilads.h
|