Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@users.sourceforge.net>2012-06-11 00:19:13 +0400
committerXhmikosR <xhmikosr@users.sourceforge.net>2012-06-11 00:19:13 +0400
commitf493e6891d610077542f9129d4857e43f02d1fff (patch)
tree4307ac9412d6753d08dcff19b205c028e20cfc7d /src/DSUtil/text.cpp
parent5bdb0965b69ca1574503e16110a0a82c98edd49d (diff)
remove commented out code
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@5081 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/DSUtil/text.cpp')
-rw-r--r--src/DSUtil/text.cpp68
1 files changed, 0 insertions, 68 deletions
diff --git a/src/DSUtil/text.cpp b/src/DSUtil/text.cpp
index de62faca3..99ce76aa5 100644
--- a/src/DSUtil/text.cpp
+++ b/src/DSUtil/text.cpp
@@ -24,73 +24,6 @@
#include "stdafx.h"
#include "text.h"
-/*
-CString Explode(CString str, CAtlList<CString>& sl, TCHAR sep, int limit)
-{
- sl.RemoveAll();
-
- if (limit == 1) {sl.AddTail(str); return _T("");}
-
- if (!str.IsEmpty() && str[str.GetLength()-1] != sep)
- str += sep;
-
- for (ptrdiff_t i = 0, j = 0; (j = str.Find(sep, i)) >= 0; i = j+1)
- {
- CString tmp = str.Mid(i, j-i);
- tmp.TrimLeft(sep); tmp.TrimRight(sep);
- tmp.TrimLeft(); tmp.TrimRight();
- sl.AddTail(tmp);
- if (limit > 0 && sl.GetCount() == limit-1)
- {
- if (j+1 < str.GetLength())
- {
- CString tmp = str.Mid(j+1);
- tmp.TrimLeft(sep); tmp.TrimRight(sep);
- tmp.TrimLeft(); tmp.TrimRight();
- sl.AddTail(tmp);
- }
- break;
- }
- }
-
- if (sl.IsEmpty())
- {
- str.TrimLeft(sep); str.TrimRight(sep);
- str.TrimLeft(); str.TrimRight();
- sl.AddTail(str);
- }
-
- return sl.GetHead();
-}
-
-CString ExplodeMin(CString str, CAtlList<CString>& sl, TCHAR sep, int limit)
-{
- Explode(str, sl, sep, limit);
- POSITION pos = sl.GetHeadPosition();
- while (pos)
- {
- POSITION tmp = pos;
- if (sl.GetNext(pos).IsEmpty())
- sl.RemoveAt(tmp);
- }
- if (sl.IsEmpty()) sl.AddTail(CString()); // eh
-
- return sl.GetHead();
-}
-
-CString Implode(CAtlList<CString>& sl, TCHAR sep)
-{
- CString ret;
- POSITION pos = sl.GetHeadPosition();
- while (pos)
- {
- ret += sl.GetNext(pos);
- if (pos) ret += sep;
- }
- return ret;
-}
-*/
-
DWORD CharSetToCodePage(DWORD dwCharSet)
{
if (dwCharSet == CP_UTF8) {
@@ -254,4 +187,3 @@ CAtlList<CString>& MakeUpper(CAtlList<CString>& sl)
}
return sl;
}
-