ZED Open Capture  v0.6.0
Low level camera driver for the ZED stereo camera family
Public Member Functions | List of all members
sl_oc::tools::SI_NoCase< SI_CHAR > Struct Template Reference

#include <calibration.hpp>

Public Member Functions

bool operator() (const SI_CHAR *pLeft, const SI_CHAR *pRight) const
 

Detailed Description

template<class SI_CHAR>
struct sl_oc::tools::SI_NoCase< SI_CHAR >

Case-insensitive comparison class using Win32 MBCS functions. This class returns a case-insensitive semi-collation order for MBCS text. It may not be safe for UTF-8 text returned in char format as we don't know what characters will be folded by the function! Therefore, if you are using SI_CHAR == char and SetUnicode(true), then you need to use the generic SI_NoCase class instead.

Definition at line 3788 of file calibration.hpp.

Member Function Documentation

◆ operator()()

template<class SI_CHAR >
bool sl_oc::tools::SI_NoCase< SI_CHAR >::operator() ( const SI_CHAR *  pLeft,
const SI_CHAR *  pRight 
) const
inline

Definition at line 3790 of file calibration.hpp.

3790  {
3791  if (sizeof (SI_CHAR) == sizeof (char)) {
3792  return _mbsicmp((const unsigned char *) pLeft,
3793  (const unsigned char *) pRight) < 0;
3794  }
3795  if (sizeof (SI_CHAR) == sizeof (wchar_t)) {
3796  return _wcsicmp((const wchar_t *)pLeft,
3797  (const wchar_t *)pRight) < 0;
3798  }
3799  return SI_GenericNoCase<SI_CHAR>()(pLeft, pRight);
3800  }

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