acutil.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //
  2. //////////////////////////////////////////////////////////////////////////////
  3. //
  4. // Copyright 2015 Autodesk, Inc. All rights reserved.
  5. //
  6. // Use of this software is subject to the terms of the Autodesk license
  7. // agreement provided at the time of installation or download, or which
  8. // otherwise accompanies this software in either electronic or hard copy form.
  9. //
  10. //////////////////////////////////////////////////////////////////////////////
  11. //
  12. // acutil.h - General-purpose AcUtil functions
  13. //
  14. //
  15. //
  16. // DESCRIPTION:
  17. //
  18. // This header file contains declarations of general-purpose utility
  19. // functions provided with the AcUtil library and DLL.
  20. //
  21. #ifndef _ACUTIL_H
  22. #define _ACUTIL_H
  23. #include <stddef.h>
  24. #include "acadstrc.h"
  25. #pragma pack (push, 8)
  26. bool acutSplitString(
  27. size_t & numLeftBytes,
  28. const ACHAR *& pRight,
  29. const ACHAR * source,
  30. unsigned int delimiter);
  31. void acutTrimWhiteSpace(ACHAR * pStr);
  32. bool acutWcMatchEx(
  33. const ACHAR * string,
  34. const ACHAR * pattern,
  35. bool ignoreCase);
  36. size_t acutXStrLength(const ACHAR * str);
  37. Acad::ErrorStatus acutXStrNormalize(
  38. ACHAR *& pStr,
  39. bool preserveCase);
  40. inline Acad::ErrorStatus
  41. acutXStrUppercase(ACHAR *& pStr)
  42. { return acutXStrNormalize(pStr, false); }
  43. #pragma pack (pop)
  44. #endif // _ACUTIL_H