Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Public Types | Public Member Functions | Static Public Attributes
Punct< charT, Intl > Struct Template Reference
Inheritance diagram for Punct< charT, Intl >:
Inheritance graph
[legend]
Collaboration diagram for Punct< charT, Intl >:
Collaboration graph
[legend]

Public Types

typedef std::moneypunct< charT, Intl > Base
 
typedef Base::char_type char_type
 
typedef Base::string_type string_type
 
typedef std::moneypunct< charT >::char_type char_type
 
typedef std::moneypunct< charT >::string_type string_type
 
typedef unsigned char UChar
 
typedef std::numpunct< charT >::char_type char_type
 
typedef std::numpunct< charT >::string_type string_type
 
typedef std::numpunct< charT >::char_type char_type
 
typedef std::numpunct< charT >::string_type string_type
 

Public Member Functions

char do_decimal_point () const
 
string_type do_truename () const
 
char do_thousands_sep () const
 
std::string do_grouping () const
 
 Punct (std::size_t ref)
 
char_type do_decimal_point () const
 
int do_frac_digits () const
 
virtual string_type do_curr_symbol () const
 
virtual std::string do_grouping () const
 
virtual char_type do_thousands_sep () const
 
virtual string_type do_positive_sign () const
 
virtual string_type do_negative_sign () const
 
virtual std::money_base::pattern do_pos_format () const
 
virtual std::money_base::pattern do_neg_format () const
 
 Punct ()
 
char_type do_decimal_point () const
 
int do_frac_digits () const
 
virtual string_type do_curr_symbol () const
 
virtual std::string do_grouping () const
 
virtual char_type do_thousands_sep () const
 
virtual string_type do_positive_sign () const
 
virtual string_type do_negative_sign () const
 
virtual std::money_base::pattern do_pos_format () const
 
virtual std::money_base::pattern do_neg_format () const
 
 Punct (std::size_t ref=0)
 
 ~Punct ()
 
virtual char_type do_decimal_point () const
 
virtual std::string do_grouping () const
 
virtual char_type do_thousands_sep () const
 
virtual string_type do_truename () const
 
virtual string_type do_falsename () const
 
 Punct (std::size_t ref=0)
 
 ~Punct ()
 
virtual char_type do_decimal_point () const
 
virtual std::string do_grouping () const
 
virtual char_type do_thousands_sep () const
 
virtual string_type do_truename () const
 
virtual string_type do_falsename () const
 

Static Public Attributes

static int n_thousands_sep_
 
static char_type decimal_point_ = ':'
 
static char_type thousands_sep_ = ';'
 
static const char * grouping_ = ""
 
static const char_type * curr_symbol_
 
static const char_type * positive_sign_
 
static const char_type * negative_sign_
 
static std::money_base::pattern pos_format_
 
static std::money_base::pattern neg_format_
 
static int frac_digits_
 
static const char_type * truename_
 
static const char_type * falsename_
 
static int n_objs_
 
- Static Public Attributes inherited from PunctData< charT >
static charT decimal_point_ [2] = { '.', '.' }
 
static charT thousands_sep_ [2] = { ',', ',' }
 
static const char * grouping_ [2] = { "", "" }
 
static const charT * curr_symbol_ [2]
 
static const charT * positive_sign_ [2]
 
static const charT * negative_sign_ [2]
 
static std::money_base::pattern format_ [2][2]
 
static int frac_digits_ [2]
 
static char decimal_point_
 
static char thousands_sep_
 
static const char * falsename_ = 0
 
static const char * truename_ = 0
 
static int n_objs_
 
static int n_thousands_sep_
 

Additional Inherited Members

- Static Public Member Functions inherited from PunctData< charT >
static void set_names (const char *fname, const char *tname)
 

Detailed Description

template<class charT, bool Intl>
struct Punct< charT, Intl >

num_put.cpp - Example program for the num_put facet.

$Id$

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 1994-2006 Rogue Wave Software.

Definition at line 37 of file num_put.cpp.

Member Typedef Documentation

◆ Base

template<class charT , bool Intl>
typedef std::moneypunct<charT, Intl> Punct< charT, Intl >::Base

Definition at line 176 of file 22.locale.money.get.cpp.

◆ char_type [1/4]

template<class charT , bool Intl>
typedef Base::char_type Punct< charT, Intl >::char_type

Definition at line 177 of file 22.locale.money.get.cpp.

◆ char_type [2/4]

template<class charT , bool Intl>
typedef std::moneypunct<charT>::char_type Punct< charT, Intl >::char_type

Definition at line 51 of file 22.locale.money.put.cpp.

◆ char_type [3/4]

template<class charT , bool Intl>
typedef std::numpunct<charT>::char_type Punct< charT, Intl >::char_type

Definition at line 169 of file 22.locale.num.get.cpp.

◆ char_type [4/4]

template<class charT , bool Intl>
typedef std::numpunct<charT>::char_type Punct< charT, Intl >::char_type

Definition at line 115 of file 22.locale.num.put.cpp.

◆ string_type [1/4]

template<class charT , bool Intl>
typedef Base::string_type Punct< charT, Intl >::string_type

Definition at line 178 of file 22.locale.money.get.cpp.

◆ string_type [2/4]

template<class charT , bool Intl>
typedef std::moneypunct<charT>::string_type Punct< charT, Intl >::string_type

Definition at line 52 of file 22.locale.money.put.cpp.

◆ string_type [3/4]

template<class charT , bool Intl>
typedef std::numpunct<charT>::string_type Punct< charT, Intl >::string_type

Definition at line 170 of file 22.locale.num.get.cpp.

◆ string_type [4/4]

template<class charT , bool Intl>
typedef std::numpunct<charT>::string_type Punct< charT, Intl >::string_type

Definition at line 116 of file 22.locale.num.put.cpp.

◆ UChar

template<class charT , bool Intl>
typedef unsigned char Punct< charT, Intl >::UChar

Definition at line 168 of file 22.locale.num.get.cpp.

Constructor & Destructor Documentation

◆ Punct() [1/4]

template<class charT , bool Intl>
Punct< charT, Intl >::Punct ( std::size_t  ref)
inline

Definition at line 182 of file 22.locale.money.get.cpp.

◆ Punct() [2/4]

template<class charT , bool Intl>
Punct< charT, Intl >::Punct ( )
inline

Definition at line 66 of file 22.locale.money.put.cpp.

◆ Punct() [3/4]

template<class charT , bool Intl>
Punct< charT, Intl >::Punct ( std::size_t  ref = 0)
inline

Definition at line 172 of file 22.locale.num.get.cpp.

◆ ~Punct() [1/2]

template<class charT , bool Intl>
Punct< charT, Intl >::~Punct ( )
inline

Definition at line 177 of file 22.locale.num.get.cpp.

◆ Punct() [4/4]

template<class charT , bool Intl>
Punct< charT, Intl >::Punct ( std::size_t  ref = 0)
inline

Definition at line 127 of file 22.locale.num.put.cpp.

◆ ~Punct() [2/2]

template<class charT , bool Intl>
Punct< charT, Intl >::~Punct ( )
inline

Definition at line 132 of file 22.locale.num.put.cpp.

Member Function Documentation

◆ do_curr_symbol() [1/2]

template<class charT , bool Intl>
virtual string_type Punct< charT, Intl >::do_curr_symbol ( ) const
inlinevirtual

Definition at line 192 of file 22.locale.money.get.cpp.

◆ do_curr_symbol() [2/2]

template<class charT , bool Intl>
virtual string_type Punct< charT, Intl >::do_curr_symbol ( ) const
inlinevirtual

Definition at line 76 of file 22.locale.money.put.cpp.

◆ do_decimal_point() [1/5]

template<class charT , bool Intl>
char Punct< charT, Intl >::do_decimal_point ( ) const
inline

Definition at line 39 of file num_put.cpp.

◆ do_decimal_point() [2/5]

template<class charT , bool Intl>
char_type Punct< charT, Intl >::do_decimal_point ( ) const
inline

Definition at line 184 of file 22.locale.money.get.cpp.

◆ do_decimal_point() [3/5]

template<class charT , bool Intl>
char_type Punct< charT, Intl >::do_decimal_point ( ) const
inline

Definition at line 68 of file 22.locale.money.put.cpp.

◆ do_decimal_point() [4/5]

template<class charT , bool Intl>
virtual char_type Punct< charT, Intl >::do_decimal_point ( ) const
inlinevirtual

Definition at line 181 of file 22.locale.num.get.cpp.

◆ do_decimal_point() [5/5]

template<class charT , bool Intl>
virtual char_type Punct< charT, Intl >::do_decimal_point ( ) const
inlinevirtual

Definition at line 136 of file 22.locale.num.put.cpp.

◆ do_falsename() [1/2]

template<class charT , bool Intl>
virtual string_type Punct< charT, Intl >::do_falsename ( ) const
inlinevirtual

Definition at line 199 of file 22.locale.num.get.cpp.

◆ do_falsename() [2/2]

template<class charT , bool Intl>
virtual string_type Punct< charT, Intl >::do_falsename ( ) const
inlinevirtual

Definition at line 153 of file 22.locale.num.put.cpp.

◆ do_frac_digits() [1/2]

template<class charT , bool Intl>
int Punct< charT, Intl >::do_frac_digits ( ) const
inline

Definition at line 188 of file 22.locale.money.get.cpp.

◆ do_frac_digits() [2/2]

template<class charT , bool Intl>
int Punct< charT, Intl >::do_frac_digits ( ) const
inline

Definition at line 72 of file 22.locale.money.put.cpp.

◆ do_grouping() [1/5]

template<class charT , bool Intl>
std::string Punct< charT, Intl >::do_grouping ( ) const
inline

Definition at line 51 of file num_put.cpp.

◆ do_grouping() [2/5]

template<class charT , bool Intl>
virtual std::string Punct< charT, Intl >::do_grouping ( ) const
inlinevirtual

Definition at line 198 of file 22.locale.money.get.cpp.

◆ do_grouping() [3/5]

template<class charT , bool Intl>
virtual std::string Punct< charT, Intl >::do_grouping ( ) const
inlinevirtual

Definition at line 80 of file 22.locale.money.put.cpp.

◆ do_grouping() [4/5]

template<class charT , bool Intl>
virtual std::string Punct< charT, Intl >::do_grouping ( ) const
inlinevirtual

Definition at line 185 of file 22.locale.num.get.cpp.

◆ do_grouping() [5/5]

template<class charT , bool Intl>
virtual std::string Punct< charT, Intl >::do_grouping ( ) const
inlinevirtual

Definition at line 140 of file 22.locale.num.put.cpp.

◆ do_neg_format() [1/2]

template<class charT , bool Intl>
virtual std::money_base::pattern Punct< charT, Intl >::do_neg_format ( ) const
inlinevirtual

Definition at line 221 of file 22.locale.money.get.cpp.

◆ do_neg_format() [2/2]

template<class charT , bool Intl>
virtual std::money_base::pattern Punct< charT, Intl >::do_neg_format ( ) const
inlinevirtual

Definition at line 101 of file 22.locale.money.put.cpp.

◆ do_negative_sign() [1/2]

template<class charT , bool Intl>
virtual string_type Punct< charT, Intl >::do_negative_sign ( ) const
inlinevirtual

Definition at line 212 of file 22.locale.money.get.cpp.

◆ do_negative_sign() [2/2]

template<class charT , bool Intl>
virtual string_type Punct< charT, Intl >::do_negative_sign ( ) const
inlinevirtual

Definition at line 93 of file 22.locale.money.put.cpp.

◆ do_pos_format() [1/2]

template<class charT , bool Intl>
virtual std::money_base::pattern Punct< charT, Intl >::do_pos_format ( ) const
inlinevirtual

Definition at line 217 of file 22.locale.money.get.cpp.

◆ do_pos_format() [2/2]

template<class charT , bool Intl>
virtual std::money_base::pattern Punct< charT, Intl >::do_pos_format ( ) const
inlinevirtual

Definition at line 97 of file 22.locale.money.put.cpp.

◆ do_positive_sign() [1/2]

template<class charT , bool Intl>
virtual string_type Punct< charT, Intl >::do_positive_sign ( ) const
inlinevirtual

Definition at line 207 of file 22.locale.money.get.cpp.

◆ do_positive_sign() [2/2]

template<class charT , bool Intl>
virtual string_type Punct< charT, Intl >::do_positive_sign ( ) const
inlinevirtual

Definition at line 89 of file 22.locale.money.put.cpp.

◆ do_thousands_sep() [1/5]

template<class charT , bool Intl>
char Punct< charT, Intl >::do_thousands_sep ( ) const
inline

Definition at line 47 of file num_put.cpp.

◆ do_thousands_sep() [2/5]

template<class charT , bool Intl>
virtual char_type Punct< charT, Intl >::do_thousands_sep ( ) const
inlinevirtual

Definition at line 202 of file 22.locale.money.get.cpp.

◆ do_thousands_sep() [3/5]

template<class charT , bool Intl>
virtual char_type Punct< charT, Intl >::do_thousands_sep ( ) const
inlinevirtual

Definition at line 84 of file 22.locale.money.put.cpp.

◆ do_thousands_sep() [4/5]

template<class charT , bool Intl>
virtual char_type Punct< charT, Intl >::do_thousands_sep ( ) const
inlinevirtual

Definition at line 189 of file 22.locale.num.get.cpp.

◆ do_thousands_sep() [5/5]

template<class charT , bool Intl>
virtual char_type Punct< charT, Intl >::do_thousands_sep ( ) const
inlinevirtual

Definition at line 144 of file 22.locale.num.put.cpp.

◆ do_truename() [1/3]

template<class charT , bool Intl>
string_type Punct< charT, Intl >::do_truename ( ) const
inline

Definition at line 43 of file num_put.cpp.

◆ do_truename() [2/3]

template<class charT , bool Intl>
virtual string_type Punct< charT, Intl >::do_truename ( ) const
inlinevirtual

Definition at line 194 of file 22.locale.num.get.cpp.

◆ do_truename() [3/3]

template<class charT , bool Intl>
virtual string_type Punct< charT, Intl >::do_truename ( ) const
inlinevirtual

Definition at line 149 of file 22.locale.num.put.cpp.

Field Documentation

◆ curr_symbol_

template<class charT , bool Intl>
const Punct< charT, Intl >::char_type * Punct< charT, Intl >::curr_symbol_
static

Definition at line 57 of file 22.locale.money.put.cpp.

◆ decimal_point_

template<class charT >
Punct< charT >::char_type Punct< charT >::decimal_point_ = ':'
static

Definition at line 54 of file 22.locale.money.put.cpp.

◆ falsename_

template<class charT >
const Punct< charT >::char_type * Punct< charT >::falsename_
static

Definition at line 122 of file 22.locale.num.put.cpp.

◆ frac_digits_

template<class charT , bool Intl>
int Punct< charT, Intl >::frac_digits_
static

Definition at line 62 of file 22.locale.money.put.cpp.

◆ grouping_

template<class charT >
const char * Punct< charT >::grouping_ = ""
static

Definition at line 56 of file 22.locale.money.put.cpp.

◆ n_objs_

template<class charT >
int Punct< charT >::n_objs_
static

Definition at line 124 of file 22.locale.num.put.cpp.

◆ n_thousands_sep_

template<class charT >
int Punct< charT >::n_thousands_sep_
static

Definition at line 180 of file 22.locale.money.get.cpp.

◆ neg_format_

template<class charT , bool Intl>
std::money_base::pattern Punct< charT, Intl >::neg_format_
static
Initial value:
= { {
std::money_base::symbol,
std::money_base::sign,
std::money_base::none,
std::money_base::value
} }

Definition at line 61 of file 22.locale.money.put.cpp.

◆ negative_sign_

template<class charT , bool Intl>
const Punct< charT, Intl >::char_type * Punct< charT, Intl >::negative_sign_
static

Definition at line 59 of file 22.locale.money.put.cpp.

◆ pos_format_

template<class charT , bool Intl>
std::money_base::pattern Punct< charT, Intl >::pos_format_
static
Initial value:
= { {
std::money_base::symbol,
std::money_base::sign,
std::money_base::none,
std::money_base::value
} }

Definition at line 60 of file 22.locale.money.put.cpp.

◆ positive_sign_

template<class charT , bool Intl>
const Punct< charT, Intl >::char_type * Punct< charT, Intl >::positive_sign_
static

Definition at line 58 of file 22.locale.money.put.cpp.

◆ thousands_sep_

template<class charT >
Punct< charT >::char_type Punct< charT >::thousands_sep_ = ';'
static

Definition at line 55 of file 22.locale.money.put.cpp.

◆ truename_

template<class charT >
const Punct< charT >::char_type * Punct< charT >::truename_
static

Definition at line 121 of file 22.locale.num.put.cpp.


The documentation for this struct was generated from the following files: