std::basic_filebuf<CharT,Traits>:: imbue
From cppreference.net
<
cpp
|
io
|
basic filebuf
C++
Input/output library
| I/O manipulators | ||||
| Print functions (C++23) | ||||
| C-style I/O | ||||
| Buffers | ||||
|
(C++23)
|
||||
|
(
C++98/26*
)
|
||||
|
(C++20)
|
||||
| Streams | ||||
| Abstractions | ||||
| File I/O | ||||
| String I/O | ||||
| Array I/O | ||||
|
(C++23)
|
||||
|
(C++23)
|
||||
|
(C++23)
|
||||
|
(
C++98/26*
)
|
||||
|
(
C++98/26*
)
|
||||
|
(
C++98/26*
)
|
||||
| Synchronized Output | ||||
|
(C++20)
|
||||
| Types | ||||
| Error category interface | ||||
|
(C++11)
|
||||
|
(C++11)
|
std::basic_filebuf
| Public member functions | ||||
|
(C++11)
|
||||
|
(C++11)
|
||||
|
(C++26)
|
||||
| Protected member functions | ||||
|
basic_filebuf::imbue
|
||||
| Non-member functions | ||||
|
(C++11)
|
|
protected
:
virtual void imbue ( const std:: locale & loc ) |
||
更改关联的区域设置,使得在此调用之后(直至下一次调用
imbue()
之前)所有插入或提取的字符都将使用
loc
的
std::codecvt
构面进行转换。
如果旧区域设置的编码是状态依赖的且文件未定位在起始位置,则新区域设置必须具有与先前嵌入的相同的 std::codecvt 方面。
目录 |
参数
| loc | - | 用于向流中注入的区域设置 |
返回值
(无)
示例
|
本节内容不完整
原因:缺少示例 |
参见
|
[virtual]
|
响应关联区域设置的更改
(
std::basic_streambuf<CharT,Traits>
的虚保护成员函数)
|
|
设置区域设置
(
std::basic_ios<CharT,Traits>
的公开成员函数)
|