Namespaces
Variants
Actions

std::basic_filebuf<CharT,Traits>::imbue

From cppreference.com
< cpp‎ | io‎ | basic filebuf
 
C++
 
Input/output library
 
std::basic_filebuf
protected:
virtual void imbue( const std::locale& loc )

Changes the associated locale so that all characters inserted or extracted after this call (and until another call to imbue()) are converted using the std::codecvt facet of loc.

If the old locale's encoding is state-dependent and file is not positioned at the beginning, then the new locale must have the same std::codecvt facet as the one previously imbued.

Contents

[edit] Parameters

loc - the locale to imbue the stream with

[edit] Return value

(none)

[edit] Example

[edit] See also

[virtual]
reacts to a change of the associated locale
(virtual protected member function of std::basic_streambuf<CharT,Traits>) [edit]
sets the locale
(public member function of std::basic_ios<CharT,Traits>) [edit]

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant