Pecunia 0.11.0-alpha.3
Library using the ISO-4217 currency standard & a fixed monetary unit size
 
Loading...
Searching...
No Matches
pecunia::ShouldAllowFallback Struct Reference

A flag type to indicate if a locale fallback should be permitted. More...

#include <SetUp.hpp>

Collaboration diagram for pecunia::ShouldAllowFallback:

Public Member Functions

bool anyAllowed () const noexcept
 

Public Attributes

bool isCFallbackAllowed_ {false}
 When true, the locale C fallback is allowed, false it is not.
 
bool isUtfFallbackAllowed_ {false}
 When true, the locale ".UTF" fallback is allowed, false it is not.
 

Detailed Description

A flag type to indicate if a locale fallback should be permitted.

Member Function Documentation

◆ anyAllowed()

bool pecunia::ShouldAllowFallback::anyAllowed ( ) const
nodiscardnoexcept

@breif Determines if any fallback is set to be allowed.

Returns
Gives true when a fallback flag is set, false otherwise.

Member Data Documentation

◆ isCFallbackAllowed_

bool pecunia::ShouldAllowFallback::isCFallbackAllowed_ {false}

When true, the locale C fallback is allowed, false it is not.

◆ isUtfFallbackAllowed_

bool pecunia::ShouldAllowFallback::isUtfFallbackAllowed_ {false}

When true, the locale ".UTF" fallback is allowed, false it is not.