aboutsummaryrefslogtreecommitdiff
path: root/CPP/7zip/UI/FileManager/StringUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--CPP/7zip/UI/FileManager/StringUtils.cpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/CPP/7zip/UI/FileManager/StringUtils.cpp b/CPP/7zip/UI/FileManager/StringUtils.cpp
index 0478399..4641d15 100644
--- a/CPP/7zip/UI/FileManager/StringUtils.cpp
+++ b/CPP/7zip/UI/FileManager/StringUtils.cpp
@@ -24,35 +24,9 @@ void SplitStringToTwoStrings(const UString &src, UString &dest1, UString &dest2)
24 } 24 }
25} 25}
26 26
27void SplitString(const UString &srcString, UStringVector &destStrings)
28{
29 destStrings.Clear();
30 unsigned len = srcString.Len();
31 if (len == 0)
32 return;
33 UString s;
34 for (unsigned i = 0; i < len; i++)
35 {
36 wchar_t c = srcString[i];
37 if (c == ' ')
38 {
39 if (!s.IsEmpty())
40 {
41 destStrings.Add(s);
42 s.Empty();
43 }
44 }
45 else
46 s += c;
47 }
48 if (!s.IsEmpty())
49 destStrings.Add(s);
50}
51
52/* 27/*
53UString JoinStrings(const UStringVector &srcStrings) 28UString JoinStrings(const UStringVector &srcStrings)
54{ 29{
55
56 UString s; 30 UString s;
57 FOR_VECTOR (i, srcStrings) 31 FOR_VECTOR (i, srcStrings)
58 { 32 {