|
BashSpark
|
Generic input and output stream classes with character types. More...
#include <cstdio>#include <cstdlib>#include <cstring>#include <fstream>#include <string>#include <string_view>#include <new>

Go to the source code of this file.
Classes | |
| class | bs::basic_ifakestream< char_t > |
| A class for input stream behavior with a character type. More... | |
| class | bs::basic_ofakestream< char_t > |
| A class for output stream behavior with a character type. More... | |
Namespaces | |
| namespace | bs |
| BashSpark main namespace. | |
Typedefs | |
| using | bs::ifakestream = basic_ifakestream< char > |
| Alias for basic_ifakestream with char. | |
| using | bs::wifakestream = basic_ifakestream< wchar_t > |
| Alias for basic_ifakestream with wchar_t. | |
| using | bs::u8ifakestream = basic_ifakestream< char8_t > |
| Alias for basic_ifakestream with char8_t. | |
| using | bs::u16ifakestream = basic_ifakestream< char16_t > |
| Alias for basic_ifakestream with char16_t. | |
| using | bs::u32ifakestream = basic_ifakestream< char32_t > |
| Alias for basic_ifakestream with char32_t. | |
| using | bs::ofakestream = basic_ofakestream< char > |
| Alias for basic_ofakestream with char. | |
| using | bs::wofakestream = basic_ofakestream< wchar_t > |
| Alias for basic_ofakestream with wchar_t. | |
| using | bs::u8ofakestream = basic_ofakestream< char8_t > |
| Alias for basic_ofakestream with char8_t. | |
| using | bs::u16ofakestream = basic_ofakestream< char16_t > |
| Alias for basic_ofakestream with char16_t. | |
| using | bs::u32ofakestream = basic_ofakestream< char32_t > |
| Alias for basic_ofakestream with char32_t. | |
Generic input and output stream classes with character types.
This header file defines the implementation of the basic_ifakestream and basic_ofakestream classes, which serve as generic input and output streams for various character types (e.g., char, wchar_t, char8_t, char16_t, char32_t). It provides functionalities similar to standard C++ streams but operates directly on raw character data.
This file is part of BashSpark. Copyright (c) 2025 Dante Doménech Martínez
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.