[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepimlibs/gpgme++
From: Marc Mutz <mutz () kde ! org>
Date: 2010-07-09 7:58:05
Message-ID: 20100709075805.16E1AAC85F () svn ! kde ! org
[Download RAW message or body]
SVN commit 1147804 by mutz:
gpgme++: on WinCE, avoid use of Boost;String Algo which isn't properly supported on \
that platform (no std::locale)
I'm leaving the old code in in the hopes that boost catches up.
M +9 -0 scdgetinfoassuantransaction.cpp
--- trunk/KDE/kdepimlibs/gpgme++/scdgetinfoassuantransaction.cpp #1147803:1147804
@@ -26,8 +26,10 @@
#include "error.h"
#include "data.h"
+#ifndef _WIN32_WCE
#include <boost/algorithm/string/split.hpp>
#include <boost/algorithm/string/classification.hpp>
+#endif
#include <boost/static_assert.hpp>
#include <sstream>
@@ -57,7 +59,14 @@
static std::vector<std::string> to_reader_list( const std::string & s ) {
std::vector<std::string> result;
+#ifdef _WIN32_WCE
+ for ( std::string::size_type b = 0, e = s.find( '\n', 0 ) ; e != \
std::string::npos ; b = e+1, e = s.find( '\n', b ) ) + if ( e > b )
+ result.push_back( s.substr( b, e-b ) );
+ return result;
+#else
return split( result, s, is_any_of( "\n" ), token_compress_on );
+#endif
}
static std::vector<std::string> to_app_list( const std::string & s ) {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic