================
@@ -134,6 +140,19 @@ class TextEncodingConverter {
return std::string(Result);
return EC;
}
+
+ /// Returns true if this converter performs no conversion.
+ bool isNoop() const { return Converter->isNoop(); }
+
+ // This method is used in format string handling and is only intended
+ // to support basic charsets, not multibyte characters.
----------------
hubert-reinterpretcast wrote:
Just a drive-by comment, so please take with a grain of salt. Maybe returning
an `ErrorOr<char>` makes sense?
https://github.com/llvm/llvm-project/pull/196568
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits