Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: Source/core/platform/text/LineEnding.cpp

Issue 23672027: Rename OS(WINDOWS) to OS(WIN) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2005, 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2005, 2006, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Google Inc. All rights reserved. 3 * Copyright (C) 2010 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 normalizeToCROrLF(from, result, true); 213 normalizeToCROrLF(from, result, true);
214 } 214 }
215 215
216 void normalizeLineEndingsToLF(const CString& from, Vector<char>& result) 216 void normalizeLineEndingsToLF(const CString& from, Vector<char>& result)
217 { 217 {
218 normalizeToCROrLF(from, result, false); 218 normalizeToCROrLF(from, result, false);
219 } 219 }
220 220
221 void normalizeLineEndingsToNative(const CString& from, Vector<char>& result) 221 void normalizeLineEndingsToNative(const CString& from, Vector<char>& result)
222 { 222 {
223 #if OS(WINDOWS) 223 #if OS(WIN)
224 VectorCharAppendBuffer buffer(result); 224 VectorCharAppendBuffer buffer(result);
225 internalNormalizeLineEndingsToCRLF(from, buffer); 225 internalNormalizeLineEndingsToCRLF(from, buffer);
226 #else 226 #else
227 normalizeLineEndingsToLF(from, result); 227 normalizeLineEndingsToLF(from, result);
228 #endif 228 #endif
229 } 229 }
230 230
231 } // namespace WebCore 231 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/platform/sql/SQLiteDatabase.cpp ('k') | Source/core/rendering/RenderThemeChromiumDefault.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698