diff options
author | Bernard Normier <bernard@zeroc.com> | 2007-09-25 17:59:25 -0400 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2007-09-25 17:59:25 -0400 |
commit | bf92b3d33fdf15bc8eacacb1baf35fdd17131ee6 (patch) | |
tree | e6e430aff788ded4e2e64d4a774c55b1f1dc0cb9 /cpp/src/Slice/RubyUtil.cpp | |
parent | Fixed VC8 compilation error (diff) | |
download | ice-bf92b3d33fdf15bc8eacacb1baf35fdd17131ee6.tar.bz2 ice-bf92b3d33fdf15bc8eacacb1baf35fdd17131ee6.tar.xz ice-bf92b3d33fdf15bc8eacacb1baf35fdd17131ee6.zip |
Fixed bug #2440
Diffstat (limited to 'cpp/src/Slice/RubyUtil.cpp')
-rw-r--r-- | cpp/src/Slice/RubyUtil.cpp | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/cpp/src/Slice/RubyUtil.cpp b/cpp/src/Slice/RubyUtil.cpp index 07bdebd46d6..b0f9f82a8ae 100644 --- a/cpp/src/Slice/RubyUtil.cpp +++ b/cpp/src/Slice/RubyUtil.cpp @@ -1684,48 +1684,6 @@ Slice::Ruby::generate(const UnitPtr& un, bool all, bool checksum, const vector<s out << nl; // Trailing newline. } -bool -Slice::Ruby::splitString(const string& str, vector<string>& args, const string& delim) -{ - string::size_type beg; - string::size_type end = 0; - while(true) - { - beg = str.find_first_not_of(delim, end); - if(beg == string::npos) - { - break; - } - - // - // Check for quoted argument. - // - char ch = str[beg]; - if(ch == '"' || ch == '\'') - { - beg++; - end = str.find(ch, beg); - if(end == string::npos) - { - return false; - } - args.push_back(str.substr(beg, end - beg)); - end++; // Skip end quote. - } - else - { - end = str.find_first_of(delim + "'\"", beg); - if(end == string::npos) - { - end = str.length(); - } - args.push_back(str.substr(beg, end - beg)); - } - } - - return true; -} - string Slice::Ruby::fixIdent(const string& ident, IdentStyle style) { |