예제 #1
0
/* explicit */ pointer::pointer(void const volatile* pv, int minWidth, int format)
    : m_value(pv)
    , m_len(0)
    , m_minWidth(validate_width_(minWidth))
    , m_format(format)
{
    m_sz[0] = '\0';
}
예제 #2
0
/* explicit */ pointer::pointer(void const volatile* pv, int widthAndFormat)
    : m_value(pv)
    , m_len(0)
    , m_minWidth(validate_width_(static_cast<pan_sint8_t>(widthAndFormat & 0xff)))
    , m_format((widthAndFormat & ~0xff) | (0 != (fmt::zeroXPrefix & widthAndFormat) ? fmt::zeroPad : 0))
{
    PANTHEIOS_CONTRACT_ENFORCE_PRECONDITION_PARAMS_APPL_LAYER((widthAndFormat >= 0), "pantheios::pointer width must be non-negative when specified in composite widthAndFormat");

    m_sz[0] = '\0';
}
예제 #3
0
파일: xp.hpp 프로젝트: JavidPack/wifu
 ///  Construct from an unsigned long
 explicit xp(void const volatile* pv, int width = get_default_width_(sizeof(void*)))
       : parent_class_type(pv, validate_width_(width), int(fmt::fullHex))
 {}
예제 #4
0
파일: xi.hpp 프로젝트: JavidPack/wifu
 ///  Construct from an unsigned long
 explicit xi(unsigned long i, int width = get_default_width_(sizeof(unsigned long)))
       : parent_class_type(i, validate_width_(width), int(fmt::fullHex))
 {}
예제 #5
0
파일: xi.hpp 프로젝트: JavidPack/wifu
 ///  Construct from an int
 explicit xi(int i, int width = get_default_width_(sizeof(int)))
       : parent_class_type(i, validate_width_(width), int(fmt::fullHex))
 {}
예제 #6
0
파일: xi.hpp 프로젝트: JavidPack/wifu
 ///  Construct from a 64-bit unsigned integer
 explicit xi(::stlsoft::uint64_t i, int width = get_default_width_(8))
       : parent_class_type(i, validate_width_(width), int(fmt::fullHex))
 {}