Query whether a file needs conversion to the UTF-8 codepage.
Declared in <llvm/Support/AutoConvert.h>
ErrorOr<bool>
needConversion(
Twine const& FileName,
int const FD = -1);
On non-z/OS platforms this always reports that conversion is not needed.
True if conversion is needed, false if not, or an error if the tag cannot be queried.
| Name | Description |
|---|---|
| FileName | The path used when FD is not available. |
| FD | An optional open file descriptor; when not -1 it is preferred over FileName for reading the file tag. |