Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
detail::digit_grouping< Char > Class Template Reference

#include <format.h>

Classes

struct  next_state
 

Public Member Functions

template<typename Out , typename C >
auto apply (Out out, basic_string_view< C > digits) const -> Out
 
auto count_separators (int num_digits) const -> int
 
 digit_grouping (locale_ref loc, bool localized=true)
 
 digit_grouping (std::string grouping, std::basic_string< Char > sep)
 
auto has_separator () const -> bool
 

Private Member Functions

auto initial_state () const -> next_state
 
auto next (next_state &state) const -> int
 

Private Attributes

std::string grouping_
 
std::basic_string< Char > thousands_sep_
 

Detailed Description

template<typename Char>
class detail::digit_grouping< Char >

Definition at line 2009 of file format.h.

Constructor & Destructor Documentation

◆ digit_grouping() [1/2]

template<typename Char >
detail::digit_grouping< Char >::digit_grouping ( locale_ref  loc,
bool  localized = true 
)
inlineexplicit

Definition at line 2031 of file format.h.

◆ digit_grouping() [2/2]

template<typename Char >
detail::digit_grouping< Char >::digit_grouping ( std::string  grouping,
std::basic_string< Char >  sep 
)
inline

Definition at line 2037 of file format.h.

Member Function Documentation

◆ apply()

template<typename Char >
template<typename Out , typename C >
auto detail::digit_grouping< Char >::apply ( Out  out,
basic_string_view< C digits 
) const -> Out
inline

Definition at line 2051 of file format.h.

◆ count_separators()

template<typename Char >
auto detail::digit_grouping< Char >::count_separators ( int  num_digits) const -> int
inline

Definition at line 2042 of file format.h.

◆ has_separator()

template<typename Char >
auto detail::digit_grouping< Char >::has_separator ( ) const -> bool
inline

Definition at line 2040 of file format.h.

◆ initial_state()

template<typename Char >
auto detail::digit_grouping< Char >::initial_state ( ) const -> next_state
inlineprivate

Definition at line 2018 of file format.h.

◆ next()

template<typename Char >
auto detail::digit_grouping< Char >::next ( next_state state) const -> int
inlineprivate

Definition at line 2021 of file format.h.

Member Data Documentation

◆ grouping_

template<typename Char >
std::string detail::digit_grouping< Char >::grouping_
private

Definition at line 2011 of file format.h.

◆ thousands_sep_

template<typename Char >
std::basic_string<Char> detail::digit_grouping< Char >::thousands_sep_
private

Definition at line 2012 of file format.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:51