LLVM: llvm::TextEncodingConverter Class Reference (original) (raw)
Utility class to convert between different character encodings. More...
#include "[llvm/Support/TextEncoding.h](TextEncoding%5F8h%5Fsource.html)"
| Public Member Functions | |
|---|---|
| TextEncodingConverter (const TextEncodingConverter &)=delete | |
| TextEncodingConverter & | operator= (const TextEncodingConverter &)=delete |
| TextEncodingConverter (TextEncodingConverter &&Other) | |
| TextEncodingConverter & | operator= (TextEncodingConverter &&Other) |
| ~TextEncodingConverter ()=default | |
| std::error_code | convert (StringRef Source, SmallVectorImpl< char > &Result) const |
| Converts a string. | |
| ErrorOr< std::string > | convert (StringRef Source) const |
Utility class to convert between different character encodings.
Definition at line 82 of file TextEncoding.h.
◆ TextEncodingConverter() [2/2]
◆ ~TextEncodingConverter()
| llvm::TextEncodingConverter::~TextEncodingConverter ( ) | default |
|---|
◆ convert() [1/2]
| ErrorOr< std::string > llvm::TextEncodingConverter::convert ( StringRef Source) const | inline |
|---|
◆ convert() [2/2]
Converts a string.
Parameters
| [in] | Source | source string |
|---|---|---|
| [out] | Result | container for converted string |
Returns
error code in case something went wrong
Definition at line 126 of file TextEncoding.h.
◆ create() [1/2]
◆ create() [2/2]
◆ operator=() [1/2]
◆ operator=() [2/2]
The documentation for this class was generated from the following files:
- include/llvm/Support/TextEncoding.h
- lib/Support/TextEncoding.cpp