ΒΆbool getConstantStringInfo(const llvm::Value* V,
llvm::StringRef& Str,
uint64_t Offset = 0,
bool TrimAtNul = true)
bool getConstantStringInfo(const llvm::Value* V,
llvm::StringRef& Str,
uint64_t Offset = 0,
bool TrimAtNul = true)
Description
This function computes the length of a null-terminated C string pointed to by V. If successful, it returns true and returns the string in Str. If unsuccessful, it returns false. This does not include the trailing null character by default. If TrimAtNul is set to false, then this returns any trailing null characters as well as any other characters that come after it.
Declared at: llvm/include/llvm/Analysis/ValueTracking.h:310
Parameters
- const llvm::Value* V
- llvm::StringRef& Str
- uint64_t Offset = 0
- bool TrimAtNul = true