| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |