#include <iostream>#include <fstream>#include <unistd.h>#include <stdlib.h>#include <libgnomemm/program.h>#include "gWavMerger-main.h"#include "gWavMerger.h"#include <assa/CommonUtils.h>#include <assa/Logger.h>#include <assa/SigAction.h>Include dependency graph for gWavMerger.cpp:

Go to the source code of this file.
Functions | |
| int | split_pair (const string &pair_, char sep_, string &lhs_, string &rhs_) |
|
||||||||||||||||||||
|
Definition at line 50 of file gWavMerger.cpp. Referenced by gWavMerger::init.
00051 {
00052 int pos = 0;
00053 if ((pos = pair_.find (sep_)) == (size_t)(-1)) {
00054 return -1;
00055 }
00056 lhs_ = pair_.substr (0, pos);
00057 rhs_ = pair_.substr (pos+1, pair_.size ());
00058 pos = rhs_.size () -1;
00059 if (rhs_[0] == '"' || rhs_[0] == '\'') rhs_[0] = ' ';
00060 if (rhs_[pos] == '"' || rhs_[pos] == '\'') rhs_[pos] = ' ';
00061 return 0;
00062 }
|
1.2.14 written by Dimitri van Heesch,
© 1997-2002