[ekiga/gnome-2-26] Backported change from master. Added missing function.
- From: Damien Sandras <dsandras src gnome org>
- To: svn-commits-list gnome org
- Subject: [ekiga/gnome-2-26] Backported change from master. Added missing function.
- Date: Thu, 2 Jul 2009 12:12:34 +0000 (UTC)
commit 6e18780bdffc1264638d5e105ef7f051254f0c12
Author: Damien Sandras <dsandras seconix com>
Date: Thu Jul 2 09:31:39 2009 +0200
Backported change from master. Added missing function.
lib/engine/components/opal/opal-call.cpp | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/lib/engine/components/opal/opal-call.cpp b/lib/engine/components/opal/opal-call.cpp
index e56f3a6..b88148c 100644
--- a/lib/engine/components/opal/opal-call.cpp
+++ b/lib/engine/components/opal/opal-call.cpp
@@ -48,6 +48,24 @@
using namespace Opal;
+static void
+strip_special_chars (std::string& str, char* special_chars, bool start)
+{
+ std::string::size_type idx;
+
+ unsigned i = 0;
+ while (i < strlen (special_chars)) {
+ idx = str.find_first_of (special_chars[i]);
+ if (idx != std::string::npos) {
+ if (start)
+ str = str.substr (idx+1);
+ else
+ str = str.substr (0, idx);
+ }
+ i++;
+ }
+}
+
class CallSetup : public PThread
{
PCLASSINFO(CallSetup, PThread);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]