ReactOS 0.4.16-dev-1133-g947c03e
__crt_stdio_input::scanset_buffer< UnsignedCharacter > Class Template Reference

#include <corecrt_internal_stdio_input.h>

Collaboration diagram for __crt_stdio_input::scanset_buffer< UnsignedCharacter >:

Public Member Functions

bool is_usable () throw ()
 
void set (UnsignedCharacter const c) throw ()
 
bool test (UnsignedCharacter const c) const throw ()
 
void reset () throw ()
 
void invert () throw ()
 

Private Attributes

scanset_storage< sizeof(UnsignedCharacter)> _storage
 

Detailed Description

template<typename UnsignedCharacter>
class __crt_stdio_input::scanset_buffer< UnsignedCharacter >

Definition at line 285 of file corecrt_internal_stdio_input.h.

Member Function Documentation

◆ invert()

template<typename UnsignedCharacter >
void __crt_stdio_input::scanset_buffer< UnsignedCharacter >::invert ( )
throw (
)
inline

Definition at line 313 of file corecrt_internal_stdio_input.h.

314 {
315 unsigned char* const first{_storage.data() };
316 unsigned char* const last {first + _storage.size()};
317
318 for (unsigned char* it{first}; it != last; ++it)
319 {
320 *it ^= static_cast<unsigned char>(-1);
321 }
322 }
scanset_storage< sizeof(UnsignedCharacter)> _storage
const GLint * first
Definition: glext.h:5794
static UINT UINT last
Definition: font.c:45

Referenced by __crt_stdio_input::format_string_parser< Character >::scan_scanset_range().

◆ is_usable()

template<typename UnsignedCharacter >
bool __crt_stdio_input::scanset_buffer< UnsignedCharacter >::is_usable ( )
throw (
)
inline

Definition at line 289 of file corecrt_internal_stdio_input.h.

290 {
291 return _storage.data() != nullptr;
292 }

Referenced by __crt_stdio_input::format_string_parser< Character >::scan_scanset_range().

◆ reset()

template<typename UnsignedCharacter >
void __crt_stdio_input::scanset_buffer< UnsignedCharacter >::reset ( )
throw (
)
inline

Definition at line 304 of file corecrt_internal_stdio_input.h.

305 {
306 unsigned char* const first{_storage.data()};
307 if (!first)
308 return;
309
310 ::memset(first, 0, _storage.size());
311 }
#define memset(x, y, z)
Definition: compat.h:39

Referenced by __crt_stdio_input::format_string_parser< Character >::scan_scanset_range().

◆ set()

template<typename UnsignedCharacter >
void __crt_stdio_input::scanset_buffer< UnsignedCharacter >::set ( UnsignedCharacter const  c)
throw (
)
inline

Definition at line 294 of file corecrt_internal_stdio_input.h.

295 {
296 _storage.data()[c / CHAR_BIT] |= 1 << (c % CHAR_BIT);
297 }
#define CHAR_BIT
Definition: urlcache.c:62
const GLubyte * c
Definition: glext.h:8905

Referenced by __crt_stdio_input::format_string_parser< Character >::scan_scanset_range().

◆ test()

template<typename UnsignedCharacter >
bool __crt_stdio_input::scanset_buffer< UnsignedCharacter >::test ( UnsignedCharacter const  c) const
throw (
)
inline

Definition at line 299 of file corecrt_internal_stdio_input.h.

300 {
301 return (_storage.data()[c / CHAR_BIT] & 1 << (c % CHAR_BIT)) != 0;
302 }

Referenced by __crt_stdio_input::input_processor< Character, InputAdapter >::is_character_allowed_in_string().

Member Data Documentation

◆ _storage


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