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

Side by Side Diff: Source/platform/network/HTTPParsers.cpp

Issue 1119663002: Making Unicode character names consistent (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase patch Created 5 years, 7 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) 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
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
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 }
OLDNEW
« no previous file with comments | « Source/platform/fonts/shaping/SimpleShaper.cpp ('k') | Source/platform/text/StringTruncator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698