ΒΆinline clang::format::encoding::Encoding
detectEncoding(llvm::StringRef Text)

Description

Detects encoding of the Text. If the Text can be decoded using UTF-8, it is considered UTF8, otherwise we treat it as some 8-bit encoding.

Declared at: clang/lib/Format/Encoding.h:34

Parameters

llvm::StringRef Text