KiCad PCB EDA Suite
Loading...
Searching...
No Matches
SCOPED_C_CTYPE Class Reference

Set C LC_CTYPE on non-Windows hosts and restore the previous locale. More...

#include <odb_test_utils.h>

Public Member Functions

 SCOPED_C_CTYPE ()
 
 ~SCOPED_C_CTYPE ()
 
bool Ok () const
 

Private Attributes

std::string m_previous
 
bool m_ok = true
 

Detailed Description

Set C LC_CTYPE on non-Windows hosts and restore the previous locale.

Definition at line 41 of file odb_test_utils.h.

Constructor & Destructor Documentation

◆ SCOPED_C_CTYPE()

SCOPED_C_CTYPE::SCOPED_C_CTYPE ( )
inline

Definition at line 44 of file odb_test_utils.h.

References m_ok, and m_previous.

◆ ~SCOPED_C_CTYPE()

SCOPED_C_CTYPE::~SCOPED_C_CTYPE ( )
inline

Definition at line 51 of file odb_test_utils.h.

References m_previous.

Member Function Documentation

◆ Ok()

bool SCOPED_C_CTYPE::Ok ( ) const
inline

Definition at line 53 of file odb_test_utils.h.

References m_ok.

Member Data Documentation

◆ m_ok

bool SCOPED_C_CTYPE::m_ok = true
private

Definition at line 57 of file odb_test_utils.h.

Referenced by Ok(), and SCOPED_C_CTYPE().

◆ m_previous

std::string SCOPED_C_CTYPE::m_previous
private

Definition at line 56 of file odb_test_utils.h.

Referenced by SCOPED_C_CTYPE(), and ~SCOPED_C_CTYPE().


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