summaryrefslogtreecommitdiffstats
path: root/net/ftp/ftp_util.h
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-12 09:52:44 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-12 09:52:44 +0000
commitf17805f59f76d2aa8221e0caf4a96360fcba16ae (patch)
tree8b369c2143b08c878b33180624787cdee7a37098 /net/ftp/ftp_util.h
parentd6ae9cf4493f6e8624c5ac48434fdd884e683be0 (diff)
downloadchromium_src-f17805f59f76d2aa8221e0caf4a96360fcba16ae.zip
chromium_src-f17805f59f76d2aa8221e0caf4a96360fcba16ae.tar.gz
chromium_src-f17805f59f76d2aa8221e0caf4a96360fcba16ae.tar.bz2
Correctly handle file names with spaces in Windows FTP LIST parser.
TEST=Covered by net_unittests. BUG=none Review URL: http://codereview.chromium.org/541023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36001 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/ftp/ftp_util.h')
-rw-r--r--net/ftp/ftp_util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/ftp/ftp_util.h b/net/ftp/ftp_util.h
index 518801b..5643606 100644
--- a/net/ftp/ftp_util.h
+++ b/net/ftp/ftp_util.h
@@ -38,6 +38,10 @@ class FtpUtil {
const string16& day,
const string16& rest,
base::Time* time);
+
+ // Skip |columns| columns from |text| (whitespace-delimited), and return the
+ // remaining part, without leading/trailing whitespace.
+ static string16 GetStringPartAfterColumns(const string16& text, int columns);
};
} // namespace net