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

Side by Side Diff: net/ftp/ftp_util.cc

Issue 183853011: Move TrimWhitespace to the base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « net/base/net_util.cc ('k') | net/proxy/dhcp_proxy_script_adapter_fetcher_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/ftp/ftp_util.h" 5 #include "net/ftp/ftp_util.h"
6 6
7 #include <map> 7 #include <map>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/i18n/case_conversion.h" 10 #include "base/i18n/case_conversion.h"
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 // Skip the leading whitespace. 359 // Skip the leading whitespace.
360 while (!iter.end() && u_isspace(iter.get())) 360 while (!iter.end() && u_isspace(iter.get()))
361 iter.Advance(); 361 iter.Advance();
362 362
363 // Skip the actual text of i-th column. 363 // Skip the actual text of i-th column.
364 while (!iter.end() && !u_isspace(iter.get())) 364 while (!iter.end() && !u_isspace(iter.get()))
365 iter.Advance(); 365 iter.Advance();
366 } 366 }
367 367
368 base::string16 result(text.substr(iter.array_pos())); 368 base::string16 result(text.substr(iter.array_pos()));
369 TrimWhitespace(result, TRIM_ALL, &result); 369 base::TrimWhitespace(result, base::TRIM_ALL, &result);
370 return result; 370 return result;
371 } 371 }
372 372
373 } // namespace 373 } // namespace
OLDNEW
« no previous file with comments | « net/base/net_util.cc ('k') | net/proxy/dhcp_proxy_script_adapter_fetcher_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698