LLVM API Documentation
#include "llvm/Support/FileUtilities.h"#include "llvm/System/Path.h"#include "llvm/Support/MemoryBuffer.h"#include "llvm/ADT/OwningPtr.h"#include "llvm/ADT/SmallString.h"#include "llvm/ADT/StringExtras.h"#include <cstdlib>#include <cstring>#include <cctype>
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) |
| 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. | |
| int | llvm::DiffFilesWithTolerance (const sys::PathWithStatus &FileA, const sys::PathWithStatus &FileB, double AbsTol, double RelTol, std::string *Error=0) |
| static const char* BackupNumber | ( | const char * | Pos, | |
| const char * | FirstChar | |||
| ) | [static] |
Definition at line 49 of file FileUtilities.cpp.
References isExponentChar(), isNumberChar(), and isSignedChar().
Referenced by llvm::DiffFilesWithTolerance().
| static bool CompareNumbers | ( | const char *& | F1P, | |
| const char *& | F2P, | |||
| const char * | F1End, | |||
| const char * | F2End, | |||
| double | AbsTolerance, | |||
| double | RelTolerance, | |||
| std::string * | ErrorMsg | |||
| ) | [static] |
CompareNumbers - compare two numbers, returning true if they are different.
Definition at line 72 of file FileUtilities.cpp.
References EndOfNumber(), llvm::ftostr(), isNumberChar(), and V1.
Referenced by llvm::DiffFilesWithTolerance().
| static const char* EndOfNumber | ( | const char * | Pos | ) | [static] |
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 65 of file FileUtilities.cpp.
References isNumberChar().
Referenced by CompareNumbers().
| static bool isExponentChar | ( | char | C | ) | [static] |
| static bool isNumberChar | ( | char | C | ) | [static] |
Definition at line 40 of file FileUtilities.cpp.
References isExponentChar(), and isSignedChar().
Referenced by BackupNumber(), CompareNumbers(), llvm::DiffFilesWithTolerance(), and EndOfNumber().
| static bool isSignedChar | ( | char | C | ) | [static] |