| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 2 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
| 3 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 3 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
| 4 * Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/ | 4 * Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/ |
| 5 * Copyright (C) 2009 Google Inc. All rights reserved. | 5 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 6 * Copyright (C) 2011 Apple Inc. All Rights Reserved. | 6 * Copyright (C) 2011 Apple Inc. All Rights Reserved. |
| 7 * | 7 * |
| 8 * Redistribution and use in source and binary forms, with or without | 8 * Redistribution and use in source and binary forms, with or without |
| 9 * modification, are permitted provided that the following conditions | 9 * modification, are permitted provided that the following conditions |
| 10 * are met: | 10 * are met: |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 || c == '{' || c == '}') | 129 || c == '{' || c == '}') |
| 130 return false; | 130 return false; |
| 131 } | 131 } |
| 132 return true; | 132 return true; |
| 133 } | 133 } |
| 134 | 134 |
| 135 static const size_t maxInputSampleSize = 128; | 135 static const size_t maxInputSampleSize = 128; |
| 136 static String trimInputSample(const char* p, size_t length) | 136 static String trimInputSample(const char* p, size_t length) |
| 137 { | 137 { |
| 138 if (length > maxInputSampleSize) | 138 if (length > maxInputSampleSize) |
| 139 return String(p, maxInputSampleSize) + horizontalEllipsis; | 139 return String(p, maxInputSampleSize) + horizontalEllipsisCharacter; |
| 140 return String(p, length); | 140 return String(p, length); |
| 141 } | 141 } |
| 142 | 142 |
| 143 ContentDispositionType contentDispositionType(const String& contentDisposition) | 143 ContentDispositionType contentDispositionType(const String& contentDisposition) |
| 144 { | 144 { |
| 145 if (contentDisposition.isEmpty()) | 145 if (contentDisposition.isEmpty()) |
| 146 return ContentDispositionNone; | 146 return ContentDispositionNone; |
| 147 | 147 |
| 148 Vector<String> parameters; | 148 Vector<String> parameters; |
| 149 contentDisposition.split(';', parameters); | 149 contentDisposition.split(';', parameters); |
| (...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 869 | 869 |
| 870 void parseCommaDelimitedHeader(const String& headerValue, CommaDelimitedHeaderSe
t& headerSet) | 870 void parseCommaDelimitedHeader(const String& headerValue, CommaDelimitedHeaderSe
t& headerSet) |
| 871 { | 871 { |
| 872 Vector<String> results; | 872 Vector<String> results; |
| 873 headerValue.split(",", results); | 873 headerValue.split(",", results); |
| 874 for (auto& value : results) | 874 for (auto& value : results) |
| 875 headerSet.add(value.stripWhiteSpace(isWhitespace)); | 875 headerSet.add(value.stripWhiteSpace(isWhitespace)); |
| 876 } | 876 } |
| 877 | 877 |
| 878 } | 878 } |
| OLD | NEW |