![]() |
OpenSiv3D
v0.6.5
C++20 framework for creative coding
|
文字列のエンコードの変換 More...
Functions | |
| TextEncoding | GetTextEncoding (const IReader &reader) |
| ファイルがテキストファイルである場合、そのエンコーディング形式を返します。 More... | |
| TextEncoding | GetTextEncoding (FilePathView path) |
| ファイルがテキストファイルである場合、そのエンコーディング形式を返します。 More... | |
| constexpr int32 | GetBOMSize (TextEncoding encoding) noexcept |
| テキストファイルの BOM のサイズ(バイト)を返します。 More... | |
| String | WidenAscii (std::string_view asciiText) |
| ASCII 文字列を String に変換します。 More... | |
| String | Widen (std::string_view s) |
| 文字列を String に変換します。 More... | |
| String | FromWstring (std::wstring_view s) |
| ワイド文字列を String に変換します。 More... | |
| String | FromUTF8 (std::string_view s) |
| UTF-8 文字列を String に変換します。 More... | |
| String | FromUTF16 (std::u16string_view s) |
| UTF-16 文字列を String に変換します。 More... | |
| String | FromUTF32 (std::u32string_view s) |
| UTF-32 文字列を String に変換します。 More... | |
| std::string | NarrowAscii (StringView asciiText) |
| ASCII 文字列を std::string に変換します。 More... | |
| std::string | Narrow (StringView s) |
| String を std::string に変換します。 More... | |
| std::wstring | ToWstring (StringView s) |
| String を std::wstring に変換します。 More... | |
| std::string | ToUTF8 (StringView s) |
| String を UTF-8 文字列に変換します。 More... | |
| std::u16string | ToUTF16 (StringView s) |
| String を UTF-16 文字列に変換します。 More... | |
| std::u32string | ToUTF32 (StringView s) |
| String を UTF-32 文字列に変換します。 More... | |
| std::u16string | UTF8ToUTF16 (std::string_view s) |
| UTF-8 文字列を UTF-16 文字列に変換します。 More... | |
| std::u32string | UTF8ToUTF32 (std::string_view s) |
| UTF-8 文字列を UTF-32 文字列に変換します。 More... | |
| std::string | UTF16ToUTF8 (std::u16string_view s) |
| UTF-16 文字列を UTF-8 文字列に変換します。 More... | |
| std::u32string | UTF16ToUTF32 (std::u16string_view s) |
| UTF-16 文字列を UTF-32 文字列に変換します。 More... | |
| std::string | UTF32ToUTF8 (std::u32string_view s) |
| UTF-32 文字列を UTF-8 文字列に変換します。 More... | |
| std::u16string | UTF32ToUTF16 (std::u32string_view s) |
| UTF-32 文字列を UTF-16 文字列に変換します。 More... | |
| constexpr bool | IsHighSurrogate (const char16 ch) noexcept |
| 上位サロゲートであるかを返します More... | |
| constexpr bool | IsLowSurrogate (const char16 ch) noexcept |
| 下位サロゲートであるかを返します More... | |
文字列のエンコードの変換
| String s3d::Unicode::FromUTF16 | ( | std::u16string_view | s | ) |
| String s3d::Unicode::FromUTF32 | ( | std::u32string_view | s | ) |
| String s3d::Unicode::FromUTF8 | ( | std::string_view | s | ) |
| String s3d::Unicode::FromWstring | ( | std::wstring_view | s | ) |
|
inlineconstexprnoexcept |
テキストファイルの BOM のサイズ(バイト)を返します。
| encoding | エンコーディング形式 |
| TextEncoding s3d::Unicode::GetTextEncoding | ( | const IReader & | reader | ) |
| TextEncoding s3d::Unicode::GetTextEncoding | ( | FilePathView | path | ) |
ファイルがテキストファイルである場合、そのエンコーディング形式を返します。
| path | ファイルパス |
|
inlineconstexprnoexcept |
上位サロゲートであるかを返します
| ch | UTF-16 の文字要素 |
|
inlineconstexprnoexcept |
下位サロゲートであるかを返します
| ch | UTF-16 の文字要素 |
| std::string s3d::Unicode::Narrow | ( | StringView | s | ) |
| std::string s3d::Unicode::NarrowAscii | ( | StringView | asciiText | ) |
ASCII 文字列を std::string に変換します。
| asciiText | ASCII 文字で構成された文字列 |
| std::u16string s3d::Unicode::ToUTF16 | ( | StringView | s | ) |
| std::u32string s3d::Unicode::ToUTF32 | ( | StringView | s | ) |
| std::string s3d::Unicode::ToUTF8 | ( | StringView | s | ) |
| std::wstring s3d::Unicode::ToWstring | ( | StringView | s | ) |
| std::u32string s3d::Unicode::UTF16ToUTF32 | ( | std::u16string_view | s | ) |
UTF-16 文字列を UTF-32 文字列に変換します。
| s | UTF-16 文字列 |
| std::string s3d::Unicode::UTF16ToUTF8 | ( | std::u16string_view | s | ) |
UTF-16 文字列を UTF-8 文字列に変換します。
| s | UTF-16 文字列 |
| std::u16string s3d::Unicode::UTF32ToUTF16 | ( | std::u32string_view | s | ) |
UTF-32 文字列を UTF-16 文字列に変換します。
| s | UTF-32 文字列 |
| std::string s3d::Unicode::UTF32ToUTF8 | ( | std::u32string_view | s | ) |
UTF-32 文字列を UTF-8 文字列に変換します。
| s | UTF-32 文字列 |
| std::u16string s3d::Unicode::UTF8ToUTF16 | ( | std::string_view | s | ) |
UTF-8 文字列を UTF-16 文字列に変換します。
| s | UTF-8 文字列 |
| std::u32string s3d::Unicode::UTF8ToUTF32 | ( | std::string_view | s | ) |
UTF-8 文字列を UTF-32 文字列に変換します。
| s | UTF-8 文字列 |
| String s3d::Unicode::Widen | ( | std::string_view | s | ) |