LLVM: lib/Support/FileUtilities.cpp File Reference (original) (raw)
#include "[llvm/Support/FileUtilities.h](FileUtilities%5F8h%5Fsource.html)"#include "[llvm/ADT/SmallString.h](SmallString%5F8h%5Fsource.html)"#include "[llvm/ADT/StringExtras.h](StringExtras%5F8h%5Fsource.html)"#include "[llvm/Support/Error.h](llvm%5F2Support%5F2Error%5F8h%5Fsource.html)"#include "[llvm/Support/ErrorOr.h](ErrorOr%5F8h%5Fsource.html)"#include "[llvm/Support/MemoryBuffer.h](MemoryBuffer%5F8h%5Fsource.html)"#include "[llvm/Support/Process.h](Process%5F8h%5Fsource.html)"#include "[llvm/Support/raw_ostream.h](raw%5F%5Fostream%5F8h%5Fsource.html)"#include <cmath>#include <cstdint>#include <cstdlib>#include <cstring>#include <memory>#include <system_error>
Go to the source code of this file.
| Functions | |
|---|---|
| static bool | isSignedChar (char C) |
| static bool | isExponentChar (char C) |
| static bool | isNumberChar (char C) |
| static const char * | BackupNumber (const char *Pos, const char *FirstChar) |
| static const char * | EndOfNumber (const char *Pos) |
| EndOfNumber - Return the first character that is not part of the specified number. | |
| static bool | CompareNumbers (const char *&F1P, const char *&F2P, const char *F1End, const char *F2End, double AbsTolerance, double RelTolerance, std::string *ErrorMsg) |
| CompareNumbers - compare two numbers, returning true if they are different. |
◆ BackupNumber()
◆ CompareNumbers()
◆ EndOfNumber()
EndOfNumber - Return the first character that is not part of the specified number.
This assumes that the buffer is null terminated, so it won't fall off the end.
Definition at line 78 of file FileUtilities.cpp.
References isNumberChar().
Referenced by CompareNumbers().