Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/locale/locale/encoding"

From cppreference.com
< cpp‎ | locale‎ | locale
(+)
 
m (Actually, std::text_encoding was recently added to GeSHi-keywords (not in {{lc}} yet)
Line 5: Line 5:
 
}}
 
}}
  
Returns a {{ltt|cpp/locale/text_encoding|std::text_encoding}} object that represents the implementation-defined encoding scheme associated with the locale {{tt|*this}}.
+
Returns a {{c/core|std::text_encoding}} object that represents the implementation-defined encoding scheme associated with the locale {{c|*this}}.
  
 
===Return value===
 
===Return value===
A {{ltt|cpp/locale/text_encoding|std::text_encoding}} object that represents the associated encoding scheme.
+
A {{c/core|std::text_encoding}} object that represents the associated encoding scheme.
  
 
===Example===
 
===Example===

Revision as of 17:48, 21 October 2024

 
 
 
 
std::text_encoding encoding() const;

Returns a std::text_encoding object that represents the implementation-defined encoding scheme associated with the locale *this.

Return value

A std::text_encoding object that represents the associated encoding scheme.

Example

See also

[static]
constructs a new text_encoding representing the ordinary character literal encoding
(public static member function of std::text_encoding) [edit]