Espaços nominais
Variantes
Acções

std::moneypunct

Da cppreference.com
< cpp‎ | locale

 
 
Biblioteca localizações
Localidades e facetas
Original:
Locales and facets
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
locale
Classificação de caracteres
Original:
Character classification
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Conversões
Original:
Conversions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Facet classes base da categoria
Original:
Facet category base classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Categorias faceta
Original:
Facet categories
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Específicos da localidade facetas
Original:
Locale-specific facets
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Facetas de conversão de código
Original:
Code conversion facets
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
codecvt_utf8(C++11)
codecvt_utf16(C++11)
C localidade
Original:
C locale
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 
 
Defined in header <locale>
template< class CharT, bool International = false >
class moneypunct;
O std::moneypunct faceta encapsula as preferências de formato do valor monetário. Fluxo de I / O e manipuladores std::get_money std::put_money uso std::moneypunct através std::money_get e std::money_put para analisar entrada valor monetário e formatação de saída valor monetário.
Original:
The facet std::moneypunct encapsulates monetary value format preferences. Stream I/O manipulators std::get_money and std::put_money use std::moneypunct through std::money_get and std::money_put for parsing monetary value input and formatting monetary value output.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
cpp/locale/money basecpp/locale/locale/facetstd-moneypunct-inheritance.svg
Sobre esta imagem

Inheritance diagram

Quatro especializações são fornecidos pela biblioteca padrão
Original:
Four specializations are provided by the standard library
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Defined in header <locale>
std::moneypunct<char>
fornece os equivalentes de "C", as preferências de localidade
Original:
provides equivalents of the "C" locale preferences
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
std::moneypunct<wchar_t>
fornece equivalentes caracteres largos de "C" preferências de localidade
Original:
provides wide character equivalents of the "C" locale preferences
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
std::moneypunct<char, true>
fornece equivalentes de "C" preferências de localidade, com símbolos de moeda internacional
Original:
provides equivalents of the "C" locale preferences, with international currency symbols
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
std::moneypunct<wchar_t, true>
fornece equivalentes caracteres largos de "C" preferências de localidade, com símbolos de moeda internacional
Original:
provides wide character equivalents of the "C" locale preferences, with international currency symbols
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Índice

[editar] Tipos de membro

Tipo de membro
Original:
Member type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Definition
char_type charT
string_type std::basic_string<charT>

[editar] Funções de membro

constrói uma faceta moneypunct novo
Original:
constructs a new moneypunct facet
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(função pública membro)
destrói uma faceta moneypunct
Original:
destructs a moneypunct facet
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(protegido função de membro)
Invoca do_decimal_point
Original:
invokes do_decimal_point
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(função pública membro)
Invoca do_thousands_sep
Original:
invokes do_thousands_sep
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(função pública membro)
Invoca do_grouping
Original:
invokes do_grouping
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(função pública membro)
Invoca do_curr_symbol
Original:
invokes do_curr_symbol
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(função pública membro)
Invoca do_positive_sign
Original:
invokes do_positive_sign
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(função pública membro)
Invoca do_negative_sign
Original:
invokes do_negative_sign
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(função pública membro)
Invoca do_frac_digits
Original:
invokes do_frac_digits
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(função pública membro)
Invoca do_pos_format
Original:
invokes do_pos_format
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(função pública membro)
Invoca do_neg_format
Original:
invokes do_neg_format
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(função pública membro)

[editar] Protegido funções de membro

fornece o personagem para usar como ponto decimal
Original:
provides the character to use as decimal point
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(virtual protegido função de membro)
fornece o personagem para usar como separador de milhares
Original:
provides the character to use as thousands separator
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(virtual protegido função de membro)
[virtual]
fornece o número de dígitos entre cada par de separadores de milhares
Original:
provides the numbers of digits between each pair of thousands separators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(virtual protegido função de membro)
fornece a seqüência de usar como o identificador de moeda
Original:
provides the string to use as the currency identifier
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(virtual protegido função de membro)
fornece a seqüência para indicar um valor positivo
Original:
provides the string to indicate a positive value
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(virtual protegido função de membro)
fornece a seqüência para indicar um valor negativo
Original:
provides the string to indicate a negative value
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(virtual protegido função de membro)
fornece o número de dígitos para exibir depois do ponto decimal
Original:
provides the number of digits to display after the decimal point
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(virtual protegido função de membro)
fornece o padrão de formatação para valores positivos
Original:
provides the formatting pattern for positive values
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(virtual protegido função de membro)
fornece o padrão de formatação para valores negativos
Original:
provides the formatting pattern for negative values
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(virtual protegido função de membro)

[editar] Constantes de membros

Membro
Original:
Member
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Definition
const bool intl (estática) International

[editar] Objetos Membros

static std::locale::id id
' ID da localidade
Original:
id of the locale
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(objeto membro público)

Inherited from std::money_base

Tipo de membro
Original:
Member type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Definition
enum part { none, space, symbol, sign, value };
tipo de enumeração sem escopo
Original:
unscoped enumeration type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
struct pattern { char field[4]; };
o tipo de formato monetário
Original:
the monetary format type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Enumeração constante
Original:
Enumeration constant
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Definition
none
espaço em branco é permitido, mas não obrigatório, exceto na última posição, onde os espaços em branco não é permitido
Original:
whitespace is permitted but not required except in the last position, where whitespace is not permitted
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
space
um ou mais caracteres de espaço são necessários
Original:
one or more whitespace characters are required
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
symbol
a seqüência de caracteres retornados pela moneypunct :: curr_symbol é necessária
Original:
the sequence of characters returned by moneypunct::curr_symbol is required
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
sign
o primeiro dos caracteres retornados por moneypunct :: positive_sign ou moneypunct :: negative_sign é necessária
Original:
the first of the characters returned by moneypunct::positive_sign or moneypunct::negative_sign is required
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
value
o valor numérico absoluto monetária é necessária
Original:
the absolute numeric monetary value is required
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[editar] Exemplo

#include <iostream>
#include <locale>
int main()
{
    std::locale jp("ja_JP.UTF-8");
    std::cout << "japanese currency symbol is "
              << std::use_facet<std::moneypunct<char, true>>(jp).curr_symbol()
              << "or "
              << std::use_facet<std::moneypunct<char>>(jp).curr_symbol()
              << " for short\n";
}

Output:

japanese currency symbol is JPY or ¥ for short

[editar] Veja também

define padrões de formatação monetários
Original:
defines monetary formatting patterns
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe) [edit]
representa o sistema fornecido std::moneypunct para a localidade chamada
Original:
represents the system-supplied std::moneypunct for the named locale
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(modelo de classe) [edit]
analisa e constrói um valor monetário a partir de uma seqüência de caracteres de entrada
Original:
parses and constructs a monetary value from an input character sequence
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(modelo de classe) [edit]
formatos de valor monetário para a saída como uma seqüência de caracteres
Original:
formats a monetary value for output as a character sequence
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(modelo de classe) [edit]