📄 gdiff.h
字号:
/* Copyright (C) 2006, Mike Gashler This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. see http://www.gnu.org/copyleft/lesser.html*/#ifndef __GDIFF_H__#define __GDIFF_H__struct DiffLine{ const char* pLine; int nLength; int nLineNumber1; int nLineNumber2;};// This class is for finding the differences between two text filesclass GDiff{public: bool m_bIgnoreWhiteSpace; GDiff(const char* szFile1, const char* szFile2); virtual ~GDiff(); bool GetNextLine(struct DiffLine* pDiffLine);protected: const char* m_szFile1; const char* m_szFile2; const char* m_pPos1; const char* m_pPos2; int m_nLineNumber1; int m_nLineNumber2; bool m_bRememberUseFile1; const char* m_pRememberMatchPos; const char* FindFirstMatch(const char* szNeedle, const char* szHaystack); bool DoesLineMatch(const char* pLine1, const char* pLine2); bool GetOneFileOnlyLine(struct DiffLine* pDiffLine, bool bNewStuffInFirstFile); bool GetMatchingLine(struct DiffLine* pDiffLine);};#endif // __GDIFF_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -