diff options
author | Michi Henning <michi@zeroc.com> | 2009-08-17 13:33:30 +1000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2009-08-17 13:33:30 +1000 |
commit | 25c1dc70231a6361f24c5f687fd880dddfede77e (patch) | |
tree | b32a6b27fa0010031594f7c34a7e350e6e610988 /cpp/src | |
parent | Fixed summary comment. (diff) | |
download | ice-25c1dc70231a6361f24c5f687fd880dddfede77e.tar.bz2 ice-25c1dc70231a6361f24c5f687fd880dddfede77e.tar.xz ice-25c1dc70231a6361f24c5f687fd880dddfede77e.zip |
Fixed doc comment generation to no longer be sensitive to the order of tags.
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/slice2cs/Gen.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/slice2cs/Gen.cpp b/cpp/src/slice2cs/Gen.cpp index cb182b01588..894cd2eac47 100644 --- a/cpp/src/slice2cs/Gen.cpp +++ b/cpp/src/slice2cs/Gen.cpp @@ -1172,7 +1172,7 @@ Slice::CsVisitor::editMarkup(const string& s) if(endIdent != string::npos) { string ident = result.substr(startIdent, endIdent - startIdent); - string::size_type endComment = result.find('@', endIdent); + string::size_type endComment = result.find_first_of("@<", endIdent); string comment = result.substr(endIdent + 1, endComment == string::npos ? endComment : endComment - endIdent - 1); result.erase(startIdent, endComment == string::npos ? string::npos : endComment - startIdent); @@ -1193,7 +1193,7 @@ Slice::CsVisitor::editMarkup(const string& s) if(pos != string::npos) { result.erase(pos, returnTag.size() + 1); - string::size_type endComment = result.find('@', pos); + string::size_type endComment = result.find_first_of("@<", pos); string comment = result.substr(pos, endComment == string::npos ? endComment : endComment - pos); result.erase(pos, endComment == string::npos ? string::npos : endComment - pos); string newComment = "<returns>" + comment + "</returns>\n"; @@ -1217,7 +1217,7 @@ Slice::CsVisitor::editMarkup(const string& s) if(endIdent != string::npos) { string ident = result.substr(startIdent, endIdent - startIdent); - string::size_type endComment = result.find('@', endIdent); + string::size_type endComment = result.find_first_of("@<", endIdent); string comment = result.substr(endIdent + 1, endComment == string::npos ? endComment : endComment - endIdent - 1); result.erase(startIdent, endComment == string::npos ? string::npos : endComment - startIdent); |