Apply backgroundcolors.patch
[TortoiseGit.git] / src / TortoiseMerge / EOL.cpp
blob9ca871dd472240cc62578c622e7b49b219d13350
1 // TortoiseGitMerge - a Diff/Patch program
3 // Copyright (C) 2023 - TortoiseGit
4 // Copyright (C) 2013 - TortoiseSVN
6 // This program is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU General Public License
8 // as published by the Free Software Foundation; either version 2
9 // of the License, or (at your option) any later version.
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software Foundation,
18 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 #include "stdafx.h"
21 #include "EOL.h"
24 const wchar_t * GetEolName(EOL eEol)
26 switch(eEol)
28 case EOL::LF:
29 return L"LF";
30 case EOL::CRLF:
31 return L"CRLF";
32 case EOL::LFCR:
33 return L"LFCR";
34 case EOL::CR:
35 return L"CR";
36 case EOL::VT:
37 return L"VT";
38 case EOL::FF:
39 return L"FF";
40 case EOL::NEL:
41 return L"NEL";
42 case EOL::LS:
43 return L"LS";
44 case EOL::PS:
45 return L"PS";
46 case EOL::AutoLine:
47 return L"AEOL";
49 return L"";